Home › Forums › WoodMart support forum › Theme is blocking CORS policy on affiliate but button link
Theme is blocking CORS policy on affiliate but button link
- This topic has 9 replies, 2 voices, and was last updated 3 years, 3 months ago by
Elise Noromit.
-
AuthorPosts
-
January 17, 2022 at 2:26 pm #345921
[email protected]ParticipantHi,
I have made a custom construction to load variable affiliate products in Woocommerce. But when I click the buy button on product detail the theme blocks the link via CORS policy. I found out it was the theme because when I switch to the WordPress twenty-twenty theme the but button works and redirects me to the specific url. How can i stop this cors policy from blocking this link.
Attachments:
You must be logged in to view attached files.January 17, 2022 at 5:57 pm #345969
Elise NoromitMemberHello,
Thank you very much for choosing our theme and for contacting us.
Please, provide your site admin access (insert the site credentials into the Private content block under the message area) and confirm the permission for plugins deactivation, switching to the parent or default theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.
Best Regards
January 18, 2022 at 2:57 pm #346189
[email protected]ParticipantHi Elise,
Thanks for the reply. Ive made an account for u to check with. You have permission to do everything u asked.
kind regards
Dominique van Ijzendoorn
January 19, 2022 at 1:57 pm #346404
Elise NoromitMemberHello,
As per your screens, the problem is caused by different URLs: HTTPS and HTTP at the same time, I am checking the Settings and see your URLs are correct.
Please check the URLs you integrate. When I tried to click “Buy button” I went to the site of the vendor without any problems.
Best Regards
January 24, 2022 at 9:46 am #347404
[email protected]ParticipantHi,
I think you might have clicked on the wrong products, we had a couple test products with dummy links. Please check the link i posted in the “your website link”. When I look at the urls I import form the datafeed from awin, they have https protocol and the base url of our own site has https protocol aswell. I have trashed the dummy products so there cant be a mistake again. How can I get the to work because when i click it doesnt redirect me to jd-sports.
Kind regards,
Dominique
Attachments:
You must be logged in to view attached files.January 24, 2022 at 2:16 pm #347524
Elise NoromitMemberHello,
Please make the full backup of your site and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by WooСommerce.
Best Regards
January 24, 2022 at 2:21 pm #347526
[email protected]ParticipantHi,
Ive activated the storefront theme and the problem is resolved now. So it is definitly caused by the woodmart theme. You can check the site now. Ive added the product link in the link tab of this ticket.
Kind regards Dominique
January 25, 2022 at 12:12 pm #347754
Elise NoromitMemberHello,
Please disable AJAX add to cart in the Theme Settings > Single product > Add to cart options: https://gyazo.com/e740b230c23b847a80fbff216ac838d7
Best Regards
January 25, 2022 at 4:13 pm #347855
[email protected]ParticipantHi Elise,
It works! Thank you so much for the support! It is very greatly appreciated.
Kind regards,
Dominique
January 26, 2022 at 12:24 am #347923
Elise NoromitMemberYou are welcome! We are here to help.
Wish you a wonderful day!
-
AuthorPosts
The topic ‘Theme is blocking CORS policy on affiliate but button link’ is closed to new replies.
- You must be logged in to create new topics. Login / Register