Forums / Templates, Stylesheets, Page Layout / adding product minimum quantity to product info page

adding product minimum quantity to product info page

Locked

Views: 825

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
24 Aug 2010, 4:02 PM
#1
crittle1 avatar

crittle1

New Zenner

Join Date:
Jul 2010
Posts:
26
Plugin Contributions:
0

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.)

 . '<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 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"; ?>

Thanks in advance.
I'll keep working at it, maybe I'll figure it out.

25 Aug 2010, 7:03 AM
#2
amandagero avatar

amandagero

Zen Follower

Join Date:
Feb 2009
Posts:
188
Plugin Contributions:
0

Re: adding product minimum quantity to product info page

<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>
25 Aug 2010, 7:20 AM
#3
crittle1 avatar

crittle1

New Zenner

Join Date:
Jul 2010
Posts:
26
Plugin Contributions:
0

Re: adding product minimum quantity to product info page

Worked like a charm. :bigups:

Many thanks dear.

26 Aug 2010, 12:17 AM
#4
amandagero avatar

amandagero

Zen Follower

Join Date:
Feb 2009
Posts:
188
Plugin Contributions:
0

Re: adding product minimum quantity to product info page

awesome!