Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11
    Join Date
    Feb 2010
    Location
    New York
    Posts
    1,601
    Plugin Contributions
    14

    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
    239
    Plugin Contributions
    0

    Default Re: Show one left in stock message?

    Correct, but still nothing...

  3. #13
    Join Date
    Feb 2010
    Location
    New York
    Posts
    1,601
    Plugin Contributions
    14

    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
    239
    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
    New York
    Posts
    1,601
    Plugin Contributions
    14

    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
    239
    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
    New York
    Posts
    1,601
    Plugin Contributions
    14

    Default Re: Show one left in stock message?

    yepper - let me know if that worked

  8. #18
    Join Date
    Jun 2009
    Posts
    239
    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
    239
    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
    239
    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. 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
  2. Stock By Attributes - Stock to Show on Listing
    By anshii in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 23 Dec 2009, 11:50 AM
  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. Changing the show/hide stock to in/out of stock
    By ScrapbookSupplies in forum General Questions
    Replies: 2
    Last Post: 28 Jul 2008, 03:52 PM
  5. 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
  •