Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2010
    Posts
    26
    Plugin Contributions
    0

    help question adding product minimum quantity to product info page

    Although I have researched, I am trying to add the product minimum quantity information to the products info page. This should be a simple fix. I do NOT have the shopping cart turned on and will not be using that feature until later.

    The min. quantity shows in the products listing page. I found the code, but it's in an "if else" php statement. I don't know how to rewrite it to fit in the products info page. Any suggestions?

    ( I know I can add it in manually, but I really don't want to do that to 800 products :/ )

    -------------------------------------------
    tpl_modules_products_all_listing.php
    (this is only a snippit from the long code, but you get an idea of what I'm referencing here.)

    PHP Code:
     '<br />' zen_get_products_quantity_min_units_display($products_all->fields['products_id']) . 
    tpl_product_info_display.php
    (I want to place it in this area along with the rest )
    PHP Code:
    <?php echo (($flag_show_product_info_model == and $products_model !='') ? '<li>' TEXT_PRODUCT_MODEL $products_model '</li>' '') . "\n"?>
        <?php echo (($flag_show_product_info_weight == and $products_weight !=0) ? '<li>' TEXT_PRODUCT_WEIGHT .  $products_weight TEXT_PRODUCT_WEIGHT_UNIT '</li>'  '') . "\n"?>
        <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' $products_quantity TEXT_PRODUCT_QUANTITY '</li>'  '') . "\n"?>
        <?php echo (($flag_show_product_info_manufacturer == and !empty($manufacturers_name)) ? '<li>' TEXT_PRODUCT_MANUFACTURER $manufacturers_name '</li>' '') . "\n"?>
    Thanks in advance.
    I'll keep working at it, maybe I'll figure it out.

  2. #2
    Join Date
    Feb 2009
    Posts
    186
    Plugin Contributions
    1

    Default Re: adding product minimum quantity to product info page

    Code:
    <ul id="productDetailsList" class="floatingBox back">
      <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
      <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
      <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
      <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
      <li><?php echo zen_get_products_quantity_min_units_display((int)$_GET['products_id']) ;?></li>
      </ul>

  3. #3
    Join Date
    Jul 2010
    Posts
    26
    Plugin Contributions
    0

    Default Re: adding product minimum quantity to product info page

    Worked like a charm.

    Many thanks dear.

  4. #4
    Join Date
    Feb 2009
    Posts
    186
    Plugin Contributions
    1

    Default Re: adding product minimum quantity to product info page

    awesome!

 

 

Similar Threads

  1. Replies: 16
    Last Post: 13 Jan 2013, 06:10 PM
  2. Quantity box on product info page
    By dddmx3 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 May 2011, 01:36 AM
  3. Footer disappears when adding product on product info page.
    By GodfatherAntiques in forum General Questions
    Replies: 0
    Last Post: 12 Mar 2011, 08:01 PM
  4. Adding a new Product Type Info Page Layout options :: Product - General
    By bn17311 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Aug 2010, 06:42 PM
  5. Adding additional Product Details to the Product Info Page??
    By Adrian88 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Jan 2009, 09:38 AM

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