Jump to content

Starting at Pricing.


Yonzie72

Recommended Posts

I have a question, i seem to only get starting at pricing on certain products i offer. I have checked the settings. I am running 6.2.2 and am using the supreme comparison theme and a custom 6 theme thruout. what am i missing? Did I configure something wrong.

Link to comment
Share on other sites

if a product uses configurable options, then you should see "Starting At" before the pricing; if it doesn't, you'll see "Only" (or your language equivalents).

 

if you want to change that, you could edit products.tpl and make that text the same for all products.

Link to comment
Share on other sites

if a product uses configurable options, then you should see "Starting At" before the pricing; if it doesn't, you'll see "Only" (or your language equivalents).

 

if you want to change that, you could edit products.tpl and make that text the same for all products.

 

How do I do that and have the lowest price showing as the starting at price right now it shows the staring at highest price

Link to comment
Share on other sites

WHMCS is designed to show the minimum billing cycle (Monthly, Quarterly, Annually etc) regardless of price - e.g, if the product is $100 monthly and $1 annually, it will still show the Monthly amount.

 

the products page doesn't automatically calculate the cheapest cycle for each product, so you will need to do so using an action hook or Smarty code in the template to do this...

 

seeing as you want to edit the template anyway, here's some Smarty code to show the cheapest cycle for each product - in the products.tpl template, replace...

 

                                    <div class="price-area">
                                       <div class="price" id="product{$product@iteration}-price">
                                           {if $product.bid}
                                               {if $product.displayprice}
                                                   <div class="price-label">{$LANG.bundledeal}</div>
                                                   <span>{$product.displayPriceSimple}</span>
                                               {else}
                                                   <div class="price-single-line">
                                                       {$LANG.bundledeal}
                                                   </div>
                                               {/if}
                                           {elseif $product.paytype eq "free"}
                                               <div class="price-single-line">
                                                   <span>{$LANG.orderfree}</span>
                                               </div>
                                           {elseif $product.paytype eq "onetime"}
                                               <div class="price-label">{$LANG.orderpaymenttermonetime}</div>
                                               <span>{$product.pricing.onetime}</span>
                                           {else}
                                               {if $product.pricing.hasconfigoptions}
                                                   <div class="price-label">{$LANG.startingat}</div>
                                               {else}
                                                   <div class="price-label">{$LANG.only}</div>
                                               {/if}
                                               {$product.pricing.minprice.cycleText}
                                           {/if}
                                       </div>
                                       {if $product.qty eq "0"}
                                           <div id="product{$product@iteration}-unavailable">
                                               <div class="order-unavailable">
                                                   {$LANG.outofstock}
                                               </div>
                                           </div>
                                       {else}
                                           <a href="{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" id="product{$product@iteration}-order-button">
                                               <div class="order-now">
                                                   {$LANG.ordernowbutton}
                                               </div>
                                           </a>
                                       {/if}
                                   </div>

with...

 

                                        {assign billcycle ['monthly', 'quarterly', 'semiannually', 'annually', 'biennially', 'triennially']}
                                       {assign divisor ['monthly'=>1,'quarterly'=>3, 'semiannually'=>6, 'annually'=>12, 'biennially'=>24, 'triennially'=>36]}
                                       {foreach $billcycle as $cycle}
                                               {if $product.pricing.rawpricing.{$cycle} neq '-1.00'}
                                                   {append var=lowestprice value=$product.pricing.rawpricing.{$cycle}/$divisor.{$cycle} index=$cycle}
                                               {else}
                                                   {append var=lowestprice value=null index=$cycle}
                                               {/if}
                                       {/foreach}
                                       {$lowsort{$count}=$lowestprice|@arsort}
                                       {assign minprice $lowestprice|@reset|string_format:"%.2f"}
                                       {assign mincycle $lowestprice|@key}
                                       {assign paymentterm "orderpaymentterm$mincycle"}
                                       <div class="price" id="product{$product@iteration}-price">
                                           {if $product.bid}
                                               {if $product.displayprice}
                                                   <div class="price-label">{$LANG.bundledeal}</div>
                                                   <span>{$product.displayPriceSimple}</span>
                                               {else}
                                                   <div class="price-single-line">
                                                       {$LANG.bundledeal}
                                                   </div>
                                               {/if}
                                           {elseif $product.paytype eq "free"}
                                               <div class="price-single-line">
                                                   <span>{$LANG.orderfree}</span>
                                               </div>
                                           {elseif $product.paytype eq "onetime"}
                                               <div class="price-label">{$LANG.orderpaymenttermonetime}</div>
                                               <span>{$product.pricing.onetime}</span>
                                           {else}
                                               <div class="price-label">{$LANG.startingat}</div>
                                               <span>{$currency.prefix}{$product.pricing.rawpricing.{$mincycle}}{$currency.suffix}</span><br>{$LANG.{$paymentterm}}
                                           {/if}
                                       </div>
                                       {if $product.qty eq "0"}
                                           <div id="product{$product@iteration}-unavailable">
                                               <div class="order-unavailable">
                                                   {$LANG.outofstock}
                                               </div>
                                           </div>
                                       {else}
                                           <a href="{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" id="product{$product@iteration}-order-button">
                                               <div class="order-now">
                                                   {$LANG.ordernowbutton}
                                               </div>
                                           </a>
                                       {/if}
                                   </div>

and you should end up with something like this...

 

KoTfzLg.png

 

if you wanted to show a monthly pricing breakdown for the cheapest cycle, then you would change...

 

<span>{$currency.prefix}{$product.pricing.rawpricing.{$mincycle}}{$currency.suffix}</span><br>{$LANG.{$paymentterm}}

with...

 

<span>{$currency.prefix}{$minprice}{$currency.suffix}</span>/mo

 

8YQCQxI.png

 

in hindsight, this would have been far easier to code as an action hook using PHP - but it is possible to do it using Smarty (it was just more complex to figure out the steps required).

 

if you want to change the "Starting At" text, then you can use Language Overrides - http://docs.whmcs.com/Language_Overrides

Edited by brian!
Link to comment
Share on other sites

doesn't seem to work.

that's hardly a helpful comment to determine the potential problem with it - it worked fine here before posting, so difficult to say why it doesn't work for you. :?:

 

Is there a way to replace the price section to be a drop down box instead like in some of the other orderforms?

you could, and it would just be a foreach loop, but it'd be a bit redundant as you can choose the billing cycle at the next step.

 

Untried, but I suppose you could pass on the billing cycle in the URL button.. unless your suggesting that this dropdown is purely for show.

Link to comment
Share on other sites

that's hardly a helpful comment to determine the potential problem with it - it worked fine here before posting, so difficult to say why it doesn't work for you. :?:

 

 

you could, and it would just be a foreach loop, but it'd be a bit redundant as you can choose the billing cycle at the next step.

 

Untried, but I suppose you could pass on the billing cycle in the URL button.. unless your suggesting that this dropdown is purely for show.

 

sorry , i lose my words when I am tired, it works for vps but none of my other categories , http://billing.fitsthebudget.com/index.php

Link to comment
Share on other sites

i'm not even sure that it's working for VPS - VPS Basic is showing $55 as the cheapest, it should be 45...

 

i've cleaned up the code a bit more, can you see if this works...

 

                                        {assign billcycle ['monthly', 'quarterly', 'semiannually', 'annually', 'biennially', 'triennially']}
                                       {assign divisor ['monthly'=>1,'quarterly'=>3, 'semiannually'=>6, 'annually'=>12, 'biennially'=>24, 'triennially'=>36]}
                                       {assign lowestprice value=null}
                                       {foreach $billcycle as $cycle}
                                               {if $product.pricing.rawpricing.{$cycle} neq '-1.00'}
                                                   {append var=lowestprice value=$product.pricing.rawpricing.{$cycle}/$divisor.{$cycle} index=$cycle}
                                               {/if}
                                       {/foreach}
                                       {$lowsort=$lowestprice|@asort}
                                       {assign minprice $lowestprice|@reset|string_format:"%.2f"}
                                       {assign mincycle $lowestprice|@key}
                                       {assign paymentterm "orderpaymentterm$mincycle"}

just replace these lines - the code below this is fine.

 

i've added VPS Basic locally and it's showing correctly as $45... well £45 but you can ignore that!

 

4LJUOfI.png

 

I should also mention that I didn't include any setup fees with the calculation for each product - mainly as I didn't know that you were using them... though you could add it to the output if necessary.

Link to comment
Share on other sites

<link rel="stylesheet" type="text/css" href="{$WEB_ROOT}/templates/orderforms/{$carttpl}/css/style.css" property="stylesheet" />
<script>
jQuery(document).ready(function () {
   jQuery('#btnShowSidebar').click(function () {
       if (jQuery(".product-selection-sidebar").is(":visible")) {
           jQuery('.row-product-selection').css('left','0');
           jQuery('.product-selection-sidebar').fadeOut();
           jQuery('#btnShowSidebar').html('<i class="fa fa-arrow-circle-right"></i> {$LANG.showMenu}');
       } else {
           jQuery('.product-selection-sidebar').fadeIn();
           jQuery('.row-product-selection').css('left','300px');
           jQuery('#btnShowSidebar').html('<i class="fa fa-arrow-circle-left"></i> {$LANG.hideMenu}');
       }
   });
});
</script>

{if $showSidebarToggle}
   <button type="button" class="btn btn-default btn-sm" id="btnShowSidebar">
       <i class="fa fa-arrow-circle-right"></i>
       {$LANG.showMenu}
   </button>
{/if}

<div class="row row-product-selection">
   <div class="col-xs-3 product-selection-sidebar" id="premiumComparisonSidebar">
       {include file="orderforms/standard_cart/sidebar-categories.tpl"}
   </div>
   <div class="col-xs-12">

       <div id="order-premium_comparison">
           <div class="main-container price-01">
               <div class="txt-center">
                   <h3 id="headline">
                       {if $productGroup.headline}
                           {$productGroup.headline}
                       {else}
                           {$productGroup.name}
                       {/if}
                   </h3>
                   {if $productGroup.tagline}
                       <h5 id="tagline">
                           {$productGroup.tagline}
                       </h5>
                   {/if}
                   {if $errormessage}
                       <div class="alert alert-danger">
                           {$errormessage}
                       </div>
                   {/if}
               </div>
               <div id="products" class="price-table-container">
                   <ul>
                       {foreach $products as $product}
                           <li id="product{$product@iteration}">
                               <div class="price-table">
                                   <div class="top-head">
                                       <div class="top-area">
                                           <h4 id="product{$product@iteration}-name">{$product.name}</h4>
                                       </div>
                                       {if $product.tagLine}
                                           <p id="product{$product@iteration}-tag-line">{$product.tagLine}</p>
                                       {/if}
                                       {if $product.isFeatured}
                                           <div class="popular-plan">
                                               {$LANG.featuredProduct|upper}
                                           </div>
                                       {/if}

                                                {assign billcycle ['monthly', 'quarterly', 'semiannually', 'annually', 'biennially', 'triennially']}
                                       {assign divisor ['monthly'=>1,'quarterly'=>3, 'semiannually'=>6, 'annually'=>12, 'biennially'=>24, 'triennially'=>36]}
                                       {assign lowestprice value=null}
                                       {foreach $billcycle as $cycle}
                                               {if $product.pricing.rawpricing.{$cycle} neq '-1.00'}
                                                   {append var=lowestprice value=$product.pricing.rawpricing.{$cycle}/$divisor.{$cycle} index=$cycle}
                                               {/if}
                                       {/foreach}
                                       {$lowsort=$lowestprice|@asort}
                                       {assign minprice $lowestprice|@reset|string_format:"%.2f"}
                                       {assign mincycle $lowestprice|@key}
                                       {assign paymentterm "orderpaymentterm$mincycle"}  
                                       {if $product.qty eq "0"}
                                           <div id="product{$product@iteration}-unavailable">
                                               <div class="order-unavailable">
                                                   {$LANG.outofstock}
                                               </div>
                                           </div>
                                       {else}
                                           <a href="{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" id="product{$product@iteration}-order-button">
                                               <div class="order-now">
                                                   {$LANG.ordernowbutton}
                                               </div>
                                           </a>
                                       {/if}
                                   </div>  
                                   </div>
                                   <ul>
                                       {foreach $product.features as $feature => $value}
                                           <li id="product{$product@iteration}-feature{$value@iteration}">
                                               {$value} {$feature}
                                           </li>
                                       {foreachelse}
                                           <li id="product{$product@iteration}-description">
                                               {$product.description}
                                           </li>
                                       {/foreach}
                                   </ul>
                               </div>
                           </li>
                       {/foreach}
                   </ul>
               </div>
           </div>
           {if count($productGroup.features) > 0}
               <div class="includes-features">
                   <div class="row clearfix">
                       <div class="col-md-12">
                           <div class="head-area">
                               <span>
                                   {$LANG.orderForm.includedWithPlans}
                               </span>
                           </div>
                           <ul class="list-features">
                               {foreach $productGroup.features as $features}
                                   <li>{$features.feature}</li>
                               {/foreach}
                           </ul>
                       </div>
                   </div>
               </div>
           {/if}
       </div>

   </div>
</div>

thats my code for products.tpl

Link to comment
Share on other sites

thats my code for products.tpl

the problem is that you've added this code to the wrong template - it's been added to premium_comparison/products.tpl - but you aren't using Premium Comparison, you're using Supreme Comparison! :)

 

in supreme_comparison/products.tpl, you need to use...

 

                                    <div class="price-area">
                                       {assign billcycle ['monthly', 'quarterly', 'semiannually', 'annually', 'biennially', 'triennially']}
                                       {assign divisor ['monthly'=>1,'quarterly'=>3, 'semiannually'=>6, 'annually'=>12, 'biennially'=>24, 'triennially'=>36]}
                                       {assign lowestprice value=null}
                                       {foreach $billcycle as $cycle}
                                           {if $product.pricing.rawpricing.{$cycle} neq '-1.00'}
                                               {append var=lowestprice value=$product.pricing.rawpricing.{$cycle}/$divisor.{$cycle} index=$cycle}
                                           {/if}
                                       {/foreach}
                                       {$lowsort=$lowestprice|@asort}
                                       {assign minprice $lowestprice|@reset|string_format:"%.2f"}
                                       {assign mincycle $lowestprice|@key}
                                       {assign paymentterm "orderpaymentterm$mincycle"}  
                                       <div class="price" id="product{$product@iteration}-price">
                                           {if $product.bid}
                                               {if $product.displayprice}
                                                   <div class="price-label">{$LANG.bundledeal}</div>
                                                   <span>{$product.displayPriceSimple}</span>
                                               {else}
                                                   <div class="price-single-line">
                                                       {$LANG.bundledeal}
                                                   </div>
                                               {/if}
                                           {elseif $product.paytype eq "free"}
                                               <div class="price-single-line">
                                                   <span>{$LANG.orderfree}</span>
                                               </div>
                                           {elseif $product.paytype eq "onetime"}
                                               <div class="price-label">{$LANG.orderpaymenttermonetime}</div>
                                               <span>{$product.pricing.onetime}</span>
                                           {else}
                                               <div class="price-label">{$LANG.startingat}</div>
                                               <span>{$currency.prefix}{$minprice}{$currency.suffix}</span>/mo  
                                           {/if}
                                       </div>
                                       {if $product.qty eq "0"}
                                           <div id="product{$product@iteration}-unavailable">
                                               <div class="order-unavailable">
                                                   {$LANG.outofstock}
                                               </div>
                                           </div>
                                       {else}
                                           <a href="{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" id="product{$product@iteration}-order-button">
                                               <div class="order-now">
                                                   {$LANG.ordernowbutton}
                                               </div>
                                           </a>
                                       {/if}
                                   </div>

that will show a monthly breakdown price for the cheapest product; if you want to show the cheapest full price and cycle, then replace that one line with the code below...

 

<span>{$currency.prefix}{$product.pricing.rawpricing.{$mincycle}}{$currency.suffix}</span><br>{$LANG.{$paymentterm}}

Link to comment
Share on other sites

<link rel="stylesheet" type="text/css" href="{$WEB_ROOT}/templates/orderforms/{$carttpl}/css/style.css" property="stylesheet" />
<script>
   jQuery(document).ready(function () {
       jQuery('#btnShowSidebar').click(function () {
           if (jQuery(".product-selection-sidebar").is(":visible")) {
               jQuery('.row-product-selection').css('left','0');
               jQuery('.product-selection-sidebar').fadeOut();
               jQuery('#btnShowSidebar').html('<i class="fa fa-arrow-circle-right"></i> {$LANG.showMenu}');
           } else {
               jQuery('.product-selection-sidebar').fadeIn();
               jQuery('.row-product-selection').css('left','300px');
               jQuery('#btnShowSidebar').html('<i class="fa fa-arrow-circle-left"></i> {$LANG.hideMenu}');
           }
       });
   });
</script>

{if $showSidebarToggle}
   <button type="button" class="btn btn-default btn-sm" id="btnShowSidebar">
       <i class="fa fa-arrow-circle-right"></i>
       {$LANG.showMenu}
   </button>
{/if}
<div class="row row-product-selection">
   <div class="col-xs-3 product-selection-sidebar" id="supremeComparisonSidebar">
       {include file="orderforms/standard_cart/sidebar-categories.tpl"}
   </div>
   <div class="col-xs-12">
       <div id="order-supreme_comparison">
           <div class="product-group-heading">
               <div class="product-group-headline">
                   {if $productGroup.headline}
                       {$productGroup.headline}
                   {else}
                       {$productGroup.name}
                   {/if}
               </div>
               {if $productGroup.tagline}
                   <div class="product-group-tagline">
                       {$productGroup.tagline}
                   </div>
               {/if}
               {if $errormessage}
                   <div class="alert alert-danger">
                       {$errormessage}
                   </div>
               {/if}
           </div>
           <div id="products" class="price-table-container">
               <ul>
                   {$count = 1}
                   {foreach $products as $product}
                       <li id="product{$product@iteration}">
                           <div class="price-table">
                               <div class="product-icon">
                                   <img src="{$WEB_ROOT}/templates/orderforms/{$carttpl}/img/bg{$count}.png" width="155" height="95" alt="Product {$product@iteration}" />
                               </div>
                               <div class="product-title">
                                   <h3 id="product{$product@iteration}-name">
                                       {$product.name}
                                   </h3>
                                   {if $product.tagLine}
                                       <p id="product{$product@iteration}-tag-line">
                                           {$product.tagLine}
                                       </p>
                                   {/if}
                               </div>
                               {if $product.isFeatured}
                                   <div class="featured-product-background">
                                       <span class="featured-product">{$LANG.featuredProduct|upper}</span>
                                   </div>
                               {/if}
                               <div class="product-body">
                                   <ul id="product{$product@iteration}-description">
                                       {foreach $product.features as $feature => $value}
                                           <li id="product{$product@iteration}-feature{$value@iteration}">
                                               <span>{$value}</span> {$feature}
                                           </li>
                                       {foreachelse}
                                           <li id="product{$product@iteration}-description">
                                               {$product.description}
                                           </li>
                                       {/foreach}
                                       {if !empty($product.features) && $product.featuresdesc}
                                           <li id="product{$product@iteration}-feature-description">
                                               {$product.featuresdesc}
                                           </li>
                                       {/if}
                                   </ul>
                                    <div class="price-area">
                                       {assign billcycle ['monthly', 'quarterly', 'semiannually', 'annually', 'biennially', 'triennially']}
                                       {assign divisor ['monthly'=>1,'quarterly'=>3, 'semiannually'=>6, 'annually'=>12, 'biennially'=>24, 'triennially'=>36]}
                                       {assign lowestprice value=null}
                                       {foreach $billcycle as $cycle}
                                           {if $product.pricing.rawpricing.{$cycle} neq '-1.00'}
                                               {append var=lowestprice value=$product.pricing.rawpricing.{$cycle}/$divisor.{$cycle} index=$cycle}
                                           {/if}
                                       {/foreach}
                                       {$lowsort=$lowestprice|@asort}
                                       {assign minprice $lowestprice|@reset|string_format:"%.2f"}
                                       {assign mincycle $lowestprice|@key}
                                       {assign paymentterm "orderpaymentterm$mincycle"}  
                                       <div class="price" id="product{$product@iteration}-price">
                                           {if $product.bid}
                                               {if $product.displayprice}
                                                   <div class="price-label">{$LANG.bundledeal}</div>
                                                   <span>{$product.displayPriceSimple}</span>
                                               {else}
                                                   <div class="price-single-line">
                                                       {$LANG.bundledeal}
                                                   </div>
                                               {/if}
                                           {elseif $product.paytype eq "free"}
                                               <div class="price-single-line">
                                                   <span>{$LANG.orderfree}</span>
                                               </div>
                                           {elseif $product.paytype eq "onetime"}
                                               <div class="price-label">{$LANG.orderpaymenttermonetime}</div>
                                               <span>{$product.pricing.onetime}</span>
                                           {else}
                                               <div class="price-label">{$LANG.startingat}</div>
                                               <span>{$currency.prefix}{$minprice}{$currency.suffix}</span>/mo  
                                           {/if}
                                       </div>
                                       {if $product.qty eq "0"}
                                           <div id="product{$product@iteration}-unavailable">
                                               <div class="order-unavailable">
                                                   {$LANG.outofstock}
                                               </div>
                                           </div>
                                       {else}
                                           <a href="{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" id="product{$product@iteration}-order-button">
                                               <div class="order-now">
                                                   {$LANG.ordernowbutton}
                                               </div>
                                           </a>
                                       {/if}
                                   </div>  
 </div>
                                       {else}
                                           <a href="{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" id="product{$product@iteration}-order-button">
                                               <div class="order-now">
                                                   {$LANG.ordernowbutton}
                                               </div>
                                           </a>
                                       {/if}

                                   </div>
                               </div>
                           </div>
                       </li>
                       {if $count eq 6}
                           {$count = 1}
                       {else}
                           {$count = $count + 1}
                       {/if}
                   {/foreach}
               </ul>
           </div>
           {if count($productGroup.features) > 0}
               <div class="includes-features">
                   <div class="row clearfix">
                       <div class="col-md-12">
                           <div class="head-area">
                               <span>
                                   {$LANG.orderForm.includedWithPlans}
                               </span>
                           </div>
                           <ul class="list-features">
                               {foreach $productGroup.features as $features}
                                   <li>{$features.feature}</li>
                               {/foreach}
                           </ul>
                       </div>
                   </div>
               </div>
           {/if}
       </div>
   </div>
</div>

now it broken ,what did I do wrong?

Link to comment
Share on other sites

now it broken ,what did I do wrong?

it looks like you've got an unclosed foreach loop towards the end... here's my working supreme_comparison/products.tpl template...

 

<link rel="stylesheet" type="text/css" href="{$WEB_ROOT}/templates/orderforms/{$carttpl}/css/style.css" property="stylesheet" />
<script>
   jQuery(document).ready(function () {
       jQuery('#btnShowSidebar').click(function () {
           if (jQuery(".product-selection-sidebar").is(":visible")) {
               jQuery('.row-product-selection').css('left','0');
               jQuery('.product-selection-sidebar').fadeOut();
               jQuery('#btnShowSidebar').html('<i class="fa fa-arrow-circle-right"></i> {$LANG.showMenu}');
           } else {
               jQuery('.product-selection-sidebar').fadeIn();
               jQuery('.row-product-selection').css('left','300px');
               jQuery('#btnShowSidebar').html('<i class="fa fa-arrow-circle-left"></i> {$LANG.hideMenu}');
           }
       });
   });
</script>

{if $showSidebarToggle}
   <button type="button" class="btn btn-default btn-sm" id="btnShowSidebar">
       <i class="fa fa-arrow-circle-right"></i>
       {$LANG.showMenu}
   </button>
{/if}
<div class="row row-product-selection">
   <div class="col-xs-3 product-selection-sidebar" id="supremeComparisonSidebar">
       {include file="orderforms/standard_cart/sidebar-categories.tpl"}
   </div>
   <div class="col-xs-12">
       <div id="order-supreme_comparison">
           <div class="product-group-heading">
               <div class="product-group-headline">
                   {if $productGroup.headline}
                       {$productGroup.headline}
                   {else}
                       {$productGroup.name}
                   {/if}
               </div>
               {if $productGroup.tagline}
                   <div class="product-group-tagline">
                       {$productGroup.tagline}
                   </div>
               {/if}
               {if $errormessage}
                   <div class="alert alert-danger">
                       {$errormessage}
                   </div>
               {/if}
           </div>
           <div id="products" class="price-table-container">
               <ul>
                   {$count = 1}
                   {foreach $products as $product}
                       <li id="product{$product@iteration}">
                           <div class="price-table">
                               <div class="product-icon">
                                   <img src="{$WEB_ROOT}/templates/orderforms/{$carttpl}/img/bg{$count}.png" width="155" height="95" alt="Product {$product@iteration}" />
                               </div>
                               <div class="product-title">
                                   <h3 id="product{$product@iteration}-name">
                                       {$product.name}
                                   </h3>
                                   {if $product.tagLine}
                                       <p id="product{$product@iteration}-tag-line">
                                           {$product.tagLine}
                                       </p>
                                   {/if}
                               </div>
                               {if $product.isFeatured}
                                   <div class="featured-product-background">
                                       <span class="featured-product">{$LANG.featuredProduct|upper}</span>
                                   </div>
                               {/if}
                               <div class="product-body">
                                   <ul id="product{$product@iteration}-description">
                                       {foreach $product.features as $feature => $value}
                                           <li id="product{$product@iteration}-feature{$value@iteration}">
                                               <span>{$value}</span> {$feature}
                                           </li>
                                       {foreachelse}
                                           <li id="product{$product@iteration}-description">
                                               {$product.description}
                                           </li>
                                       {/foreach}
                                       {if !empty($product.features) && $product.featuresdesc}
                                           <li id="product{$product@iteration}-feature-description">
                                               {$product.featuresdesc}
                                           </li>
                                       {/if}
                                   </ul>
                                    <div class="price-area">
                                       {assign billcycle ['monthly', 'quarterly', 'semiannually', 'annually', 'biennially', 'triennially']}
                                       {assign divisor ['monthly'=>1,'quarterly'=>3, 'semiannually'=>6, 'annually'=>12, 'biennially'=>24, 'triennially'=>36]}
                                       {assign lowestprice value=null}
                                       {foreach $billcycle as $cycle}
                                           {if $product.pricing.rawpricing.{$cycle} neq '-1.00'}
                                               {append var=lowestprice value=$product.pricing.rawpricing.{$cycle}/$divisor.{$cycle} index=$cycle}
                                           {/if}
                                       {/foreach}
                                       {$lowsort=$lowestprice|@asort}
                                       {assign minprice $lowestprice|@reset|string_format:"%.2f"}
                                       {assign mincycle $lowestprice|@key}
                                       {assign paymentterm "orderpaymentterm$mincycle"}  
                                       <div class="price" id="product{$product@iteration}-price">
                                           {if $product.bid}
                                               {if $product.displayprice}
                                                   <div class="price-label">{$LANG.bundledeal}</div>
                                                   <span>{$product.displayPriceSimple}</span>
                                               {else}
                                                   <div class="price-single-line">
                                                       {$LANG.bundledeal}
                                                   </div>
                                               {/if}
                                           {elseif $product.paytype eq "free"}
                                               <div class="price-single-line">
                                                   <span>{$LANG.orderfree}</span>
                                               </div>
                                           {elseif $product.paytype eq "onetime"}
                                               <div class="price-label">{$LANG.orderpaymenttermonetime}</div>
                                               <span>{$product.pricing.onetime}</span>
                                           {else}
                                               <div class="price-label">{$LANG.startingat}</div>
                                               <span>{$currency.prefix}{$minprice}{$currency.suffix}</span>/mo  
                                           {/if}
                                       </div>
                                       {if $product.qty eq "0"}
                                           <div id="product{$product@iteration}-unavailable">
                                               <div class="order-unavailable">
                                                   {$LANG.outofstock}
                                               </div>
                                           </div>
                                       {else}
                                           <a href="{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" id="product{$product@iteration}-order-button">
                                               <div class="order-now">
                                                   {$LANG.ordernowbutton}
                                               </div>
                                           </a>
                                       {/if}

                                   </div>
                               </div>
                           </div>
                       </li>
                       {if $count eq 6}
                           {$count = 1}
                       {else}
                           {$count = $count + 1}
                       {/if}
                   {/foreach}
               </ul>
           </div>
           {if count($productGroup.features) > 0}
               <div class="includes-features">
                   <div class="row clearfix">
                       <div class="col-md-12">
                           <div class="head-area">
                               <span>
                                   {$LANG.orderForm.includedWithPlans}
                               </span>
                           </div>
                           <ul class="list-features">
                               {foreach $productGroup.features as $features}
                                   <li>{$features.feature}</li>
                               {/foreach}
                           </ul>
                       </div>
                   </div>
               </div>
           {/if}
       </div>
   </div>
</div>  

Link to comment
Share on other sites

we got there in the end! :idea:

 

I would guess looking, at your site. that only USD has a suffix in your currency settings - e.g if you added GBP and CAN to your other currency settings, then it would show up - not only on the products page, but on the page two steps after that where you can choose the billing cycle.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated