Jump to content

Recommended Posts

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.

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

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>

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.

×
×
  • 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