This topic has 8 replies, 2 voices, and was last updated 4 months, 1 weeks ago ago by Luca Rossi
on check out page product quantity + & – button is not working not able to increase and decrease quantity
Hi @Deep,
We appreciate your prompt response.
Please try to add the next code in the functions.php file located in your child theme:
function etheme_update_cart_item_quantity() {
if ( ( isset( $_REQUEST['item_id'] ) && $_REQUEST['item_id'] ) && isset( $_REQUEST['qty'] ) ) {
global $woocommerce;
if ( $_REQUEST['qty'] )
WC()->cart->set_quantity( $_REQUEST['item_id'], $_REQUEST['qty'] );
else
WC()->cart->remove_cart_item($_REQUEST['item_id']);
}
WC_AJAX::get_refreshed_fragments();
}
If this doesn’t help, we need FTP access from you to check the issue more deeply.
Best Regards,
8Theme’s Team
how to and where to add this code? please guid me with the step by step process please
Hi @Deep,
We would need access to your WP Admin and FTP accounts to further investigate and address the problem.
To grant WP-Admin access, kindly create a new user account with an administrator role via your WordPress Dashboard. Once the account is set up, please securely share the login credentials with us through the Private Content section designated for this purpose.
For FTP access, please provide us with the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you require assistance in setting up these credentials, your hosting provider should be able to assist you.
Thank you for your cooperation and assistance. We look forward to your prompt response.
Best Regards,
8Theme’s Team
Details are Provided …
Hi @Deep,
We couldn’t connect to your FTP Accounts, please double check: https://prnt.sc/xrxmyLtiXpDA
If you can login to your FTP Accounts, please add the following code at the end of this file: /wp-content/themes/xstore-child/functions.php
function etheme_update_cart_item_quantity() {
if ( ( isset( $_REQUEST['item_id'] ) && $_REQUEST['item_id'] ) && isset( $_REQUEST['qty'] ) ) {
global $woocommerce;
if ( $_REQUEST['qty'] )
WC()->cart->set_quantity( $_REQUEST['item_id'], $_REQUEST['qty'] );
else
WC()->cart->remove_cart_item($_REQUEST['item_id']);
}
WC_AJAX::get_refreshed_fragments();
}
Hope it helps!
issue resolved thanks ….
Dear Deep,
We would like to inform you that the issue you reported will be addressed in our forthcoming updates.
We apologize for any inconvenience this may have caused you.
Best Regards,
The 8Theme Team
The issue related to '‘on check out page product quantity + & – button is not working’' has been successfully resolved, and the topic is now closed for further responses