Support » Plugin: Mag products integration for WordPress » Incorrect ‘Buy it now’ URL

  • Resolved Clark


    Hello, hoping you can help me with this problem:

    This is the (incorrect) URL being returned from the ‘Beeweb_Wordpressproducts_Model_Api2_Product_Rest_Guest_V1’ magento extension which yields a 404:


    This is what a correct ‘Buy it now’ onclick URL is supposed to look like (taken from a magento category listing page, verified correct):


    My question:
    How do I get the *correct* buy_it_now_url to be returned by the magento extension as what’s being returned is incorrect?

    If you say I should use str_replace on the wordpress side (like on the other buy it now related support topic to write the correct url, how do I retrieve the ‘uenc’ and the ‘form_key’ elements from the magento extension, when all I get back from the magento side is the example *incorrect* url above?

    WordPress: 4.8
    FishPig with Root – wordpress is ROOT of site, magento is installed UNDER the wordpress root in ‘/store’ subdirectory.

    Thank you! Good job on your plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author santerref


    Hi Clark,

    The uenc is not a mandatory field (it’s the referer URL encoded to redirect the user when the product is added to the cart), but form_key is required!

    I will try on a fresh install (both magento and wordpress) using the same versions has you and see why the returned URL is wrong.

    Will be back as soon as possible with a solution!

    Plugin Author santerref



    Seems to be related to this issue:

    Can you please update both WordPress plugin and Magento extension (1.0.2) and let me know if everything is working fine now?


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incorrect ‘Buy it now’ URL’ is closed to new replies.