Page 4 of 4 FirstFirst ... 234
Results 31 to 33 of 33
  1. #31
    Join Date
    Dec 2008
    Location
    Netherlands
    Posts
    1
    Plugin Contributions
    0

    Default Re: traffic light stock level indicator

    Hi there,

    I stumbled across this topic while looking for a script to show images instead of numbers for stock.

    But I don't have to much experience with php so I hoped someone could help me with it. I only want to show this on th eproduct page itself, not on any lists.

    This is what is use (form this topic):

    PHP Code:
    case 'PRODUCT_LIST_QUANTITY':
            
    $lc_align 'right';
            
    $lc_text $listing->fields['products_quantity'];
    if (
    zen_get_products_stock((int)$listing->fields['products_id']) >1) {
    $zc_stock_level_image '' $products_quantity zen_image(DIR_WS_TEMPLATE_ICONS 'levertijd-groen.jpg'''1010) . '';
    }

    elseif (
    zen_get_products_stock((int)$listing->fields['products_id']) =1) {
    $zc_stock_level_image '' $products_quantity zen_image(DIR_WS_TEMPLATE_ICONS 'levertijd-oranje.jpg'''1010) . '';
    }

    else {
    $zc_stock_level_image '' $products_quantity zen_image(DIR_WS_TEMPLATE_ICONS 'levertijd-rood.jpg'''1010) . '';
    }
    $lc_text .= $zc_stock_level_image
    I thinks this (DIR_WS_TEMPLATE_ICONS) is where I point to the directory were the images are located?

    They are in http://www.mystore.com/levertijdpics, how do I put this in?

    TYA

  2. #32
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: traffic light stock level indicator

    You would copy your images to /includes/templates/your_template/images/icons/. That is where the code looks.

  3. #33
    Join Date
    Dec 2008
    Posts
    38
    Plugin Contributions
    0

    Default Re: traffic light stock level indicator

    Hi,
    Does anyone how to put the traffic light images under the product images?
    I only seem to get them on either the side or the right side of the product image.

    Kind regards
    Endre

 

 
Page 4 of 4 FirstFirst ... 234

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