WebHostingPeople Posted July 31, 2017 Share Posted July 31, 2017 Hi, I am using Universal Slider. Please look here # https://www.webhostingpeople.net/billing/cart.php?gid=8 Here is showing default price of billing cycle of /mo. That I want to show Annually OR Biennially. Please guide me. How can I do it? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 31, 2017 Share Posted July 31, 2017 the quick way would be a template edit to universal_slider/products.tpl and change... {$product.pricing.minprice.cycleText} to... {if $product.pricing.cycles.annually}{$product.pricing.cycles.annually}{elseif $product.pricing.cycles.biennially}{$product.pricing.cycles.biennially}{else}{$product.pricing.minprice.cycleText}{/if} that will show the annual price by default (if it exists), or the biennial amount... or, if neither exist, it will default to using minprice. you may also have to remove the {if} block below that that shows setup fees (as the above line will show them too)... the long way, if you don't like the output generated above, might be to use the values from the rawpricing array instead - which would give you some flexibility, but would require longer code. 0 Quote Link to comment Share on other sites More sharing options...
WebHostingPeople Posted July 31, 2017 Author Share Posted July 31, 2017 Hi, Thanks for guide. But after replace your given code of line 86 , order form is empty loading. I did remove the lines 88-89 also. But nothing happened. I am using theme Six. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 31, 2017 Share Posted July 31, 2017 well you modified the correct code, but if you left the {/if} in line 90, that will be the cause of the problem - remove the entire {if} block of 87-90 and it should work... <br> {if $product.pricing.minprice.setupFee} <small>{$product.pricing.minprice.setupFee->toPrefixed()} {$LANG.ordersetupfee}</small> {/if} 0 Quote Link to comment Share on other sites More sharing options...
WebHostingPeople Posted July 31, 2017 Author Share Posted July 31, 2017 Yes I had done that. Please the following my code but same result: {elseif $product.paytype eq "onetime"} {$product.pricing.onetime} {$LANG.orderpaymenttermonetime} {else} {if $product.pricing.hasconfigoptions} {$LANG.from} {/if} <br> {if $product.pricing.minprice.setupFee} <small>{$product.pricing.minprice.setupFee->toPrefixed()} {$LANG.ordersetupfee}</small> {/if} </span> {if $product.qty eq "0"} <span id="product{$productId}-unavailable" class="order-button unavailable"> {$LANG.outofstock} </span> {else} <a href="{$smarty.server.PHP_SELF}?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" class="order-button" id="product{$productId}-order-button"> {$LANG.ordernowbutton} </a> {/if} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 31, 2017 Share Posted July 31, 2017 maybe we have our line numbers mixed up... lines 72-92 for me in v7.2.3 are... <span class="price-cont"> {if $product.bid} {$LANG.bundledeal} {if $product.displayprice} <br /><br /><span>{$product.displayPriceSimple}</span> {/if} {elseif $product.paytype eq "free"} {$LANG.orderfree} {elseif $product.paytype eq "onetime"} {$product.pricing.onetime} {$LANG.orderpaymenttermonetime} {else} {if $product.pricing.hasconfigoptions} {$LANG.from} {/if} {$product.pricing.minprice.cycleText} <br> {if $product.pricing.minprice.setupFee} <small>{$product.pricing.minprice.setupFee->toPrefixed()} {$LANG.ordersetupfee}</small> {/if} {/if} </span> you should change it to... <span class="price-cont"> {if $product.bid} {$LANG.bundledeal} {if $product.displayprice} <br /><br /><span>{$product.displayPriceSimple}</span> {/if} {elseif $product.paytype eq "free"} {$LANG.orderfree} {elseif $product.paytype eq "onetime"} {$product.pricing.onetime} {$LANG.orderpaymenttermonetime} {else} {if $product.pricing.hasconfigoptions} {$LANG.from} {/if} {if $product.pricing.cycles.annually}{$product.pricing.cycles.annually}{elseif $product.pricing.cycles.biennially}{$product.pricing.cycles.biennially}{else}{$product.pricing.minprice.cycleText}{/if} {/if} </span> 0 Quote Link to comment Share on other sites More sharing options...
WebHostingPeople Posted August 1, 2017 Author Share Posted August 1, 2017 Thanks a lot after long exercise of copy/paste , your code is working absolutely perfect now. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.