Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40
  1. #11
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Show one left in stock message?

    /includes/languages/english/mostlygrey/product_info.php

    and the contents of product_info.php

    are as follows:

    <?php

    define('TEXT_ONE_LEFT', 'Are you feeling lucky, only 1 available!');
    define('TEXT_TWO_LEFT', 'Don\'t miss out, only 2 left.');
    define('TEXT_THREE_LEFT', 'Hurry, while supplies last!');

    ?>

  2. #12
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Show one left in stock message?

    Correct, but still nothing...

  3. #13
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Show one left in stock message?

    If using above code, are you viewing a product with a quantity of 3 or less?

    if not using above code, can you paste the code from your product_info file?

  4. #14
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Show one left in stock message?

    Yes, I am using the above code and viewing products with less than 3

  5. #15
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Show one left in stock message?

    frank18 made a suggestion in post #6, you could try that.

    I also use 1.3.9h with a highly customized template, so I do not know how to further troubleshoot with actually seeing.

    Maybe someone else my have an idea

    Something like this:

    includes/languages/english/extra_definitions/YOUR_TEMPLATE/one_left_defines.php

  6. #16
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Show one left in stock message?

    I was going to try that but what do I put in the includes/languages/english/extra_definitions/YOUR_TEMPLATE/one_left_defines.php ?

    This?

    <?php

    define('TEXT_ONE_LEFT', 'Are you feeling lucky, only 1 available!');
    define('TEXT_TWO_LEFT', 'Don\'t miss out, only 2 left.');
    define('TEXT_THREE_LEFT', 'Hurry, while supplies last!');

    ?>

  7. #17
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Show one left in stock message?

    yepper - let me know if that worked

  8. #18
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Show one left in stock message?

    Unfortunately no go on that one either, and it caused me to get a blank page when ever I tried to add something to the cart...strange!

  9. #19
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Show one left in stock message?

    Yup, still cannot get this to work for me...Anyone have any idea?

  10. #20
    Join Date
    Jun 2009
    Posts
    275
    Plugin Contributions
    0

    Default Re: Show one left in stock message?

    Hello,

    I am trying to alter this a little and am having some trouble. All I want to do is eliminate the "define('TEXT_THREE_LEFT', 'Hurry, while supplies last!');" part of this. I tried various things like deleting define('TEXT_THREE_LEFT', 'Hurry, while supplies last!'); and
    "if ($products_quantity == 3) {
    echo '<li>' . TEXT_THREE_LEFT . '</li>';
    } else { (from tpl_product_info_display.php)

    but every change I make produces a blank page. Any ideas? Thank you!

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v151 how to show one product if its different colors's size are out of stock?
    By kidultlearner in forum General Questions
    Replies: 6
    Last Post: 13 Aug 2016, 01:46 PM
  2. Stock by Attribute - Out of Stock Error Message
    By genxian in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 May 2011, 06:37 PM
  3. Want items to show out of stock after 5 items left
    By rickiesdiscount in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 21 Oct 2008, 02:54 AM
  4. Stock by attributes show stock levels placement error
    By fradesigns in forum General Questions
    Replies: 0
    Last Post: 17 Oct 2007, 01:14 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR