Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Idea or Suggestion Simple In-Stock Display

    I want to use the mod "Simple In-Stock Display" however I am using Tabbed Products Pro and it hides the stock level in the Detail Tab, which it seems, most of my customers refuse to look at before ordering.

    I understand all the part about finding and replacing the code he gives, however I want to put the code is a different part of the page by the "add to cart" box or the "product price block".

    Here's the rub. I don't know enough about php to get it coded in right. So if I want to add:

    PHP Code:
    case 'PRODUCT_LIST_QUANTITY':
            
    $lc_align 'right';
            if (
    zen_get_products_stock($listing->fields['products_id'])>0) {
            
    $lc_text 'In Stock';  //  any at all
        
    }
            else {
            
    $lc_text 'Out of Stock';  // none at all
        
    }
        break; 
    What php code do I need to add before and after to get it to compute?

    Then I would rather use an image instead of the text, so can I change 'In Stock' with '../images/instock.gif'

    Thanks
    JOhn ><>
    Newest Site: ChargerPros - Stuff4Toys

  2. #2
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Default Re: Simple In-Stock Display

    duh

    I like my customers don't read everything.

    Admins can delete this if they please.

    JOhn ><>
    Newest Site: ChargerPros - Stuff4Toys

  3. #3
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Default Re: Simple In-Stock Display

    Quote Originally Posted by Stuff4Toys View Post
    duh

    I like my customers don't read everything.

    Admins can delete this if they please.

    JOhn ><>
    OK, I actually read and followed the instructions, but cannot get it to display outside the "Details Tab". Anyone have a solution for this?
    Newest Site: ChargerPros - Stuff4Toys

 

 

Similar Threads

  1. v151 How to display products in a simple list?
    By dlvonde in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jul 2013, 07:02 PM
  2. Out of stock vs. In stock (display) question
    By dansicle in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 21 Jul 2009, 01:47 PM
  3. Replies: 9
    Last Post: 23 Nov 2008, 10:19 PM
  4. Stock by Attributes : Display "Stock ID" in order/invoice details?
    By damian7 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Jan 2008, 05:12 PM
  5. Simple Attributes Stock Tracking
    By damonp in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 8 Jul 2006, 03:34 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