Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2016
    Posts
    3
    Plugin Contributions
    0

    Default Products Price Manager Discount Quantity Table Not Displaying Number of Items

    Evening Folks,

    Trying to add the default quantity discount table to some products but cannot get the tabble to display the quantity needed in order to get the discounted price. The table displays the default price and quantity and the discounted prices that I added through the products price manager. Also, the discounted price is applied at checkout and when you add to cart.

    I was messing around with the tpl_modules_products_quantity_discounts.php file when I was adjusting the table's font and padding so I am assuming that I deleted a line of code or adjusted it in the process?

    Running Zen Kart 1.5.1

    URL: http://www.aquapurawater.ca/water-tr...amp-p-389.html
    Picture and php file for reference.


    Name:  QuantityTable.png
Views: 269
Size:  74.2 KB

    Code:
     <?php
    /**
     * Module Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_products_quantity_discounts.php 3291 2006-03-28 04:03:38Z ajeh $
     */
    
    ?>
    <div id="productQuantityDiscounts">
    <?php
      if ($zc_hidden_discounts_on) {
    ?>
      <table border="0" cellspacing="0" cellpadding="0"  >
        <tr>
          <td colspan="1" align="center">
          <?php echo TEXT_HEADER_DISCOUNTS_OFF; ?>
          </td>
        </tr>
        <tr>
          <td colspan="1" align="center">
          <?php echo $zc_hidden_discounts_text; ?>
          </td>
        </tr>
      </table>
    <?php } else { ?>
      <table border="3" cellspacing="2" cellpadding="10"  >
      
        <tr>
          <td colspan="<?php echo $columnCount+1; ?>" align="center" >
    <?php
      switch ($products_discount_type) {
        case '1':
          echo TEXT_HEADER_DISCOUNT_PRICES_PERCENTAGE;
          break;
        case '2':
          echo TEXT_HEADER_DISCOUNT_PRICES_ACTUAL_PRICE;
          break;
        case '3':
          echo TEXT_HEADER_DISCOUNT_PRICES_AMOUNT_OFF;
          break;
      }
    ?>
          </td>
        </tr>
    
        <tr>
          <td align="center"><?php echo $show_qty . '<br />' . $currencies->display_price($show_price, zen_get_tax_rate($products_tax_class_id)); ?></td>
    
    <?php
      foreach($quantityDiscounts as $key=>$quantityDiscount) {
    ?>
    <td align="center"<?php echo $quantityDiscount['show_qty'] . '<br />' . $currencies->display_price($quantityDiscount['discounted_price'], zen_get_tax_rate($products_tax_class_id)); ?></td>
    <?php
        $disc_cnt++;
        if ($discount_col_cnt == $disc_cnt && !($key == sizeof($quantityDiscount))) {
          $disc_cnt=0;
    ?>
      </tr><tr>
    <?php
        }
      }
    ?>
    <?php
      if ($disc_cnt < $columnCount) {
    ?>
        <td align="center" colspan="<?php echo ($columnCount+1 - $disc_cnt)+1; ?>"> &nbsp; </td>
    <?php } ?>
        </tr>
    <?php
      if (zen_has_product_attributes($products_id_current)) {
    ?>
        <tr>
          <td colspan="<?php echo $columnCount+1; ?>" align="center">
            <?php echo TEXT_FOOTER_DISCOUNT_QUANTITIES; ?>
          </td>
        </tr>
    <?php } ?>
      </table>
    <?php } // hide discounts ?>
    </div>

  2. #2
    Join Date
    Nov 2016
    Posts
    3
    Plugin Contributions
    0

    Default Re: Products Price Manager Discount Quantity Table Not Displaying Number of Items

    FIXED!

    Turns out I had added a few extra spaces in line 55!!!

  3. #3
    Join Date
    Oct 2009
    Posts
    14
    Plugin Contributions
    0

    Default Re: Products Price Manager Discount Quantity Table Not Displaying Number of Items

    For issues with Discount QTY not applying to Products in the Cart. Go to Attribute Controller and select the Red Cross that corresponds to 'Discounted' for this product. This should apply QTY discounts correctly in the cart.

 

 

Similar Threads

  1. v139h Products Price Manager Dissapearing from some items will not diplay those items
    By WiccanWitch420 in forum General Questions
    Replies: 29
    Last Post: 21 Jun 2013, 08:39 PM
  2. Quantity Discount Table Display Price.
    By lmax401 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Sep 2008, 01:40 AM
  3. Product Price Manager Not Applying Multiple Quantity Discount
    By skustes in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 7 Sep 2008, 04:50 AM
  4. Replies: 0
    Last Post: 22 Aug 2007, 05:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR