Home › Forums › Themes Support › Gecko › Woocommerce Product Required Fields (Ajax Cart)
- This topic has 5 replies, 2 voices, and was last updated 5 years, 1 month ago by Harry.
-
AuthorPosts
-
-
November 27, 2019 at 8:00 pm #34557
Hi,
I am trying to add some extra input fields in our eshop products with the help of the following plugins.Both plugins are working properly, extra input fields appearing properly in product page but I am facing the following issue.
When an input field is required, the product should not be added to the cart.
At my case the product is not added in the cart (Correct) but Ajax Cart is called and the Side Cart is triggered, so it appears empty.
http://prntscr.com/q2t3kx
How could I avoid triggering the side cart in such a case and showing a message “Please fill up the required field” instead.I have changed the template to one of the defaults (e.g. Twenty Twenty) and everything works properly.
Regards
-
November 27, 2019 at 9:09 pm #34563
Hi,
The issue because these plugin doesn’t support Ajax Add to Cart. Please go to WooCommerce > Settings > Products > Add to cart behavior and uncheck 2 last fields.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 28, 2019 at 3:40 pm #34574
Hi,
thanks for your response.
In fact there is no support for Ajax Add to Cart in every similar plugin. Even in the official WooCommerce Product Addons.
I know that disabling those 2 options, I can bypass the problem but I would like to give a better solution.
e.g. Disable Add to Cart button if required fields are not filled or selected. I wonder if you use somewhere such a function in order to modify it in functions.phpRegards
-
November 28, 2019 at 5:40 pm #34576
Hi Spiros,
By default our theme disable “Add to cart” button when required field not filled or selected. You can refresh product page to check. Please contact plugin author to check this.
Btw, your support expired. Please renew your support at https://themeforest.net/item/gecko-powerful-ajax-woocommerce-theme/15863658 that will help us continue develop new features and improve our theme.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 29, 2019 at 3:43 pm #34582
Hi,
it is true that the theme checks required attributes (color, size etc) and disables “Add to Cart” button but not Custom input fields as text field in my case. An extra check is needed between the template and the Product Addon Plugin.Relating to my subscription, the renewal has been paid since last month.
-
November 29, 2019 at 9:25 pm #34585
Hi Spiros,
1. Could you up your invoice of subscription that will help us update your account info.
2. Did you try Product Addon Plugin with default theme (StoreFront or Twenty Twenty)? Let me know if the plugin work well with these theme, if not please contact to plugin author.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.