This topic has 18 replies, 3 voices, and was last updated 4 months, 1 weeks ago ago by Luca Rossi
Cart quantity is not able to update on checkout , cart and other pages of on woocommerce
Hello Festigift,
Thank you for contacting us and for using XStore.
We kindly request that you contact your hosting provider and relay our need for FTP access credentials. Specifically, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type.
Should you need any assistance in creating these credentials, please do not hesitate to reach out to your hosting provider, who will be able to guide you through the process.
Thank you for your attention to this matter.
We would like to bring to your attention that utilizing the Appearance theme editor or a file manager plugin via the site Dashboard to implement fixes or code carries the risk of inducing fatal errors. Such errors could potentially result in you being locked out and the website becoming inaccessible. It is for this reason that we recommend editing files through FTP; the use of the File Manager or theme editor alone does not offer the level of security and control required for such operations.
Best Regards,
8Theme’s Team
MAy
Hello Festigift,
You provided incorrect wp-admin access https://prnt.sc/G-pSzO2NUmla and did not provide FTP access, which means we can’t check the situation on your site more deeply, unfortunately.
Best Regards,
8Theme’s Team
wait i am providing
Hello Festigift,
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
i think
Dear Festigift Team,
We are pleased to inform you that we have successfully added the custom codes to your system. This update now allows for the modification of quantities on both the cart and checkout pages.
Could you kindly verify the functionality at your earliest convenience?
Best regards,
The 8Theme Team
That is working fine but now customer cant able to add product on cart from home page and shop page
Hi @Festigift,
We advise disabling all third-party plugins that are not included with the XStore theme. You can view a list of the included plugins here: https://www.8theme.com/documentation/xstore/plugins/included-plugins/. After deactivating these plugins, please clear your browser’s cache and verify if the issue still persists. This is an important step as third-party plugins can often lead to conflicts.
If the problem continues, please keep all third-party plugins deactivated and grant us permission to debug your site. This includes deactivating any on-site customizations. This measure will enable us to conduct a thorough investigation and provide you with the necessary assistance.
Before proceeding with the troubleshooting or any updates, we strongly recommend taking a complete backup of your site to safeguard against any potential data loss.
Best Regards,
8Theme’s Team
before it was working well but after you added some code for checkout function then only it is creating problem,
so kindly check the code problem is from your side only not plugin
Dear Festigift Team,
We hope this message finds you well.
We would like to clarify that our custom code does not interact with the add-to-cart functionality on the homepage or shop page. To illustrate this, we have temporarily removed our custom code, yet the issues previously reported continue to persist, as evidenced by the screenshot available here: https://prnt.sc/4n18xuIeO6wy.
We kindly request that you conduct a test for potential plugin conflicts to further investigate this matter.
Thank you for your attention to this issue.
Best regards,
8Theme’s Team
ok i found the plugin which is conflicting
you can the previous code again for checkout
add the previous code which you used for checkout
add on add to cart is not working
Hi @Festigift,
To make the custom fields work correctly on the single product page, you have to disable the Ajax Add To Cart setting: https://prnt.sc/iA0SDTHD7bjk
We’ve done that for you.
Can you check now?
Best regards,
8Theme’s Team
yes working thanks
Dear @Festigift,
Should you require any additional assistance, please do not hesitate to contact us.
Best regards,
The 8Theme Team
The issue related to '‘Cart quantity is not able to update on checkout , cart on woocommerce’' has been successfully resolved, and the topic is now closed for further responses