| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Ranged variant pricing display on products.tpl | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I would like to modify products.tpl (I'm using the two-column version) so that instead of displaying "Market Price" and "Our Price" and all that, instead it looks at the minimum variant price and the maximum variant price (there's four variants per product) and displays this in a range, like:
"Priced from $11 to $21" Does anyone have an idea of how to accomplish this?
__________________
http://www.ilandrama.com |
|||||||
#2
|
|||||||
|
|||||||
![]() Anyone have any idea? :>
__________________
http://www.ilandrama.com |
|||||||
#3
|
|||||||
|
|||||||
![]() I modified the products template and added a language variable to display "Priced From" instead of "Our Price" if the product has options.
It's not really a great solution, I was looking for the same thing you were, but I kept digging deeper and deeper and I was going to end up modifying files I didn't want to lose on the next upgrade process... Here's my code: ( search for $lng.lbl_our_price for placement) Code:
I also added it in products_t.tpl for the featured items... |
|||||||
#4
|
|||||||
|
|||||||
![]() I tried...
Code:
...in products_t.tpl , but it displays 'from' whether the product has options or not. I also tried... Code:
...but that doesn't work properly either. Anyone got this to work?
__________________
xcartmods.co.uk |
|||||||
#5
|
|||||||
|
|||||||
![]() In customer/main/products_t.tpl, change this:
Code:
To this.... Code:
Also, create the new langauge entry under Labels called lbl_priced_from and use whatever text you want, such as "Priced from" or "Starting at", or you could just enter the text in the template if you aren't using multiple languages. |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Thanks for posting that bit of code - worked fine for me when I used it in products.tpl.
Was wondering though, if you use product prices including tax (VAT) how do you get the Variants to display including tax? All other prices work and when you add a product with Variants to the cart, the prices is fine, but in Variants it doesn't work???
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|