Results 1 to 2 of 2
  1. #1
    Join Date
    May 2009
    Posts
    155
    Plugin Contributions
    0

    Default Change size of quantity discount border (width)?

    Hi,

    I have searched the forum but cannot find out how to change the width of a module border (in this case it's quantity discounts). I found the correct tpl page - tpl_modules_products_quantity_discounts.php and the text from this is below but I am unsure how to change it. Have tried adjusting cell padding from 2 to 30 but it made no difference. Can someone tell me what I am missing?

    PHP Code:
    ?>
    <div id="productQuantityDiscounts">
    <?php
      
    if ($zc_hidden_discounts_on) {
    ?>
      <table border="1" cellspacing="2" cellpadding="2">
        <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="1" cellspacing="2" cellpadding="2">
        <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_pricezen_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+$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>
    Image showing how the border is currently the entire width of the page - I would like to make this box smaller width-wise.
    Name:  SCR-Border.jpg
Views: 101
Size:  37.6 KB
    Thanks for any help you can give.

  2. #2
    Join Date
    May 2009
    Posts
    155
    Plugin Contributions
    0

    Default Re: Change size of quantity discount border (width)?

    Is ok, I have managed to sort this through the product_info.css

 

 

Similar Threads

  1. Pages Change Size of Width!?!
    By acreativepage in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Nov 2009, 11:36 AM
  2. REFRESH/ADD TO CART buttons same size as FORM width, how do i change???
    By krazey in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Jun 2009, 01:08 PM
  3. How do I change the width of site to a static a size
    By peter Murphy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Oct 2008, 03:01 PM
  4. Change how "Quantity Discount" display
    By margecc in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 3 Jul 2008, 07:51 PM
  5. Page Width change automatic for screen size ?
    By maza in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 16 Aug 2007, 11:39 AM

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