Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    347
    Plugin Contributions
    0

    Default How do I add 'Units available' to the qty number on the products listing page?

    Hi, I have looked around the forum for this with no luck.

    On this page http://dreamevent.com.au/fiona/index...=index&cPath=1 you'll see a list of products displaying img, name, price, add, and how much is in stock. However, the available qty is just a number, for all a buyer knows, it could mean a size.

    I'd like to add text in front of the number to suggest that it refers to how many are in stock.

    Where would I do this? Thank you.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How do I add 'Units available' to the qty number on the products listing page?

    The stock Zencart product info page looks like this

    Model: 01234
    Shipping Weight: 8lbs
    0 Units in Stock


    so I'd guess you've modified that template to move stuff around, and in the process, removed the 'units in stock' text.

    You'll have to go back and figure out where it went, either in that template file or the file where that text is defined.

  3. #3
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    347
    Plugin Contributions
    0

    Default Re: How do I add 'Units available' to the qty number on the products listing page?

    Thank you for your reply Stevesh, however I have not made any changes to it. If you go to the link in my 1st post you'll see it has
    PRODUCT IMG
    PRODUCT NAME
    PRICE
    ADD TO CART
    ANAILABLE QUANTITY.

    The available qty is just a number. What you're talking about shows up in the porduct info info page http://dreamevent.com.au/fiona/index...e5b6c6ef56f463 which I haven't changed.

    I don't want to chnage stuff in there, just in the previous page where all products in a category are listed as per my original post.

    Thnak you.

  4. #4
    Join Date
    May 2007
    Location
    Perth, Australia
    Posts
    54
    Plugin Contributions
    0

    Default Re: How do I add 'Units available' to the qty number on the products listing page?

    Hi,

    If you figured out how to add text like "In stock:" or "Available:" in front of the quantity number in the category listing, could you please share this?

    Many thanks,
    Alex

    Quote Originally Posted by vivaraquel View Post
    Hi, I have looked around the forum for this with no luck.

    On this page http://dreamevent.com.au/fiona/index...=index&cPath=1 you'll see a list of products displaying img, name, price, add, and how much is in stock. However, the available qty is just a number, for all a buyer knows, it could mean a size.

    I'd like to add text in front of the number to suggest that it refers to how many are in stock.

    Where would I do this? Thank you.
    Learning the hard way -
    Matryoshka Dolls

  5. #5
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    347
    Plugin Contributions
    0

    Default Re: How do I add 'Units available' to the qty number on the products listing page?

    No, I'm sorry, I still haven't worked it out but I really would like to thought as I feel it looks stupid just a number sitting there on its own. If anyone knows, please let us know. Thank you.

  6. #6
    Join Date
    May 2007
    Location
    Perth, Australia
    Posts
    54
    Plugin Contributions
    0

    Default Re: How do I add 'Units available' to the qty number on the products listing page?

    Check this: http://www.zen-cart.com/forum/showthread.php?t=59968 - you might like it!
    Learning the hard way -
    Matryoshka Dolls

  7. #7
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    347
    Plugin Contributions
    0

    Default Re: How do I add 'Units available' to the qty number on the products listing page?

    Thanks AlexT.

    I tried that, it did absolutely nothing for me. My code looks like this:
    case 'PRODUCT_LIST_QUANTITY':
    $lc_text = TABLE_HEADING_QUANTITY;
    $lc_align = 'right';
    $zc_col_count_description++;
    $lc_temp = $listing->fields['products_quantity'];
    $lc_text="${lc_temp} Units in Stock.";
    break;

    The $zc_col_count_description++; was already there. I removed it but it still did nothing.

    Thanks for taking the time to reply.

  8. #8
    Join Date
    May 2007
    Location
    Perth, Australia
    Posts
    54
    Plugin Contributions
    0

    Default Re: How do I add 'Units available' to the qty number on the products listing page?

    You are in a wrong place of the file, try to find the second instance of PRODUCT_LIST_QUANTITY further down.

    Find
    Code:
    case 'PRODUCT_LIST_QUANTITY':
              $lc_align = 'right';
              $lc_text = $listing->fields['products_quantity'];
              break;
    Replace with
    Code:
    case 'PRODUCT_LIST_QUANTITY':
      $lc_align = 'right';
      $lc_text = 'In Stock: ' . $listing->fields['products_quantity'] . '';
      break;
    Learning the hard way -
    Matryoshka Dolls

  9. #9
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    347
    Plugin Contributions
    0

    Default Re: How do I add 'Units available' to the qty number on the products listing page?

    YAY, thank you, that did it. I should have re read the post better and notice the quote of 'in the second instance'. It's been a long day.

    Thank you again.

 

 

Similar Threads

  1. v151 How do I add the phone number to the contact us page? Thank you.
    By MagicMan in forum General Questions
    Replies: 3
    Last Post: 21 Jan 2016, 10:47 PM
  2. How do I remove Qty 'units in stock' from the product details?
    By newb1234 in forum Basic Configuration
    Replies: 1
    Last Post: 18 Sep 2009, 10:35 PM
  3. how to add the add-to-cart-button to the new products box on the home page?
    By ebloger in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Nov 2008, 10:30 AM
  4. Replies: 0
    Last Post: 14 Apr 2008, 08:54 PM
  5. How to add the discount qty box to ALL products???
    By PeterBKK in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 10
    Last Post: 16 Jul 2006, 02:50 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