• Resolved Rosca Bogdan

    (@roscabgdn)


    Hi,
    I have a bug on my website. The gift card is sent to the customer not to the sender when I choose to send it to a different email address.
    It worked properly.

    I am using WordPress 5.7.2 + WooCommerce 5.2.2 + PW WooCommerce Gift Cards 1.178.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author pimwick

    (@pimwick)

    Can you verify that the “To” email address is present in the Cart, Checkout, and Order pages? You should also see the other fields like the “From” and “Message” fields.

    Thread Starter Rosca Bogdan

    (@roscabgdn)

    Hello,
    No, I can’t see them there.

    Plugin Author pimwick

    (@pimwick)

    You should see the To / From / Message data in the cart as well as on the Order itself.

    If you don’t see those fields in the Cart, then most likely you have an “AJAX Add-To-Cart” feature enabled from your theme that is preventing the card data from being added. Disable this option and see if that does the trick.

    Thread Starter Rosca Bogdan

    (@roscabgdn)

    Ok, but I need that feature. Is it possible to be fixed using Ajax Add To cart feature?

    Plugin Author pimwick

    (@pimwick)

    When the HTML <form> is submitted on the product page, all fields are picked up when using the built-in WooCommerce submission.

    Most AJAX Add to Cart implementations do not pick up all fields. Instead, they only grab the product_id and the quantity. As a result, the To / From / Message fields (and others) are not transferred to the Cart when the product is added.

    The easiest solution we have found is to just exclude the AJAX Add to Cart for the gift card product itself. Some themes make this easier than others, you will need to contact your theme developer for specific instructions on how to do this.

    Thread Starter Rosca Bogdan

    (@roscabgdn)

    Thank you for your answer.
    I fixed it, disabled the Ajax Add to Cart for that specific product.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Gift card not sending to sender’ is closed to new replies.