Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Posts
    134
    Plugin Contributions
    0

    help question Display text or image “IN STOCK” on product pages up the top?

    Hi Zenners,

    Customers are continually calling and emailing just to confirm products are in stock so I want to make it clearer on each product page by displaying BOLD text "IN STOCK" or an image saying “IN STOCK” for the products, if they can see it on the product page great, if they can see this on the search result or product listing pages before they even click the product that is even better.

    I already know how to turn on the display the qty of units in stock but that is not what I want, also it needs be much bigger, clearer and bolder than that. I already have items out of stock had the big red ‘sold out’ image and does not let customers check out, but for the customers where qty > 0 and there is stock I want to display this big text IN STOCK

    Would appreciate some help ASAP how to insert this!

    Cheers,
    Dave

  2. #2
    Join Date
    May 2006
    Posts
    134
    Plugin Contributions
    0

    help question Re: Display text or image “IN STOCK” on product pages up the top?

    Hi Zenners!

    Please can someone reply and help?? we really need to do this

    I see other sites have nice green images or bold text "IN STOCK" and I want to be able to add the same ... anyone??!

    p.s. sorry for this other post, i thought the first timed out and I didn't realise both posted:

    I keep getting customers calling and emailing to confirm items are in stock, if items are not in stock I have the big red "SOLD OUT" graphic and it won't let them add to cart.

    For all the rest of the products that are in stock, I would like up the top somewhere to display the text in bold "IN STOCK" or even an "IN STOCK" graphic ... how do I insert this on all the product pages?

    I have worked out how to display "100 units in stock" etc but this is way too small for customers to notice and I would rather it say in bold or in a graphic "IN STOCK"

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Display text or image “IN STOCK” on product pages up the top?

    Apply CSS to the "100 units in stock" .... if you are displaying ONLY the stock (and not the model number etc) then add this to your stylesheet...

    Code:
    #productDetailsList{
         color: green; 
         font-size:1.3em;
         font-weight:bold; 
         }
    Otherwise, you may have to add the css inline wherever "units in stock" is defined in the language files.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  4. #4
    Join Date
    May 2006
    Posts
    134
    Plugin Contributions
    0

    help question Re: Display text or image “IN STOCK” on product pages up the top?

    thanks ryk,

    I see what you are saying that is a clever idea, although where exactly do i insert this:

    #productDetailsList{
    color: green;
    font-size:1.3em;
    font-weight:bold;
    }

    however on my site it says:

    Model: XXXXX
    XXX Units in Stock
    Manufactured by: XXXXX

    And I don't want all of that bold green

    Also I really don't want to say "100 units in stock" but rather just "IN STOCK NOW" and I want it BIG and BOLD much bigger than that text, preferably just a big green picture, no matter what I say customers keep ringing and ringing to confirm and it is really wasting money for us, I want a nice big picture IN STOCK NOW like other sites have, can anyone help pls??

  5. #5
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Display text or image “IN STOCK” on product pages up the top?

    Quote Originally Posted by apemusic View Post
    although where exactly do i insert this:

    #productDetailsList{
    color: green;
    font-size:1.3em;
    font-weight:bold;
    }
    err - exactly where I said.... in your stylesheet.

    however on my site it says:

    Model: XXXXX
    XXX Units in Stock
    Manufactured by: XXXXX

    And I don't want all of that bold green
    Also like I said, this solution was for if you were ONLY displaying the In stock message

    Also I really don't want to say "100 units in stock" but rather just "IN STOCK NOW" and I want it BIG and BOLD much bigger than that text, preferably just a big green picture, no matter what I say customers keep ringing and ringing to confirm and it is really wasting money for us, I want a nice big picture IN STOCK NOW like other sites have, can anyone help pls??
    Ok, so what you need to do is actually edit the code itself to replace the standard stock message with what you want. I don't suppose it's too difficult for a php expert, but it will take their time. Perhaps a post to the commercial Help wanted section may find someone who'll do it for a fair price.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  6. #6
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Display text or image “IN STOCK” on product pages up the top?

    Just come across this which may help ... not exactly what you're looking for, but may reduce the phone calls enough to save you the money to pay for exactly what you want!
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  7. #7
    Join Date
    May 2006
    Posts
    134
    Plugin Contributions
    0

    Default Re: Display text or image “IN STOCK” on product pages up the top?

    Thanks ryk,

    That module looks great but simply does not work
    http://www.zen-cart.com/index.php?ma...roducts_id=633

    I inserted the code and changed the code to images that work on my site but NOTHING APPEARS anywhere?

    I inserted the code into includes/modules/product_listing.php and changed the references to my site and nothing shows up?

    also I really just needed a simple version either GREEN if there is stock >=1 and RED if out of stock like this, even this simple code does not work

    anyone??

    case 'PRODUCT_LIST_QUANTITY':
    $lc_align = 'right';

    if (zen_get_products_stock($listing->fields['products_id'])>=1) {
    $lc_text = '<img src="images/stock_icons/disponible.gif" alt="IN STOCK NOW" /></a>'; // 1 or more

    }

    elseif (zen_get_products_stock($listing->fields['products_id'])=0 {
    $lc_text = '<img src="images/stock_icons/desconocido.gif" alt="OUT OF STOCK" /></a>'; // 0

    }

    break;

 

 

Similar Threads

  1. Replies: 1
    Last Post: 20 Feb 2013, 08:00 PM
  2. Text/image display question on attributes in the product info AND checkout pages
    By jeffmic in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 May 2010, 10:44 PM
  3. How to I do product pages W/OUT the image and price on the top of the page?
    By triswim in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Mar 2008, 07:46 AM
  4. Display "Out of Stock" by the product on index pages
    By sc0rpiongirl in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 4 Sep 2007, 05:13 AM
  5. How do I display the text IN STOCK on all product pages?
    By apemusic in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Jun 2007, 01:56 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR