If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Show Ships From Manufacturer, vs Not In Stock?

Show Ships From Manufacturer, vs Not In Stock?

Started by jimmie on 20 Oct 2025, 6:58 PM · Views: 657

Results 1 to 4 of 4
20 Oct 2025, 6:58 PM
#1
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Show Ships From Manufacturer, vs Not In Stock?

zen 210 and php8.3
i would like to modify this code

<?php  if ($flagAnyOutOfStock) { ?>
    <?php if (STOCK_ALLOW_CHECKOUT == 'true') {  ?>
      <div class="messageStackError alert alert-danger"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></div>
    <?php } else { ?>
      <div class="messageStackError alert alert-danger"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></div>
    <?php } //endif STOCK_ALLOW_CHECKOUT ?>
  <?php  } //endif flagAnyOutOfStock ?>

i would like 3 options to show when a product is in stock, not in stock and when there is stock and not in stock in the cart and to say this

  1. stock would say ships from Our warehouse
  2. Non stock would say SHIPS DIRECT FROM MANUFACTURER - Usually ships within 3-5 business days
  3. stock and non stock in the cart would say (havent figured out the saying yet on that one yet.
    right now it only shows when not in stock i want it to show for in stock as well
21 Oct 2025, 9:21 AM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Show Ships From Manufacturer, vs Not In Stock?

install POSM and you can have multiple out of stock messages.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

23 Oct 2025, 12:26 PM
#3
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: Show Ships From Manufacturer, vs Not In Stock?

i thought i can only use that for products with attributes, and not a stand alone product?

23 Oct 2025, 12:56 PM
#4
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Show Ships From Manufacturer, vs Not In Stock?

There are hooks in it to enable it to be expanded to include simple products.

https://github.com/zencart/zencart/issues/7229

I hacked into it long ago and have not gotten around to reworking my modifications.

In my opinion the stock messages should be a core feature.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...