After upgradig to 2.9, $product_out_of_stock is no longer working.

I use to use

<?php if(!$product_out_of_stock){print "something";}) ?> 

but now it only test for stock on the default product and not it's variants SKU's.

Comments

miteshmap’s picture

Issue tags: +Ubercart

For the variant sku you can use

if (uc_stock_level($sku) > 0) { print "something";}

longwave’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

$product_out_of_stock is presumably provided by some contrib module, Ubercart core doesn't provide this functionality?

longwave’s picture

Issue tags: -Ubercart

Removing tags

longwave’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

No further info provided, presume this is related to some unspecified contrib module or custom code.