How can I redirect a user to the product if the user lands on an image popup in Magento? - image

The problem is that from time to time people enter the site through the image pop-up page after a search in Google, and the pop-up only has the functions to go to next image, previous image and close window. So it doesn't present the customer with the possibility to see the product page corresponding to the image pop-up thus resulting in bounce.
I would like to add a go to product page button as well, but I don't know how.

There are several options. One you can change magento 'view large' image window with some lightbox plugin that would create popup on the page and not new browser window. This would be not indexed by google. Then you can create rewrite from popup addresses to homepage (or product page).
If you want to keep the current way of displaying large images then the only way is to check the referer header and if it is not from your shop redirect customer to the page.

Related

OWASP ZAP: Is it possible to prevent AJAX spider from clicking a button while spidering?

I would like to prevent ajax spider from clicking a specific button on the app I am scanning. The button brings the browser back to the homepage of the app. The spider starts at the homepage and first presses the button, basically causing the homepage to rerender but with slightly different url parameters. The spider thinks it is a "new" page and presses the button again, continuing to go through this cycle while hardly spidering through other pages. If there was a way the spider could identify this button through class name, id, etc, and avoid it, it would be very helpful. Is there some type of script or other way of accomplishing this?
I've tried excluding urls with regex following the url pattern of the homepage after the button has been clicked. However, the spider still visits all these pages. I believe it doesn't know it has reached an excluded page until after it is rendered by the button click, which will not prevent it from clicking in the first place.

Refresh a Fusion block on click of a button wordpress Avada

I have some buttons on a page and on click of each button the page gets reload and the data changes. Now, I would like to refresh that particular fusion block only without reloading the page. The buttons are added to the page as a widget (with some valid reasons) and the fusion block is on the page itself. Would it be possible to achieve what I am looking for?

Optimizely Experiment on Secure Page / Onepage Checkout

Recently I've been trying to run an experiment on my onepage checkout with optimizely (secure page) and I can't seem to get it to load my cookie data.
I followed optimizely's guide to make session specific information load but have had no luck.
Open your site in a browser tab and navigate to the page you wish to edit. This may entail logging in, adding an item to your cart, or completing a portion of a form. Take the exact steps that get you to the page into the form you want to edit.
Next, open Optimizely in an adjacent tab within the same browser and create an experiment using the URL of the page you’d like to test.
Why? The editor will load the page as it would appear if you went directly to the URL in another tab; once you can repeatedly load the page into a separate tab, then Optimizely should be able to load the page within the editor.
Please help.
You have probably forgotten to allow the Javascript to be run, certainly in Chrome you have to click the little silver shield in the browser address bar to enable Optimizely to load in from the other browser tab;

Can bookmarket modify original page?

I have a bookmarklet that opens a dialog (in reality an iframe) and extracts some information. When the dialog is dismissed I want to put that information into edit text fields on the original page in the browser (like the way LastPass will automatically fill-in login forms on a page).
Is this possible? I'm thinking that same-origin-policy will prevent this, but maybe there is a way (without installing extensions such as greasemonkey, etc).
Edit: to be more precise: the bookmarklet appends a DIV to the original page; that DIV contains an IFRAME that loads my page; this page fetches some information; once this information is fetched within the IFRAME I want to remove the DIV and (somehow) put that information into the original page.
The issue I face is communicating the information in the IFRAME back to the original page.
What you are looking for are the functions addEventListener and postMessage.
Relevant links:
http://caniuse.com/#feat=x-doc-messaging
How do you use window.postMessage across domains?

How can I set up login using Fancybox?

I am trying to open a control panel in FANCYBOX.
I have a form in my page which its action and field names are same as another website and once user submit it they will redirect to their control panel in that website in a new window.
What I want is to open it in fancybox. I do not want to user leave my page, I just want them to access to that panel inside my website.
And also I want to all links of the opened frame target be _parent. I mean if they go to different parts of their panel it shows in the same fancybox not open a new window.
You might wanna look at iframe i.e. Add class='iframe' to a link check it on this page.

Resources