Closed (won't fix)
Project:
Ubercart
Version:
6.x-2.9
Component:
Stock
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 May 2012 at 09:03 UTC
Updated:
11 May 2012 at 08:11 UTC
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
Comment #1
miteshmapFor the variant sku you can use
if (uc_stock_level($sku) > 0) { print "something";}Comment #2
longwave$product_out_of_stock is presumably provided by some contrib module, Ubercart core doesn't provide this functionality?
Comment #3
longwaveRemoving tags
Comment #4
longwaveNo further info provided, presume this is related to some unspecified contrib module or custom code.