i need in mini cart the option of continue shopping, please confirm the code is correct to not effect any other function in site.
This topic has 7 replies, 2 voices, and was last updated 4 months ago ago by Plethora
i need in mini cart the option of continue shopping, please confirm the code is correct to not effect any other function in site.
Hello @Plethora,
Thank you for reaching out.
Please note that we do not offer customization services through our support forum. However, based on the code you shared, everything appears to be functioning correctly without any noticeable issues.
To clarify, the first part of your code is responsible for adding an extra button, while the section labeled “Add robust JS in footer so it runs even for AJAX-inserted mini carts” serves a different purpose. In our opinion, this additional code is not essential.
As a suggestion, you may consider improving the URL of your custom button by using the following format:
get_permalink(wc_get_page_id('shop'))
With this URL adjustment, your button code would look like this:
function custom_widget_cart_continue_shopping() {
echo '<a href="'.get_permalink(wc_get_page_id('shop')).'" class="button btn-checkout wc-forward continue-shopping-btn">' . esc_html__( 'Continue Shopping', 'your-text-domain' ) .'</a>';
}
This will ensure that the “Continue Shopping” button redirects users to the shop page, and no additional scripts will be required for this functionality.
Please keep in mind that while we do not provide customization services, we are happy to offer suggestions to help you avoid unnecessary code on each page.
Best regards,
Jack Richardson
The 8Theme Team
The goal is to click the continue shopping button. And let the mini cart close. please review the code below.
Also, in the mini cart, I am unable to revert the Arabic language of the view cart text. please check the screenshot.
I appreciate the support
Hello @Plethora,
Thank you for reaching out to us.
Unfortunately, the customization you are requesting falls outside the scope of our basic support services. As such, we are unable to provide improvements or modifications to your code.
From our perspective, the code you have developed appears to be well-structured; however, its effectiveness may vary depending on your specific use cases.
If you require assistance with custom development, we kindly recommend submitting a request through the customization section on your account page at https://www.8theme.com/account/. For any other support-related inquiries, please feel free to open a separate topic.
We appreciate your understanding.
Best regards,
The 8Theme Team
can you assist for the screenshot attahed?
Hello @Plethora,
Thank you for your message.
The text you are requesting a translation for has been added using your custom snippet from your customization. In this case, we recommend reviewing the process for translating strings added via child theme files. You can find detailed guidance at the following link: https://localise.biz/wordpress/plugin/child-themes#xgettext.
Best regards,
Jack Richardson
The 8Theme Team
Thanks for the support! My topic “conitnue shopping php ( please confirm it doenst effect something else )” has been successfully resolved.
The issue related to '‘conitnue shopping php ( please confirm it doenst effect something else )’' has been successfully resolved, and the topic is now closed for further responses