Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1

    Default Show "in Stock" on 1 category

    i'm planning on selling some limited editions, so is there a way that if my product is linked to a "Limited Editions" category the "in stock" shows up? i dont want it on any other products
    thanks

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

    Default Re: Show "in Stock" on 1 category

    You can always customize the code to only show the stock quantity for certain categories ...

    Just surround that part of a code with an IF for testing the category that you are in and whether or not it should show ...

    Be sure to use your templates and overrides directory for your changed files ...
    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!

  3. #3

    Default Re: Show "in Stock" on 1 category

    thanks.
    bearing in mind php is REALLY not my strong suit...what would the code be? :)

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

    Default Re: Show "in Stock" on 1 category

    Can you give me an idea of what the categories_id is for the Products where stock should show?
    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!

  5. #5

    Default Re: Show "in Stock" on 1 category

    Limited Editions :)

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

    Default Re: Show "in Stock" on 1 category

    Let's pretend that the categories_id that you want to show is 10 ...

    Change the code in your templates and overrides file to read:
    Code:
      <?php echo (($current_category_id == 10 && $flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
    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!

  7. #7

    Default Re: Show "in Stock" on 1 category

    Quote Originally Posted by Ajeh View Post
    Let's pretend that the categories_id that you want to show is 10 ...
    sorry..misunderstood :)

    thanks muchly for the code

  8. #8

    Default Re: Show "in Stock" on 1 category

    ok...i *thought* i'd got everything in the right places.... i've put it in tpl_document_general_info_display.php, tpl_document_product_info_display.php, tpl_product_free_shipping_info_display.php, tpl_product_info_display.php, tpl_product_music_info_display.php under
    Code:
    <!--bof Product details list  -->
    <?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
    <ul id="productDetailsList" class="floatingBox back">
    but when i click on the links to view the products. there's no product info. what am i missing?

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

    Default Re: Show "in Stock" on 1 category

    If you mean you are getting blank pages, then you most likely have space(s) or blank line(s) after the closing php bracket ?> which will produce this problem ...
    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. #10

    Default Re: Show "in Stock" on 1 category

    no.. the page loads fine..but the bit that should show all the product price/img/details etc isnt there...its just the background picture

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Show "in stock" instead of showing units in stock
    By gustafr in forum Templates, Stylesheets, Page Layout
    Replies: 69
    Last Post: 7 Aug 2015, 04:26 AM
  2. Quantity Discount box and "add to cart" button does not show up in "Category" view
    By petro in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Nov 2013, 09:48 PM
  3. Can the "Products Low Stock" Report show only active stock?
    By mahlerosa in forum General Questions
    Replies: 0
    Last Post: 16 Jan 2012, 12:34 AM
  4. Replies: 20
    Last Post: 26 Oct 2011, 12:21 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