1
Support / Re: Move product availability text from description to under price
« on: October 15, 2015, 12:25:53 AM »
i see, indicating actual in-stock amounts for each *** order item is really a good idea, indeed.
AFAIK, the 'stock' parameter is just a setting which controls whether it should subtract the values from 'quantity' (which is the actual stock) on order placement, so you were right moving on to trying out the 'quantity'. The 'quantity' key shows that funny input box as its formatting comes from another file -- ./storefront/controller/pages/checkout/cart.php :
I guess you could override the formatting by specifying the integer type exactly:
<?php echo (int)$product['quantity'] ?>
But would it show actual values of your product quantity in stock correctly within that context, and for your abantecart version?
I am not sure about it
AFAIK, the 'stock' parameter is just a setting which controls whether it should subtract the values from 'quantity' (which is the actual stock) on order placement, so you were right moving on to trying out the 'quantity'. The 'quantity' key shows that funny input box as its formatting comes from another file -- ./storefront/controller/pages/checkout/cart.php :
Code: [Select]
$products[] = array(
...
'quantity' => $form->getFieldHtml( array( 'type' => 'input'
...
'stock' => $result['stock']
I guess you could override the formatting by specifying the integer type exactly:
<?php echo (int)$product['quantity'] ?>
But would it show actual values of your product quantity in stock correctly within that context, and for your abantecart version?
I am not sure about it
