Template Name: "ZCA Bootstrap-4"
Template Author: rbarbour (zcadditions.com), lat9 (vinosdefrutastropicales.com), drbyte (zen-cart.com)
Template Version: Version 3.7.0
Attachment 20707
Printable View
Template Name: "ZCA Bootstrap-4"
Template Author: rbarbour (zcadditions.com), lat9 (vinosdefrutastropicales.com), drbyte (zen-cart.com)
Template Version: Version 3.7.0
Attachment 20707
Hmm, that Attribute Grid addition must be changing the variable type for $products_discount_type (it's normally a character string). What happens if you change your copy of /includes/templates/bootstrap/templates/tpl_product_info_display (around line 222) to read
PHP Code:
if ($products_discount_type != 0) {
I think this is the section (starting at line 228)
I tried removing one of the = to make it the same as yours, but the discount link still displays under any attributes.PHP Code:
<?php
}
if ($products_discount_type !== '0') {
?>
<!--bof Quantity Discounts table -->
<div id="<?= $html_id_prefix ?>-productQuantityDiscounts" class="productQuantityDiscounts">
<?php require $template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates') . '/tpl_modules_products_quantity_discounts.php'; ?>
</div>
<!--eof Quantity Discounts table -->
I think I may have tried to comment out this whole section but got a bit confused, in devphp when I click the first } after the opening <?php it highlights a { in the prvious section so i'm not sure if the opening <?php should be after that line or not.
I ended up removing the link from the template file as I have no plans on implementing discounts.
tpl_modules_attributes.php (line 75)
Code:<div><?php echo zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' ' . '<a data-toggle="modal" href="#attributesQtyPricesModal">' . TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK . '</a>'; ?></div>
That probably not the best way to fix the issue but at least the Quantity Discounts Available link is gone :)Code:<div><?php echo ' '; ?></div>