I am using the location field to add an RRP price.
Having looked through the forum I have managed to add this to the product page without any issues but I also want this showing on the category page next to the price and I am struggling.
The Opencart version is 2.0.3.1.
If anyone can help or point me in the right direction that would be much appreciated.
in the THEME template/product/category.tpl File,
after:
add:
and in the: catalog/controller/product/category.php File,
after:
add:
And if you want it just above the price, you need to place it in the
category.tpl File just above:
Or then, create a simple OcMod or VqMod out of this above ...
AT LEAST, if the Variable LOCATION already exists in the Database Product Table,
which I don't recall momentarely.
But I was too lazy, to check on this in a default DB, and/or get a proper translation
Code, and so hardcoded the Words Product Location in english words only.
Good Luck!
Ernie
---
momentarely to be seen here:
http://www.gratisangebote.ch/shop/en/Co ... 25c30.html
---
after:
Code: Select all
<h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
Code: Select all
Product Location: <strong><?php echo $product['location']; ?></strong><p>
after:
Code: Select all
'thumb' => $image,
Code: Select all
'location' => $result['location'],
category.tpl File just above:
Code: Select all
<?php if ($product['price']) { ?>
AT LEAST, if the Variable LOCATION already exists in the Database Product Table,
which I don't recall momentarely.
But I was too lazy, to check on this in a default DB, and/or get a proper translation
Code, and so hardcoded the Words Product Location in english words only.
Good Luck!
Ernie
---
momentarely to be seen here:
http://www.gratisangebote.ch/shop/en/Co ... 25c30.html
---
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: No registered users and 281 guests