New Zenner
- Join Date:
- Dec 2008
- Posts:
- 22
- Plugin Contributions:
- 0
New Zenner
Oba-san
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 ...
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!
New Zenner
Oba-san
Can you give me an idea of what the categories_id is for the Products where stock should show? :unsure:
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
Oba-san
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:
<?php echo (([B]$current_category_id == 10 && [/B]$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 ...
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!
New Zenner
New Zenner
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 ```
<!--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?Oba-san
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 ...
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!
New Zenner
Oba-san
Have you a link to this URL that is not displaying correctly?
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
Oba-san
From what I can see your page is not completing ...
Go to the Free Software Add Ons and search for:
Debug Tool
then load that to your site as instructed and see what errors are generated ...
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
New Zenner
line 136 which is ```
<?php echo ((*$current_category_id == 21 && *$flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>originally it was
Oba-san
Fix your errors ... the * does not belong in there:
<?php echo (([B]*[/B]$current_category_id == 21 && [B]*[/B]$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 ...
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!
New Zenner
Oba-san
Spookie ain't it? :eek:
Thanks for the update that this is now working for you ... :smile:
Linda McGrath
If you have to think ... you haven't been zenned ...
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!
Zen Follower
Thanks, Linda. I played around and can't figure out- how can I make the stock show for just two specific categories?
Cheers,
R
Oba-san
If you wanted it to show for Category 10 and 9 you can use:
<?php echo ((($current_category_id == 10 || $current_category_id == 9) && $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 ...
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!
Zen Follower
That's it, thanks!
Tell staff why this post should be reviewed.