开发者

How to show available stock quantity in Ubercart?

开发者 https://www.devze.com 2023-02-02 06:18 出处:网络
I defined a stock quantity for a product in Ubercart. And 开发者_如何学JAVAI want to show the remain quantity in the product node view.

I defined a stock quantity for a product in Ubercart. And 开发者_如何学JAVAI want to show the remain quantity in the product node view.

However, I did not find a quantity field in /admin/store/settings/products/edit/fields ? How can show the remind quantity in the product node view? Thanks!


Investigate $node via dsm($node) (devel) or print_r($node) in node-product.tpl.php.
Also in uc_stock module - uc_stock_level function used for getting level by sku.


Once you go to the stock setting page and sort out your message which will be sent when the threshold is met, you need to go to each product edit node. Near the EDIT / VIEW tabs along the top of the node you should see a STOCK tab in the horizontal tab menu along with ATTRIBUTES, OPTIONS, and ADJUSTMENTS. Click on the STOCK tab and there you can edit total stock, set your threshold, etc ....

Then you can create a product view using Ubercart Views module and choose to show stock.

0

精彩评论

暂无评论...
验证码 换一张
取 消