![]() |
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. |
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?
|
Re: Show products with variants with price lowest to highest
4.6.6 Gold
|
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 |
Re: Show products with variants with price lowest to highest
I have the code below
Code:
{if $active_modules.XPayments_Subscriptions and $product.subscription.subscription_product eq 'Y'} ------------------------------------------------- This part does not work though Code:
<div class="property-name product-price">{if $products[product].variantid ne ""}From: (Special code to show lowest to highest would go here i am guessing???){else}Your Price: {/if}</div> it always shows "Your Price:" even if there is a variant. |
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.
|
Re: Show products with variants with price lowest to highest
3 Attachment(s)
Below is a sample code that can be used to get max. and min. prices for product variants:
Code:
{assign var="variant_max_price" value=$product.taxed_price} 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. |
Re: Show products with variants with price lowest to highest
Quote:
Code:
<span class="product-price-value"> |
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. |
Re: Show products with variants with price lowest to highest
Quote:
Something like Code:
{if $variants ne ""} |
All times are GMT -8. The time now is 02:45 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.