example: https://jnsflooringandsupplies.com/T...Grouting_Float, ZC Version 1.56c,
i have thiscode to display my discounts like thisCode:// base price if ($show_onetime_charges_description == 'true') { $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />'; } else { $one_time = ''; } $cheapest = zen_get_products_discount_price_qty((int) $_GET['products_id'], 20000); $cheapest = '$' . number_format($cheapest, 2); $price = zen_get_products_actual_price((int) $_GET['products_id']); $price = '$' . number_format($price, 2); $bulkqty = $products_discounts_query->fields['discount_qty']; $bulkpercent = round($quantityDiscounts[$columnCount]['discounted_price'] = $products_discounts_query->fields['discount_price']); if ($cheapest != $price && (!stristr($price, "productSpecialPrice") ) && (!stristr($price, "call_for_prices") && ($calculator == 1))) { echo 'Buy '. $bulkqty . ' Sq. Ft. for ' . $cheapest .' and save ' . $bulkpercent.'%'; } else if ($cheapest != $price && (!stristr($price, "productSpecialPrice") ) && (!stristr($price, "call_for_prices") && ($calculator == 2))) { echo 'Buy '. $bulkqty . ' Sq. Ft. for ' . $cheapest .' and save ' . $bulkpercent.'%'; } else if ($cheapest != $price && (!stristr($price, "productSpecialPrice") ) && (!stristr($price, "call_for_prices") && ($calculator == 0))) { echo 'Buy '. $bulkqty . ' for ' . $cheapest .' each and save ' . $bulkpercent.'%'; } ?>
Buy 60 for $8.92 each and save 8%
but this does not show all discounts, just the last 1 in list.
based on code above what do i need to add to it to make it show all fields in discount table?
Bookmarks