Add the desired data to $data array and then read this data in TPL.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
thanks for the reply, but can you be more specific?
do you mean add an entry to the array here in the controller/product/product.php page?
line 440:
and then grab the $upc var in view/theme/journal2/template/product/product.tpl?
thanks

do you mean add an entry to the array here in the controller/product/product.php page?
line 440:
Code: Select all
$data['products'][] = array(
'product_id' => $result['product_id'],
'thumb' => $image,
'name' => $result['name'],
'upc' => $upc
and then grab the $upc var in view/theme/journal2/template/product/product.tpl?
thanks

Exactly.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
I can't get the upc value doing what I described below. Is there anything else I need to do in the product.php page?
I'm trying to access the upc value in the product.tpl page via $upc.
Any thoughts here as to what is wrong?
thanks
I'm trying to access the upc value in the product.tpl page via $upc.
Any thoughts here as to what is wrong?
thanks
Who is online
Users browsing this forum: Google [Bot] and 50 guests