andyshears Posted April 26, 2023 Share Posted April 26, 2023 Hi I am using the standard cubecart template, which displays the quantity discount table, to the right of "Specification". How can I display the discount table under the "Add to basket" and right of the product image ? Thanks in advance Regards Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 26, 2023 Share Posted April 26, 2023 Load the Foundation skin templates 'content.product.php' and 'element.product.call_to_action.php' into a programmer's text editor. In content.index.php, near lines 31-33, comment those statements: {* {if !empty($PRODUCT.discounts)} <dd><a href="#quantity_discounts">{$LANG.catalogue.quantity_discounts}</a></dd> {/if} *} Near lines 104-129, copy those statements to element.product.call_to_action.php, replacing lines 20-22: From: {if !empty($PRODUCT.discounts)} <p>(<a href="#quantity_discounts">{$LANG.catalogue.bulk_discount}</a>)</p> {/if} To: {if isset($PRODUCT.discounts)} <div class="content" id="quantity_discounts"> <p>{$LANG.catalogue.quantity_discounts_explained}</p> <br> <table> <thead> <tr> <th>{$LANG.common.quantity}</th> <th>{$LANG.catalogue.price_per_unit}</th> </tr> </thead> <tbody> <tr> <td class="text-center">1</td> <td class="text-center">{if $PRODUCT.ctrl_sale}{$PRODUCT.sale_price}{else}{$PRODUCT.price}{/if}</td> </tr> {foreach from=$PRODUCT.discounts item=discount} <tr> <td class="text-center">{$discount.quantity}+</td> <td class="text-center">{$discount.price}</td> </tr> {/foreach} </tbody> </table> </div> {/if} Then comment those lines in content.product.php: {* {if isset($PRODUCT.discounts)} <div class="content" id="quantity_discounts"> <p>{$LANG.catalogue.quantity_discounts_explained}</p> <br> <table> <thead> <tr> <th>{$LANG.common.quantity}</th> <th>{$LANG.catalogue.price_per_unit}</th> </tr> </thead> <tbody> <tr> <td class="text-center">1</td> <td class="text-center">{if $PRODUCT.ctrl_sale}{$PRODUCT.sale_price}{else}{$PRODUCT.price}{/if}</td> </tr> {foreach from=$PRODUCT.discounts item=discount} <tr> <td class="text-center">{$discount.quantity}+</td> <td class="text-center">{$discount.price}</td> </tr> {/foreach} </tbody> </table> </div> {/if} *} Quote Link to comment Share on other sites More sharing options...
andyshears Posted April 27, 2023 Author Share Posted April 27, 2023 First class ! Thanks 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.