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

#   Variants / out of stock / module specific translation

##

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

Less More

- Posts: 51
- Thank you received: 2
-
-

8 years 4 months ago -  8 years 4 months ago [\#294387](#294387) by [Odda](/forum/user/6543-odda "View Odda's Profile")  *[Variants / out of stock / module specific translation](/forum/26-product-category-display/895069-variants-out-of-stock-module-specific-translation#294387 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  In our store we are selling both courses and products. One course has three different variants (with different price depending on the participants age). We can sell 12 tickets per course, and I set the stock on the main product to 12 and the stock of each variant to 0. That way, when we've sold 12 tickets (regardless of variant) the course is out of stock. But when stock = 0, the text by the &quot;Choose option&quot;-button change from &quot;In stock&quot; to nothing, and you need to go to the product view to see that it is &quot;Out of stock&quot;.  1) Is it possible to get the &quot;sold out&quot;-text also in the category view when the main product's stock is zero? I'm aware of the &quot;Hide when out of stock&quot;-choice, but it is positive to show that the courses are fully booked :-) 2) Since we are selling both tickets to courses AND products, the text/translation doesn't always fit both categories. Is there a way to customixe the translation for a specific product category og a specific module (like &quot;Fully booked&quot; for courses and &quot;out of stock&quot; for products)?")* was created by *[Odda](/forum/user/6543-odda "View Odda's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8

In our store we are selling both courses and products. One course has three different variants (with different price depending on the participants age). We can sell 12 tickets per course, and I set the stock on the main product to 12 and the stock of each variant to 0. That way, when we've sold 12 tickets (regardless of variant) the course is out of stock. But when stock = 0, the text by the "Choose option"-button change from "In stock" to nothing, and you need to go to the product view to see that it is "Out of stock".

1) Is it possible to get the "sold out"-text also in the category view when the main product's stock is zero? I'm aware of the "Hide when out of stock"-choice, but it is positive to show that the courses are fully booked ![:-)](/media/kunena/emoticons/3.png ":-)")
2) Since we are selling both tickets to courses AND products, the text/translation doesn't always fit both categories. Is there a way to customixe the translation for a specific product category og a specific module (like "Fully booked" for courses and "out of stock" for products)?

Last edit: 8 years 4 months ago by [Odda](/forum/user/6543-odda "View Odda's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTUwNjktdmFyaWFudHMtb3V0LW9mLXN0b2NrLW1vZHVsZS1zcGVjaWZpYy10cmFuc2xhdGlvbj90bXBsPW1hcmtkb3du) 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: 86359
- Thank you received: 14296
-
-

8 years 4 months ago [\#294417](#294417) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variants / out of stock / module specific translation](/forum/26-product-category-display/895069-variants-out-of-stock-module-specific-translation#294417 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.8  In our store we are selling both courses and products. One course has three different variants (with different price depending on the participants age). We can sell 12 tickets per course, and I set the stock on the main product to 12 and the stock of each variant to 0. That way, when we've sold 12 tickets (regardless of variant) the course is out of stock. But when stock = 0, the text by the &quot;Choose option&quot;-button change from &quot;In stock&quot; to nothing, and you need to go to the product view to see that it is &quot;Out of stock&quot;.  1) Is it possible to get the &quot;sold out&quot;-text also in the category view when the main product's stock is zero? I'm aware of the &quot;Hide when out of stock&quot;-choice, but it is positive to show that the courses are fully booked :-) 2) Since we are selling both tickets to courses AND products, the text/translation doesn't always fit both categories. Is there a way to customixe the translation for a specific product category og a specific module (like &quot;Fully booked&quot; for courses and &quot;out of stock&quot; for products)?")*

Hi,

I don't understand how your setup is working.
If you set the stock to 0 in the variants, then it's not possible to purchase the product even if you set a stock in the main product.
If you want to have the stock decremented accross the variants, then you indeed need to set a stock in the main product, however, you need to leave the stock of the variants to unlimited and not 0.

If the product is properly configured, then the "choose options" button will disappear and will be replaced by "out of stock" when the stock of the main product reaches 0.

If you want to customize the message for different products, you'll have to edit the code: Code:

echo JText::_('NO_STOCK');

in the file "add_to_cart_ajax.php" (for the listing) and the file "quantity.php" (for the product page) via the menu Display&gt;Views.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTUwNjktdmFyaWFudHMtb3V0LW9mLXN0b2NrLW1vZHVsZS1zcGVjaWZpYy10cmFuc2xhdGlvbj90bXBsPW1hcmtkb3du) 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.046 seconds

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