Home › Forums › WoodMart support forum › Add to cart not working properly
Add to cart not working properly
- This topic has 23 replies, 3 voices, and was last updated 1 year, 11 months ago by Artem Temos.
-
AuthorPosts
-
December 17, 2022 at 5:11 pm #429587
pattulingam.jParticipantWhen I click add to cart, only loads. Products not added to the cart.
December 18, 2022 at 1:35 am #429631
Elise NoromitMemberHello,
Please deactivate all the plugins except these ones:
Slider Revolution
WPBakery Page Builder or Elementor
Woodmart Core
Contact Form 7
MailChimp for WordPress
WooCommerce
Safe SVGIf the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.
In case, the problem remains, even after all the plugins are deactivated, provide your site admin access (insert the site credentials into the Private content block under the message area) and confirm the permission for plugins deactivation, switching to the parent or default theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.
Best Regards
December 18, 2022 at 10:36 am #429660
pattulingam.jParticipantI deactivated all plugins but not working properly. I have attached my staging site details below. Find the issue in that.
December 19, 2022 at 9:17 am #429745
pattulingam.jParticipantHello
December 20, 2022 at 6:07 am #430006
Elise NoromitMemberHello,
I do not see any products on the shop page. Please configure the functional Woocommerce pages properly. If you install Storefront and check with this theme, you will see the same.
Please configure Woocommerce properly.
Best Regards
December 20, 2022 at 1:16 pm #430095
pattulingam.jParticipantI have attached login details below.
December 21, 2022 at 6:47 am #430303
Elise NoromitMemberHello,
Please contact the host support and ask them to increase this feature: PHP max input vars: 1000 to 5000 min. The best value 10000.
If the problem remains, please let us know.
Best Regards
December 22, 2022 at 4:05 pm #430730
pattulingam.jParticipantI have updated – PHP max input vars = 1000 to 10000. But not working
December 22, 2022 at 7:16 pm #430786
pattulingam.jParticipantI have attached a screenshot below.
Attachments:
You must be logged in to view attached files.December 24, 2022 at 4:04 am #431056
Elise NoromitMemberHello,
Please deactivate these plugins: https://gyazo.com/76c6051c9a5dc2623b633b2d9f0ded83
If you have any questions please feel free to contact us.
Best Regards
December 25, 2022 at 5:02 pm #431160
pattulingam.jParticipantHow to delete it? Does any problem occur after deleting these?
December 25, 2022 at 5:12 pm #431164
pattulingam.jParticipantI have deleted the jm.php file (I have attached it below). Godaddy recommended to delete that file. Is this a problem?
December 25, 2022 at 5:17 pm #431165
pattulingam.jParticipantI can’t able to upload file
December 26, 2022 at 1:16 pm #431289
pattulingam.jParticipantPlease share your mail id. I will send you that PHP file
December 27, 2022 at 1:28 am #431398
Elise NoromitMemberDecember 27, 2022 at 12:47 pm #431488
pattulingam.jParticipantI have sent the jm.php file to your Gmail. My mail id – [email protected]
I deleted that jm.php file on 16/12/2022December 27, 2022 at 12:56 pm #431495
Artem TemosKeymasterHello,
Try to add the following PHP code snippet to the child theme functions.php file to fix this
add_filter('woocommerce_add_to_cart_redirect', function( $url ) { if( strpos( $url, 'product-added-to-cart' ) > 0 || strpos( $url, 'product_added_to_cart' ) > 0) { if ( isset( $_REQUEST['wd-add-to-cart'] ) ) { return wc_get_checkout_url(); } return ''; } return $url; }, PHP_INT_MAX);
Kind Regards
December 27, 2022 at 1:08 pm #431503
pattulingam.jParticipantNow it’s working. What about that jm.php file? Is this a problem?
Thank youDecember 27, 2022 at 4:25 pm #431565
Artem TemosKeymasterIt is a conflict between one of the installed plugins and our theme. Just keep the code in your child theme to make it work.
Kind Regards
January 8, 2023 at 12:17 pm #433807
pattulingam.jParticipantAfter adding this PHP snippet, “buy now” option not working properly. When I click buy now, the cart will be empty.
January 9, 2023 at 10:16 am #433900
Artem TemosKeymasterHello,
We just tested this on your website and it works well for us. Please, check the following video https://gyazo.com/213ea1f62b72b954edf68b907ede3cd8
Kind Regards
January 9, 2023 at 2:48 pm #433976
pattulingam.jParticipantPlease check the live site. I have added this PHP snippet on my live site only.
January 9, 2023 at 2:50 pm #433977
pattulingam.jParticipantI have added the username and password below.
January 9, 2023 at 3:34 pm #433980
Artem TemosKeymasterDoes it happen with the PHP fix only? Could you please try to remove the code and see how it works?
-
AuthorPosts
- You must be logged in to create new topics. Login / Register