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

#   Display "Available in 24/48h" for some products ot

##

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

Less More

- Posts: 28
- Thank you received: 1
-
-

12 years 7 months ago [\#147697](#147697) by [raulpiscoi](/forum/user/22478-raulpiscoi "View raulpiscoi's Profile")  *[Display "Available in 24/48h" for some products ot](/forum/26-product-category-display/866516-display-available-in-24-48h-for-some-products-ot#147697 "-- url of the page with the problem -- :   www.airsoft-romania.com  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.3  Hi, How can I display the message &quot;Available in 24h/48h&quot; for some products that are out of stock?  Regards, Raul")* was created by *[raulpiscoi](/forum/user/22478-raulpiscoi "View raulpiscoi's Profile")*

-- url of the page with the problem -- : [ www.airsoft-romania.com](http://www.airsoft-romania.com)
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.19
-- PHP version -- : 5.3

Hi,
How can I display the message "Available in 24h/48h" for some products that are out of stock?

Regards,
Raul

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#147734](#147734) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display "Available in 24/48h" for some products ot](/forum/26-product-category-display/866516-display-available-in-24-48h-for-some-products-ot#147734 "-- url of the page with the problem -- :   www.airsoft-romania.com  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.3  Hi, How can I display the message &quot;Available in 24h/48h&quot; for some products that are out of stock?  Regards, Raul")*

Hi,

I think that the best way is to create a custom field on the product table.
For example, "availability", for the desired products set the value 24/48h for this custom field in the product edition page.

Then edit the view "product / quantity" and replace the line: Code:

echo JText::_('NO_STOCK').'&lt;br/&gt;';

By: Code:

if(!empty($this-&gt;row-&gt;availability)){ echo JText::sprintf('AVAILABLE_IN',$this-&gt;row-&gt;availability).'&lt;br/&gt;'; }else{ echo JText::_('NO_STOCK').'&lt;br/&gt;'; }

And add the following line in the translation file:

> AVAILABLE\_IN="Available in %s"

By this way you will have the desired result, and you can set different periods of times for different products.

The following user(s) said Thank You: [raulpiscoi](/forum/user/22478-raulpiscoi "View raulpiscoi's Profile")

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

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

Less More

- Posts: 28
- Thank you received: 1
-
-

12 years 7 months ago [\#147843](#147843) by [raulpiscoi](/forum/user/22478-raulpiscoi "View raulpiscoi's Profile")  Replied by *[raulpiscoi](/forum/user/22478-raulpiscoi "View raulpiscoi's Profile")* on topic *[Display "Available in 24/48h" for some products ot](/forum/26-product-category-display/866516-display-available-in-24-48h-for-some-products-ot#147843 "-- url of the page with the problem -- :   www.airsoft-romania.com  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.3  Hi, How can I display the message &quot;Available in 24h/48h&quot; for some products that are out of stock?  Regards, Raul")*

It works like a charm ![:)](/media/kunena/emoticons/8.png ":)")

Regards,
Raul

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

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

[](#top)
