Home › Forums › WoodMart support forum › Woodmart – WPML – Wrong URL for "view cart"
Woodmart – WPML – Wrong URL for "view cart"
- This topic has 7 replies, 3 voices, and was last updated 3 years, 9 months ago by
Eric Watson.
-
AuthorPosts
-
May 26, 2021 at 2:47 pm #295671
tadejbogatajParticipantHello, we are experiencing the following issue on all secondary languages set up with WPML:
If you visit the website and go to a random product on secondary language (eg.: https://wordpress-458609-1931226.cloudwaysapps.com/en/product/mysun-classicir-panels-mysun-classic/) and add it to cart, the minicart sidebar will pop out, showing the added product and two buttons: View cart and Checkout. If you inspect the View cart button, you will see that its URL is set for primary language, which is not correct.
So the url should be: https://wordpress-458609-1931226.cloudwaysapps.com/en/cart-2/
but instead it is: https://wordpress-458609-1931226.cloudwaysapps.com/kosarica/
If you refresh the page and then manually open the mini cart, the URL gets corrected.So to sum up, when product is added via ajax, the url for “view cart” button inside mini cart popup is wrong. If you then refresh the page and manually open the mini cart, the url is corrected.
There are only mandatory plugins activated at the moment:
Woodmart Core
WPML
WoocommerceI would appreciate it if you can take a look.
May 26, 2021 at 8:40 pm #295733
Elise NoromitMemberHello,
Thank you very much for choosing our theme and for contacting us.
Please make the full backup of your site as well as the Theme settings export and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by WooСommerce.
Best Regards
May 27, 2021 at 7:56 am #295846
tadejbogatajParticipantHello, thank you for replying, I activated storefront and the troublesome “view cart” button is working as intended. So if I go to secondary language and add some product to cart, the “view cart” button in the mini cart dropdown has the correct URL.
I attached two images for clarity:
ok.png -> storefront -> view cart url is correct
not_ok.png -> woodmart -> view cart url is not correct -> should be: /hr/cart-2/Attachments:
You must be logged in to view attached files.May 27, 2021 at 12:51 pm #295973
Elise NoromitMemberHello,
Please make the full backup of your site and update the theme till the latest version: https://xtemos.com/docs/woodmart/update-theme-2/ and https://xtemos.com/docs/woodmart/faq-guides/woodmart-update-6-0-explained/
Then activate AJAX for add to cart: https://prnt.sc/13h9nzi in the Theme Settings > Product page.
Best Regards
May 27, 2021 at 2:11 pm #296002
tadejbogatajParticipantHello, thank you for your reply. I updated the theme but the issue persists. AJAX for add to cart was already activated. Actually this problem only occurs when AJAX add to cart is activated.
May 28, 2021 at 7:13 am #296106
Eric WatsonParticipantHello,
Could you please disable all plugins that are not related to our theme and provide us your FTP access so we can check it?
Thank you in advance
May 28, 2021 at 7:26 am #296112
tadejbogatajParticipantHello, I am sending you the required access.
May 28, 2021 at 11:27 am #296177
Eric WatsonParticipantHello,
It seems that it doesn’t work with the custom AJAX function so you will need to keep this option disabled.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register