| ||||||||||
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 |
#11
|
|||||||||
|
|||||||||
Re: Show products with variants with price lowest to highest
Quote:
Just change the code as follows: 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 |
|||||||||
|
#12
|
|||||||
|
|||||||
Re: Show products with variants with price lowest to highest
Thank you very much, it worked perfectly on product details page.
I tried it on category page/products list page but it did not work. Is the code different for that page? |
|||||||
#13
|
|||||||||
|
|||||||||
Re: Show products with variants with price lowest to highest
The same code will not work on category page/products list page, unfortunately, as $variants variable is not available at this page.
Basically, it requires more complex custom code modifications both in X-Cart's scripts and templates: your custom code should retrieve the variants info for each product to be displayed on category page, then pass the info to Smarty templates, to display the min. and max. variant prices for each product. You can take advantage of our custom development services, and our developers will implement such customization for you.
__________________
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 |
|||||||||
#14
|
|||||||
|
|||||||
Re: Show products with variants with price lowest to highest
This worked for me... (v4.7.x)
In products.php BEFORE... Code:
Code:
In skin/<SKIN>/customer/main/products_list.tpl AND/OR skin/<SKIN>/customer/main/products_t.tpl INSERT.... Code:
*Updated*
__________________
xcartmods.co.uk |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|