View Single Post
  #5  
Old 08-10-2015, 09:34 AM
 
fiberglass.supply fiberglass.supply is offline
 

Senior Member
  
Join Date: Dec 2012
Location: Florida
Posts: 171
 

Default 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'} {include file="modules/XPayments_Subscriptions/customer/product_details.tpl"} {else} <div class="property-name product-price">{if $products[product].variantid ne ""}From: {else}Your Price: {/if}</div> <div class="property-value"> {if $product.taxed_price ne 0 or $variant_price_no_empty} <span class="product-price-value">{currency value=$product.taxed_price tag_id="product_price"}</span> <span class="product-market-price">{alter_currency value=$product.taxed_price tag_id="product_alt_price"}</span> {if $product.taxes} <br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes} {/if}

-------------------------------------------------


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.
Reply With Quote