• Resolved jeremyp177

    (@jeremyp177)


    How can I change the value when you click on the “buy now” button?
    Currently it’s set to SHOP_URL/index.php/admin/checkout/cart/add/uenc/aHR0cHM6Ly90ZXN0LmFtb3JhbmEuY2gvYXBpL3Jlc3QvcHJvZHVjdHMvMjU4NQ,,/product/2585/form_key/qUz82eAcPG467HK0/

    But I want it to be this URL when you click on the button
    SHOP_URL/de/checkout/cart/add/uenc/aHR0cHM6Ly90ZXN0LmFtb3JhbmEuY2gvYXBpL3Jlc3QvcHJvZHVjdHMvMjU4NQ,,/product/2585/form_key/qUz82eAcPG467HK0/

    Is there any way to change it?

    • This topic was modified 7 years, 9 months ago by jeremyp177.
Viewing 1 replies (of 1 total)
  • Plugin Author santerref

    (@santerref)

    Hi,

    I think that this is something you have to fix in your Magento configuration, not in the plugin itself.

    However, if you want to do it from the plugin, just use the filters product_buy_it_now_button and product_view_details_button.

    You have access to the URL and you can use a str_replace() or preg_replace() to remove index.php from it.

    More details on these filters here : https://magentowp.santerref.com/documentation.html#filters

    • This reply was modified 7 years, 9 months ago by santerref.
    • This reply was modified 7 years, 9 months ago by santerref.
Viewing 1 replies (of 1 total)
  • The topic ‘Link ‘Buy Now’ to different store URL’ is closed to new replies.