Hi,
i successfully added the stock level to my product_list view. However, I'd also like to show the stock level directly on each products' page. Is there a way to do it?
Thanks,
Stephan
|
UbercartOne cart to rule them all... |
|
| Donate | Affiliates | Sponsors | ||
Stock level on product detail page
Submitted by stephan on Fri, 07/18/2008 - 09:36
Hi, i successfully added the stock level to my product_list view. However, I'd also like to show the stock level directly on each products' page. Is there a way to do it? Thanks,
You can modify your template directly to include this... you have to use the function uc_stock_level() and pass in the SKU I believe for this to work properly... from the template, you could try using $node->model. Anyone have any luck with this one or done similar? I really want to implement this, but not sure where to start. =( There is a pretty cool solution around. You need to put some code into your template. Thanks Snicers, I had lost track of that post. I have tried, it works great, now just to find out which file outputs the sku, add to cart button etc, so i can add it inline. Cheers! It'd be nice if the product description would accept ubercart tokens. This kind of functionality is already provided in How do we do that (or make the template do that) for the product description? (P.S. I'm very new to Drupal/Ubercart.)
|
|
Joined: 10/03/2007