Hi Pratik,
Thank you very much for your reply. I’m sorry for not getting back to you earlier, but we were traveling and then COVID struck, upsetting our life a bit.
But now we are back at working on EDD issues.
We do use Swift Pro for caching. When it is turned off, and the purchase buttons are made visible, clicking the button will take us to the cart but would not add the product.
In the meantime, we also received the official response from EDD, please read below.
Do you think there could be any solution for this? We don’t think either EDD or Divi will solve it soon.
Kind regards,
Laszlo
EDD’s response:
I was able to confirm an incompatibility with EDD and Divi using your staging site and tracing through the code.
EDD actually outputs 2 purchase buttons for each product:
– A button that works with javascript to add the item to the cart, which then changes to a “Checkout” button
– A button which simply adds the item to the cart, but isn’t javascript-enabled.
When the page loads, EDD scans the page to hide the non-javascript button, and shows the javascript one.
The problem when being used alongside Divi is that Divi adds the buttons to the page a microsecond after EDD scans the page. So EDD’s scan of the page is essentially doing nothing in that scenario, and you are left with the no-javascript button only.
When you click on that button, it attempts to do that, but the nonce is not attached because it is using the non-javascript button.
For now, I would advise simply enabling “Redirect to checkout” in your EDD “misc” settings, which I believe you already did.
This is a deeper issue in incompatibility with Divi and EDD, and will take time to figure out a resolution.