Post by jon22 » Wed Jul 29, 2015 5:44 pm

Can't get this to work...

Code added to vqmod xml file:

<?php echo $total_price; ?>

Code added to product page language file (product/product):

$_['total_price'] = 'Gesamtpreis';

Any ideas?

JME Web Design


User avatar
New member

Posts

Joined
Thu May 28, 2009 5:44 pm


Post by IP_CAM » Wed Jul 29, 2015 6:13 pm

You cannot just take/create a VARIABLE, place it in a VqMod, and expect it to SHOW UP, anywhere.
It needs to be declared/defined, in the matching controller file, language File, e.t.c., to make it work.
In OC v.2, I only found a matching variable in the OPENBAY/AMAZON Sub, but nowhere else.
Ernie

Please don't send me OC Forum Personal Messages, just contact: jti@jacob.ch
---
OC 1.5.6.5 LIGHT Test Site: http://www.bigmax.ch/shop/
OC 1.5.6.5 V-PRO Test Site: http://www.jacob.ch/shop/
My Github OC Site: https://github.com/IP-CAM
2'250+ FREE OC Extensions from the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by jon22 » Wed Jul 29, 2015 6:20 pm

Ah right, didn't realise it needed declaring in the controller file as well, got it working now, thanks!

JME Web Design


User avatar
New member

Posts

Joined
Thu May 28, 2009 5:44 pm

Who is online

Users browsing this forum: No registered users and 7 guests