Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2011
    Posts
    6
    Plugin Contributions
    0

    help question Restyling the Product_info.php Quantity Box

    Hi all,

    I'm currently using Zen Cart v1.3.9h on my local machine.

    I found that when I set a minimum, maximum, and product quantity, it'll display under the product info page.

    Link to Screenshot

    Looking around the tpl_product_info_display.php page, it looks like it's caused by the zen_get_products_quantity_min_units_display((int)$_GET['products_id']).

    I don't want to get rid of the "quantity box" that displays all of this. I just want to get it to display differently, in a list format instead of displaying "side by side" as it is right now.

    Any help on how I can go about doing this, is much appreciated. As it is, thank you for taking the time to read this post.

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Restyling the Product_info.php Quantity Box

    you might need to look into included>>functions>>functions.php

    and look for "zen_get_products_quantity_min_units_display" function.

    change this
    "if ($check_units != 1) {
    $the_min_units .= ($the_min_units ? ' ' : '' ) . PRODUCTS_QUANTITY_UNIT_TEXT_LISTING . ' ' . $check_units;
    }"

    to this
    if ($check_units != 1) {
    $the_min_units .= ($the_min_units ? ' ' : '' ) . PRODUCTS_QUANTITY_UNIT_TEXT_LISTING . '<br/>' . $check_units;
    }

    Explanation: this function is adding space between min qty and product qty by changing &nbsp to <br/> it will create a new line for product qty

    I Hope that's what you are trying to achieve.

  3. #3
    Join Date
    Jul 2011
    Posts
    6
    Plugin Contributions
    0

    Default Re: Restyling the Product_info.php Quantity Box

    Quote Originally Posted by gaurav10feb View Post
    you might need to look into included>>functions>>functions.php

    and look for "zen_get_products_quantity_min_units_display" function.

    change this
    "if ($check_units != 1) {
    $the_min_units .= ($the_min_units ? ' ' : '' ) . PRODUCTS_QUANTITY_UNIT_TEXT_LISTING . '&nbsp;' . $check_units;
    }"

    to this
    if ($check_units != 1) {
    $the_min_units .= ($the_min_units ? ' ' : '' ) . PRODUCTS_QUANTITY_UNIT_TEXT_LISTING . '<br/>' . $check_units;
    }

    Explanation: this function is adding space between min qty and product qty by changing &nbsp to <br/> it will create a new line for product qty

    I Hope that's what you are trying to achieve.
    Thank you very much, gaurav10feb!! This is exactly what I'm looking for.

  4. #4
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Restyling the Product_info.php Quantity Box

    No problem. Always happy to be helpful

    Gary

 

 

Similar Threads

  1. Replies: 1
    Last Post: 5 Aug 2015, 01:11 PM
  2. Replies: 3
    Last Post: 29 Sep 2008, 02:08 PM
  3. Restyling the table in the shopping cart page
    By JackA in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 7 May 2008, 12:58 AM
  4. Can't change the quantity in quantity box
    By stumped in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Dec 2006, 06:47 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