[Skip to main content](#vessel-content)

#   How to add stock status to the checkout table?

##

- **[progfloyd](/forum/user/42261-progfloyd "View progfloyd's Profile")**
- [![progfloyd's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42261-progfloyd "View progfloyd's Profile") Topic Author
- [ Offline](/forum/user/42261-progfloyd)

Less More

- Posts: 20
- Thank you received: 0
-
-

9 years 11 months ago -  9 years 11 months ago [\#257509](#257509) by [progfloyd](/forum/user/42261-progfloyd "View progfloyd's Profile")  *[How to add stock status to the checkout table?](/forum/27-checkout/887903-how-to-add-stock-status-to-the-checkout-table#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")* was created by *[progfloyd](/forum/user/42261-progfloyd "View progfloyd's Profile")*

-- 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: 9 years 11 months ago by [progfloyd](/forum/user/42261-progfloyd "View progfloyd's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzkwMy1ob3ctdG8tYWRkLXN0b2NrLXN0YXR1cy10by10aGUtY2hlY2tvdXQtdGFibGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 11 months ago [\#257511](#257511) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add stock status to the checkout table?](/forum/27-checkout/887903-how-to-add-stock-status-to-the-checkout-table#257511 "-- 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")*

Hi,

You would have to edit the file "cart" of the view "checkout".
The stock of the product should be available in :
&lt;?php echo $row-&gt;product_quantity; ?&gt;

You could add it before: Code:

&lt;/td&gt; &lt;td data-title="&lt;?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?&gt;" class="hikashop_cart_product_price_value"&gt;

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzkwMy1ob3ctdG8tYWRkLXN0b2NrLXN0YXR1cy10by10aGUtY2hlY2tvdXQtdGFibGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[progfloyd](/forum/user/42261-progfloyd "View progfloyd's Profile")**
- [![progfloyd's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/42261-progfloyd "View progfloyd's Profile") Topic Author
- [ Offline](/forum/user/42261-progfloyd)

Less More

- Posts: 20
- Thank you received: 0
-
-

9 years 11 months ago [\#257627](#257627) by [progfloyd](/forum/user/42261-progfloyd "View progfloyd's Profile")  Replied by *[progfloyd](/forum/user/42261-progfloyd "View progfloyd's Profile")* on topic *[How to add stock status to the checkout table?](/forum/27-checkout/887903-how-to-add-stock-status-to-the-checkout-table#257627 "-- 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,

Thanks for your instruction. I will try it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NzkwMy1ob3ctdG8tYWRkLXN0b2NrLXN0YXR1cy10by10aGUtY2hlY2tvdXQtdGFibGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.056 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
