| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Show products with variants with price lowest to highest | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Show products with variants with price lowest to highest
Show products with variants with price lowest to highest
I would like to show for example Priced from: $2.00 to $10.00 Right now the price shown is the one defined in the "def" column. I want to show lowest to highest not just one or the others when the product has variants. Nothing on the forum anywhere about how to implement it. |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Show products with variants with price lowest to highest
I am sorry, do you need it to be implemented for X-Cart 5 or X-Cart 4?
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart |
|||||||||
#3
|
|||||||
|
|||||||
Re: Show products with variants with price lowest to highest
4.6.6 Gold
|
|||||||
#4
|
|||||||||
|
|||||||||
Re: Show products with variants with price lowest to highest
Quote:
I think you should turn on the webmaster mode and look into the {$variants} variable. It contains the necessary information about product's variants The template you can insert the new code into is /customer/main/product_details.tpl
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
#5
|
|||||||
|
|||||||
Re: Show products with variants with price lowest to highest
I have the code below
Code:
------------------------------------------------- This part does not work though Code:
it always shows "Your Price:" even if there is a variant. |
|||||||
#6
|
|||||||
|
|||||||
Re: Show products with variants with price lowest to highest
I am sure a lot of people would like this feature if they have variants with diferent prices.
|
|||||||
#7
|
|||||||||
|
|||||||||
Re: Show products with variants with price lowest to highest
Below is a sample code that can be used to get max. and min. prices for product variants:
Code:
As suggested earlier, please use the Webmaster Mode to get information about what Smarty variables are available and can be used in your custom code.
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart |
|||||||||
#8
|
|||||||||
|
|||||||||
Re: Show products with variants with price lowest to highest
Quote:
Code:
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
#9
|
|||||||
|
|||||||
Re: Show products with variants with price lowest to highest
Quote:
wow perfect this code worked great, final issue is how to not show on products with no variants or options. on those products it shows price lowest to highest but it not needed. |
|||||||
#10
|
|||||||||
|
|||||||||
Re: Show products with variants with price lowest to highest
Quote:
Something like Code:
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|