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!');
?>
Re: Show one left in stock message?
Correct, but still nothing...
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?
Re: Show one left in stock message?
Yes, I am using the above code and viewing products with less than 3
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
Quote:
Something like this:
includes/languages/english/extra_definitions/YOUR_TEMPLATE/one_left_defines.php
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!');
?>
Re: Show one left in stock message?
yepper - let me know if that worked
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! :blink:
Re: Show one left in stock message?
Yup, still cannot get this to work for me...Anyone have any idea?
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!