Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default my itsy bitsy quantity discount table...

    I realize that there are numerous posts about the quantity discount table, and I have read all of them. I've only been able to edit it slightly, the biggest problem being that the text is tiny and can barely be read. I've spent hours trying to change it with no luck.

    It's on this page

    WHAT am I missing about editing this table?

    For that matter, my add to cart is also miniature. It looks like they're using the same font size, but I'll be if I can find it in the stylesheet.

    Someone please clue me in.

  2. #2
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: my itsy bitsy quantity discount table...

    OMG, someone give me a moron hat.


  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: my itsy bitsy quantity discount table...

    Before putting the hat on, would you explain how you discovered the problem and how you fixed it.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: my itsy bitsy quantity discount table...

    Quote Originally Posted by Kim View Post
    Before putting the hat on, would you explain how you discovered the problem and how you fixed it.
    I realized how to finally fix it when I started to edit the More Information pages and saw the tiny text. The default font in my stylesheet was something like 62.5em -- which meant nothing to me because I'm used to fonts being "px". So...went into my stylesheet, changed the 62.5em to 12px.

    I also put a style for it in the stylesheet.

    Code:
    #qtyDiscountTable {
    	border: 3px solid #C5B79E;
    	float: right;	
    	margin: 0em 0em 0em 0em;
    	font-weight: 700;
    	}
    In "tpl_product_info_display.php" put the table in a <div>:

    Code:
    <!--bof Quantity Discounts table -->
    <div id="qtyDiscountTable">
    <?php
      if ($products_discount_type != 0) { ?>
    <?php
    /**
     * display the products quantity discount
     */
     require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
    <?php
      }
    ?></div>
    <!--eof Quantity Discounts table -->
    Then depending on how the table is being styled in stylesheet, you can take out the borders & change the padding of the table in "tpl_modules_products_quantity_discount.php".

    I have mine as "<table border="0" cellspacing="5" cellpadding="5">"

    It's simple changes but a real pain to figure out for a noob Zenner.

  5. #5
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: my itsy bitsy quantity discount table...

    I think you mean that the original font size setting was 62.5% not 62.5em. But that's normal for Zen Cart. If you find the font sizes too tiny, as I do too, just change 62.5% to something larger, perhaps 75% or 85% or whatever suits. No need to make any other changes elsewhere as the other font size settings in the stylesheet should be in em units, so they will be relative to that initial setting.

    Remember, any time you use pixels as a unit you are trying to force a particular size, as you see it, onto someone else's screen, which may be quite different from yours. Best to use relative units, like em or percent.

    Rob

  6. #6
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: my itsy bitsy quantity discount table...

    Quote Originally Posted by rstevenson View Post
    I think you mean that the original font size setting was 62.5% not 62.5em. But that's normal for Zen Cart. If you find the font sizes too tiny, as I do too, just change 62.5% to something larger, perhaps 75% or 85% or whatever suits. No need to make any other changes elsewhere as the other font size settings in the stylesheet should be in em units, so they will be relative to that initial setting.

    Remember, any time you use pixels as a unit you are trying to force a particular size, as you see it, onto someone else's screen, which may be quite different from yours. Best to use relative units, like em or percent.

    Rob
    Yup, you're right it was 62.5%. I'll try a percentage & see how that works out.

    "the other font size settings in the stylesheet should be in em units, so they will be relative to that initial setting."

    Aha! I get it now - thanks!

 

 

Similar Threads

  1. v139h Table for Attribute and Quantity Discount
    By enzolino in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Apr 2013, 08:46 PM
  2. Quantity Discount Table
    By kraperw in forum General Questions
    Replies: 1
    Last Post: 8 Dec 2011, 08:25 PM
  3. Quantity Discount Table
    By CharInLasVegas in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Nov 2009, 04:49 PM
  4. Quantity Discount Table Display Price.
    By lmax401 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Sep 2008, 01:40 AM
  5. Quantity Discount Table Appearance
    By cevans73 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Jul 2008, 10:04 PM

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