• Resolved coldrealms65

    (@coldrealms65)


    I have tested every single ajax enabled add to cart system and every one of them yields the same result so I must assume something with how your plugin attaches tag information needs to be tweaked as all the other tags for all other social media fires correctly.

    With ANY AJAX add to cart system the tag test shows:

    URL: https://www.equinox-apothecary.shop/the-shop/witchy-style/accessories/mouse-pads/the-power-of-crystals-gaming-mouse-pad/
    Raw Event: AddToCart
    Enhanced Match: Unverified
    currency: USD
    value: null

    If I turn off the ajax add to cart functionality the tag grabs all the correct information.
    This was tested with only the Storefront theme, Woocommerce, Pinterest for woocommerce, and any ajax cart plugin ( have tried them all) using Troubleshooting mode so it is not another plugin causing conflict.

    Also, as said before, other tags fire just fine it is only the Pinterest tag that is misbehaving.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Christian

    (@christian1983)

    Hey @coldrealms65

    Hope you are doing well! And thanks for your patience.

    The plugin fires the added to cart event hooking the WooCommerce event added_to_cart, which takes 3 parameters: cart fragments, cart hash, and button element.

    You need to make sure that you are passing the button element as a parameter to the added_to_cart event and that the button element has the product_id, product_name, quantity, and price as data attributes.

    Let me know if that helps.

    Best,
    Christian

    Thread Starter coldrealms65

    (@coldrealms65)

    I’m not sure how I am supposed to do that when I don’t control that…

    Other Tag’s get implemented fine (Facebook, google, etc) only the Pinterest one does not fire properly.

    The folks over at Pixel Cat have the Facebook tag firing just fine and they are super communicative, would you like to reach out to them to see how they did it so you could extend your plugin’s usability?

    Thread Starter coldrealms65

    (@coldrealms65)

    wait… I see you mentioned it fired on “Added_to_cart” Why not on “Add_to_cart”?

    Plugin Support Christian

    (@christian1983)

    Hey @coldrealms65

    Hope you are doing well!

    we just found a tweak that we need to do on our plugin related to your issue: https://github.com/woocommerce/pinterest-for-woocommerce/issues/548

    So if you need more help just open a new thread.

    Best,
    Christian

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tag information invalid with ajax’ is closed to new replies.