| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Product.tpl: How to add list price? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I would like to display what the customer saves (ie. you save бёx.xx) on the product.tpl page, as well as the product thumbnail... I have tried to do this myself, however I must be missing something, if anyone can help this would be great.
What I would like to appear on the product.tpl page is something along the lines of; our price: бёx.xx (Б┌╛ x.xx) list price: бёx.xx You save: бёx.00 (x%)
__________________
Richard Ultimate 5.4 testing |
|||||||||
#2
|
|||||||
|
|||||||
![]() If your still working on this I did this to a store today I've been 'tweaking' a bit. Hoped to easily find the answer here but no go and had to think a bit..bummer
![]() anyway, you can just about pull most of what you need out of products.tpl and then remove the array portion of the code and remember you are working with $product in product.tpl and not $products as it is in products.tpl. So, this $products[product].taxed_price would change to $product.taxed_price. Here's what I've got so far which would probably work for you though I'm further customizing it. Quote:
__________________
Xcart 4.6.5 gold Apache 2.2.29 PHP 5.4.34 MySQL 5.6.17 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() thanks, this works well, however if there is no list price defined, a price wont display at all... only the alternate currency is displaying... is there a work-around to show the normal "our price: $xx" if no list price is defined?
__________________
Richard Ultimate 5.4 testing |
|||||||||
|
|||
X-Cart forums © 2001-2020
|