Version 5.0.14

This commit is contained in:
Neo committed 2025-12-19 19:17:57 -08:00
1 parent 5efe744c5f
commit dbd774b30c
364 files changed
+7048 -1377

No files matched your search

@@ -895,7 +895,15 @@ class checkout extends Controller
if( $item instanceof \IPS\nexus\extensions\nexus\Item\Package )
{
$package = Package::load( $item->id );
$data = $package->optionValuesStockAndPrice( $package->optionValues( $item->details ) );
try
{
$data = $package->optionValuesStockAndPrice( $package->optionValues( $item->details ) );
}
catch( UnderflowException )
{
/* If we hit this exception, then the user has selected an invalid product option. Treat it as no longer in stock. */
Output::i()->error( Member::loggedIn()->language()->addToStack( 'not_enough_in_stock_checkout', FALSE, array( 'pluralize' => array( 0 ), 'sprintf' => array( $item->name ) ) ), '1X196/I', 403, '' );
}
if ( $data['stock'] != -1 and $data['stock'] < $item->quantity )
{