Home Forums WoodMart support forum Woodmart – WPML – Wrong URL for "view cart"

Woodmart – WPML – Wrong URL for "view cart"

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #295671

    tadejbogataj
    Participant

    Hello, 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
    Woocommerce

    I would appreciate it if you can take a look.

    #295733

    Hello,

    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

    #295846

    tadejbogataj
    Participant

    Hello, 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.
    #295973

    Hello,

    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

    #296002

    tadejbogataj
    Participant

    Hello, 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.

    #296106

    Eric Watson
    Participant

    Hello,

    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

    #296112

    tadejbogataj
    Participant

    Hello, I am sending you the required access.

    #296177

    Eric Watson
    Participant

    Hello,

    It seems that it doesn’t work with the custom AJAX function so you will need to keep this option disabled.

    Best Regards

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