Home Forums WoodMart support forum Add to cart not working properly

Add to cart not working properly

Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #429587

    pattulingam.j
    Participant

    When I click add to cart, only loads. Products not added to the cart.

    #429631

    Hello,

    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 SVG

    If 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

    #429660

    pattulingam.j
    Participant

    I deactivated all plugins but not working properly. I have attached my staging site details below. Find the issue in that.

    #429745

    pattulingam.j
    Participant

    Hello

    #430006

    Hello,

    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

    #430095

    pattulingam.j
    Participant

    I have attached login details below.

    #430303

    Hello,

    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

    #430730

    pattulingam.j
    Participant

    I have updated – PHP max input vars = 1000 to 10000. But not working

    #430786

    pattulingam.j
    Participant

    I have attached a screenshot below.

    Attachments:
    You must be logged in to view attached files.
    #431056

    Hello,

    Please deactivate these plugins: https://gyazo.com/76c6051c9a5dc2623b633b2d9f0ded83

    If you have any questions please feel free to contact us.

    Best Regards

    #431160

    pattulingam.j
    Participant

    How to delete it? Does any problem occur after deleting these?

    #431164

    pattulingam.j
    Participant

    I have deleted the jm.php file (I have attached it below). Godaddy recommended to delete that file. Is this a problem?

    #431165

    pattulingam.j
    Participant

    I can’t able to upload file

    #431289

    pattulingam.j
    Participant

    Please share your mail id. I will send you that PHP file

    #431398

    Hello,

    Please send the access to [email protected]

    Let me know when it’s been done.

    Best Regards

    #431488

    pattulingam.j
    Participant

    I have sent the jm.php file to your Gmail. My mail id – [email protected]
    I deleted that jm.php file on 16/12/2022

    #431495

    Artem Temos
    Keymaster

    Hello,

    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

    #431503

    pattulingam.j
    Participant

    Now it’s working. What about that jm.php file? Is this a problem?
    Thank you

    #431565

    Artem Temos
    Keymaster

    It 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

    #433807

    pattulingam.j
    Participant

    After adding this PHP snippet, “buy now” option not working properly. When I click buy now, the cart will be empty.

    #433900

    Artem Temos
    Keymaster

    Hello,

    We just tested this on your website and it works well for us. Please, check the following video https://gyazo.com/213ea1f62b72b954edf68b907ede3cd8

    Kind Regards

    #433976

    pattulingam.j
    Participant

    Please check the live site. I have added this PHP snippet on my live site only.

    #433977

    pattulingam.j
    Participant

    I have added the username and password below.

    #433980

    Artem Temos
    Keymaster

    Does it happen with the PHP fix only? Could you please try to remove the code and see how it works?

Viewing 24 posts - 1 through 24 (of 24 total)