Lightbox store cart only works in Firefox

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
grepper
 
 
Posts: 13
Joined: Sun Mar 21, 2021 10:55 pm

Lightbox store cart only works in Firefox

Post by grepper »

I'm trying to use magnificpopup to open an external Square (Squareup) shopping site.  It works perfectly in Firefox, but not in Chrome or Edge.

In Firefox Add to Cart works OK and adds the item to the cart.

In Chrome and Edge Add to Cart does not work and nothing is added to the cart.

Any ideas?
grepper
 
 
Posts: 13
Joined: Sun Mar 21, 2021 10:55 pm

Re: Lightbox store cart only works in Firefox

Post by grepper »

This is super easy to demonstrate:
Link a button to:
https://mechusa.square.site/product/kal ... cst=custom
Have the link open in magnificpopup lightbox.
Preview in Firefox, push the button and add the product to the cart. It works.
Preview in Chrome or Edge and do the same. Nothing is added to the cart.
It does the same thing in different Square (Squareup) stores and on different computers.
Thanks folks!
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Lightbox store cart only works in Firefox

Post by Pablo »

magnificpopup opens the page in an inline frame, like most other lightboxes.
The website most likely does not support to be displayed inside an inline frame for security reasons.

Note that this is unrelated to WWB.
grepper
 
 
Posts: 13
Joined: Sun Mar 21, 2021 10:55 pm

Re: Lightbox store cart only works in Firefox

Post by grepper »

Thank you for your reply Pablo. I'm not a web programmer so I don't understand the implications of inline frames.
Do you happen to know what Firefox does differently? If it's Square's website, why does it work OK in Firefox?
Thanks!
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Lightbox store cart only works in Firefox

Post by Pablo »

It may be related to the "Same-origin_policy" setting of the browser.
https://developer.mozilla.org/en-US/doc ... gin_policy
grepper
 
 
Posts: 13
Joined: Sun Mar 21, 2021 10:55 pm

Re: Lightbox store cart only works in Firefox

Post by grepper »

Thank you for your assistance. Much appreciated.
Post Reply