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

#   Product Available From Dates Bug?

##

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

Less More

- Posts: 105
- Thank you received: 9
-
-

11 years 3 months ago [\#210794](#210794) by [mduda](/forum/user/33655-mduda "View mduda's Profile")  *[Product Available From Dates Bug?](/forum/27-checkout/878611-product-available-from-dates-bug#210794 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.38 -- Browser(s) name and version -- : Firefox  I have products that are only available on certain days. When I have the dates input for products avail in the future, the &quot;add to cart&quot; button disappears, and a note shows when the product becomes avail. Great.  The problem I'm having is that if you click enter, it will add it to the cart so that you can checkout with it.  Any thoughts on how to solve? Thanks.")* was created by *[mduda](/forum/user/33655-mduda "View mduda's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.38
-- Browser(s) name and version -- : Firefox

I have products that are only available on certain days. When I have the dates input for products avail in the future, the "add to cart" button disappears, and a note shows when the product becomes avail. Great.

The problem I'm having is that if you click enter, it will add it to the cart so that you can checkout with it.

Any thoughts on how to solve? Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODYxMS1wcm9kdWN0LWF2YWlsYWJsZS1mcm9tLWRhdGVzLWJ1Zz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

11 years 3 months ago [\#210797](#210797) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Available From Dates Bug?](/forum/27-checkout/878611-product-available-from-dates-bug#210797 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.38 -- Browser(s) name and version -- : Firefox  I have products that are only available on certain days. When I have the dates input for products avail in the future, the &quot;add to cart&quot; button disappears, and a note shows when the product becomes avail. Great.  The problem I'm having is that if you click enter, it will add it to the cart so that you can checkout with it.  Any thoughts on how to solve? Thanks.")*

I've checked your website but couldn't find any product with the behavior you're describing.
Can you provide a link to such page so that we can analyse the problem as we don't have it on our end ?

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

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

Less More

- Posts: 105
- Thank you received: 9
-
-

11 years 3 months ago [\#210857](#210857) by [mduda](/forum/user/33655-mduda "View mduda's Profile")  Replied by *[mduda](/forum/user/33655-mduda "View mduda's Profile")* on topic *[Product Available From Dates Bug?](/forum/27-checkout/878611-product-available-from-dates-bug#210857 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.38 -- Browser(s) name and version -- : Firefox  I have products that are only available on certain days. When I have the dates input for products avail in the future, the &quot;add to cart&quot; button disappears, and a note shows when the product becomes avail. Great.  The problem I'm having is that if you click enter, it will add it to the cart so that you can checkout with it.  Any thoughts on how to solve? Thanks.")*

I had unpublished the product. Temporarily publishing it, so you can check the behavior.
[ Product showing upcoming date avail](http://twepta.org/twepta2014/index.php/en/hikashop-menu-for-categories-listing/product/366-back-to-school-bundle-faculty)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODYxMS1wcm9kdWN0LWF2YWlsYWJsZS1mcm9tLWRhdGVzLWJ1Zz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

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

11 years 3 months ago [\#210947](#210947) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Available From Dates Bug?](/forum/27-checkout/878611-product-available-from-dates-bug#210947 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.38 -- Browser(s) name and version -- : Firefox  I have products that are only available on certain days. When I have the dates input for products avail in the future, the &quot;add to cart&quot; button disappears, and a note shows when the product becomes avail. Great.  The problem I'm having is that if you click enter, it will add it to the cart so that you can checkout with it.  Any thoughts on how to solve? Thanks.")*

Hi,

Change the line: Code:

&lt;form action="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart'); ?&gt;" method="post" name="hikashop_product_form" enctype="multipart/form-data"&gt;

to: Code:

&lt;form action="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart'); ?&gt;" method="post" name="hikashop_product_form" onsubmit="return hikashop_product_form_check();" enctype="multipart/form-data"&gt; &lt;script type="text/javascript"&gt; function hikashop_product_form_check(){ var add_to_cart_main_div = document.getElementById('hikashop_product_quantity_main'); if(!add_to_cart_main_div) return true; var main_div_inputs = add_to_cart_main_div.getElementsByTagName('input'); if(!main_div_inputs.length){ var main_div_links = add_to_cart_main_div.getElementsByTagName('a'); if(!main_div_links.length) return false; } return true; } &lt;/script&gt;

in the file "show" of the view "product" for your frontend template and that will avoid the problem. We'll also add that on our end for the next version of HikaShop.

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

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

Less More

- Posts: 105
- Thank you received: 9
-
-

11 years 3 months ago [\#210963](#210963) by [mduda](/forum/user/33655-mduda "View mduda's Profile")  Replied by *[mduda](/forum/user/33655-mduda "View mduda's Profile")* on topic *[Product Available From Dates Bug?](/forum/27-checkout/878611-product-available-from-dates-bug#210963 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.38 -- Browser(s) name and version -- : Firefox  I have products that are only available on certain days. When I have the dates input for products avail in the future, the &quot;add to cart&quot; button disappears, and a note shows when the product becomes avail. Great.  The problem I'm having is that if you click enter, it will add it to the cart so that you can checkout with it.  Any thoughts on how to solve? Thanks.")*

Thanks!!

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

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