Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 33
  1. #21
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: traffic light stock level indicator

    Quote Originally Posted by dscott1966 View Post
    Thanks that worked for me. THats twice you have helped me Linda i owe you.
    Really?

    How much?

    Glad that this solution worked for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #22
    Join Date
    Apr 2005
    Posts
    298
    Plugin Contributions
    0

    Default Re: traffic light stock level indicator

    Quote Originally Posted by Ajeh View Post
    Really?

    How much?

    Glad that this solution worked for you ...
    You just let me know?
    [FONT=Comic Sans MS]Don Scott
    http://dealz-r-us.com
    [/FONT]

  3. #23
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: traffic light stock level indicator

    $5, $10, $50 ... $500 ...

    The Free Forums are, just that, Free ...

    We do, however, always extend the offer to our users to consider the 1 time or Monthly Donations to help support both the software and the Free Forums ...

    The more everyone supports us, the more we can support each and every one of you in keeping your Online Shops running and your incomes growing and growing and growing ... with the current release as well as future releases ...

    Good luck with your shop!
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #24
    Join Date
    Jun 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: traffic light stock level indicator

    Hi what i want to do is add a 4th state as there are thing that i sell that i dont stock and order on demand. so what i was thinking is that if i have.
    >1 is good(Green)
    =1 is Low stock (yellow)
    =0 is Out of stock (Red)
    <0 is Pre order (Blue) or =-1 is Pre order

    but if I try to put = in the code the page won't work i must be missing something but I don't know what.
    can anyone help with this?

  5. #25
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: traffic light stock level indicator

    Either you have a code issue or you have space(s) or blank line(s) at the bottom of the file after the closing php bracket ?> and that will cause errors ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #26
    Join Date
    Jun 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: traffic light stock level indicator

    this is the code when i edited it but it don't seem to work aye clues?
    PHP Code:
    <?php 
    if (zen_get_products_stock((int)$_GET['products_id']) >1) { 
    $zc_stock_level_image '' "In Stock " zen_image(DIR_WS_TEMPLATE_ICONS 'icon_status_green.gif'''15080) . ''


    elseif (
    zen_get_products_stock((int)$_GET['products_id']) =0) { 
    $zc_stock_level_image '' "out of Stock " zen_image(DIR_WS_TEMPLATE_ICONS 'icon_status_red.gif'''1010) . ''


    elseif (
    zen_get_products_stock((int)$_GET['products_id']) =-1) { 
    $zc_stock_level_image '' "Pre order " zen_image(DIR_WS_TEMPLATE_ICONS 'icon_status_blue.gif'''1010) . ''


    elseif (
    zen_get_products_stock((int)$_GET['products_id']) =1) { 
    $zc_stock_level_image '' "Low Stock " zen_image(DIR_WS_TEMPLATE_ICONS 'icon_status_yellow.gif'''1010) . ''

    echo 
    'Stock level is ' $zc_stock_level_image
    ?>

  7. #27
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: traffic light stock level indicator

    You are using:
    Code:
    if (something = somethingelse) {
    More or less that is setting something to be the value of somethingelse

    Try using == instead of = and see if that doesn't fix things for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #28
    Join Date
    Jun 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: traffic light stock level indicator

    thats cracked it Thanks alot

  9. #29
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: traffic light stock level indicator

    You are most welcome ... Thanks for the update that this worked and glad that this helped get you back on track ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #30
    Join Date
    Nov 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: traffic light stock level indicator

    The code works great! How can I show the dot without the number in stock. Just the image. I must be a little slow but I can't figure it out.

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Traffic Light Units in Stock indicator
    By Digiblood in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Jul 2011, 09:25 AM
  2. Stock Level Indicator installation
    By orien in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Aug 2010, 11:14 AM
  3. Stock level indicator, for stock by attributes controller
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Nov 2008, 09:49 AM
  4. product page stock level indicator
    By dscott1966 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Oct 2008, 04:28 AM

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