- Posts: 20
- Thank you received: 0
How to add stock status to the checkout table?
9 years 11 months ago - 9 years 11 months ago #257509
by progfloyd
How to add stock status to the checkout table? was created by progfloyd
-- HikaShop version -- : 2.6.3
Hello,
How can I add the stock status to the table of the checkout, as it in the table of the wishlist.
How can I change the code fot it?
Thak you.
JS
Hello,
How can I add the stock status to the table of the checkout, as it in the table of the wishlist.
How can I change the code fot it?
Thak you.
JS
Last edit: 9 years 11 months ago by progfloyd.
Please Log in or Create an account to join the conversation.
9 years 11 months ago #257511
by nicolas
Replied by nicolas on topic How to add stock status to the checkout table?
Hi,
You would have to edit the file "cart" of the view "checkout".
The stock of the product should be available in :
<?php echo $row->product_quantity; ?>
You could add it before:
in order to have it after the name of the product in there.
Note that there is no point in having a "stock status" like in the wishlist since you can't have a product without stock in a cart. The product would be removed from the cart automatically were that the case. So if you added a stock status to the products in the cart display of the checkout, it would always say that there is enough stock and thus you could simply write it directly in the view without any PHP needed.
You would have to edit the file "cart" of the view "checkout".
The stock of the product should be available in :
<?php echo $row->product_quantity; ?>
You could add it before:
Code:
</td>
<td data-title="<?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?>" class="hikashop_cart_product_price_value">
Note that there is no point in having a "stock status" like in the wishlist since you can't have a product without stock in a cart. The product would be removed from the cart automatically were that the case. So if you added a stock status to the products in the cart display of the checkout, it would always say that there is enough stock and thus you could simply write it directly in the view without any PHP needed.
Please Log in or Create an account to join the conversation.
9 years 11 months ago #257627
by progfloyd
Replied by progfloyd on topic How to add stock status to the checkout table?
Hello,
Thanks for your instruction. I will try it.
Thanks for your instruction. I will try it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.065 seconds