How to add stock status to the checkout table?

  • Posts: 20
  • Thank you received: 0
  • Hikashop Business
7 years 11 months ago #257509

-- 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

Last edit: 7 years 11 months ago by progfloyd.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
7 years 11 months ago #257511

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:

</td>
							<td data-title="<?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?>" class="hikashop_cart_product_price_value">
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.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
  • Hikashop Business
7 years 11 months ago #257627

Hello,

Thanks for your instruction. I will try it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum