Zen Cart Logo
Forums / General Questions / Usually ships in

Usually ships in

Locked

Views: 870

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 May 2007, 5:18 PM
#1
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Usually ships in

Not sure if it is built in or a mod.

I would like the Quanity available field to display "Ships in 1 Day" if qty in stock is 1 or >0 and "Ships in 2 - 4 Days" of qty in stock = 0

Any Ideas?
JOhn ><>

8 May 2007, 7:38 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Usually ships in

This is coded in /includes/templates/your_template/templates/tpl_product_info_display.php, in this area:

<!--bof Product details list  -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model !=”) or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" >
  <?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 and $products_quantity >0) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_quantity == 1 and $products_quantity <=0) ? '<li>' . TEXT_PRODUCT_O_O_S . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<!--<br class="clearBoth" />-->
<br />
<?php
  }
?>
<!--eof Product details list -->

You can delete the
. $products_quantity
and edit the constants TEXT_PRODUCT_QUANTITY and TEXT_PRODUCT_O_O_S in /includes/languages/english/your_template/product_info.php. Note that the OOS is a custom constant not present in the stock install.

define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');//change to 'Ships in 1 Day'
define('TEXT_PRODUCT_MODEL', 'Model: ');
define('TEXT_PRODUCT_O_O_S', 'Made to Order');//add this define and change to 'Ships in 2 - 4 Days'

8 May 2007, 7:45 PM
#3
stuff4toys avatar

stuff4toys

Totally Zenned

Join Date:
May 2007
Location:
SW Florida
Posts:
1,062
Plugin Contributions:
1

Re: Usually ships in

Cool, that will help, all I have to do is remember the mods so I can change as Zen upgrades.

8 May 2007, 7:48 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Usually ships in

When you use the template override structure as I indicated, your mods will automatically be preserved. All you will have to do is check whether the files you have in your template folders are mentioned in the changelog for the new version, and compare any that are to merge your changes.