Magento 2 Redirect shopping cart link on message notification in iframeUpdate qty in shopping cart bounces/redirects to main siteShare the shopping cart content between Magento multi-store websitesEditing product link on shopping cart - “Cannot configure product”Do not apply any other shopping cart price rule if a particular shopping cart rule is appliedredirect to shopping cart page customer logged in to siteShopping cart doesn not go to payment gateway, instead returns to a page “Shopping cart is Empty”Checkout Process Redirect to Shopping Cart is emptyMagento1 compilation breaks shopping cartMagento2 : Why I'm redirect to Empty Cart After Checkout?Magento 2 View cart from abandoned cart email auto redirect to cart after login
The Sword in the Stone
Why is 'n' preferred over "n" for output streams?
Assuring luggage isn't lost with short layover
When does Haskell complain about incorrect typing in functions?
Why does Canada require mandatory bilingualism in all government posts?
Is a topological space considered to be a class in set theory?
Correlation length anisotropy in the 2D Ising model
How to get CPU-G to run on 18.04
If a 2019 UA artificer has the Repeating Shot infusion on two hand crossbows, can they use two-weapon fighting?
How do I stop my characters falling in love?
Sci-fi change: Too much or Not enough
How did Mysterio have these drones?
Checking if an integer is a member of an integer list
How to judge a Ph.D. applicant that arrives "out of thin air"
Is there an antonym for "spicy" or "hot" regarding food (NOT "seasoned" but "spicy")?
Are the named pipe created by `mknod` and the FIFO created by `mkfifo` equivalent?
Am I allowed to use personal conversation as a source?
Why did House of Representatives need to condemn Trumps Tweets?
Could the rotation of a black hole cause other planets to rotate?
Word for showing a small part of something briefly to hint to its existence or beauty without fully uncovering it
Why is the number of local variables used in a Java bytecode method not the most economical?
Did the meaning of "significant" change in the 20th century?
Send a single HTML email from Thunderbird, overriding the default "plain text" setting
Why isn't there a serious attempt at creating a third mass-appeal party in the US?
Magento 2 Redirect shopping cart link on message notification in iframe
Update qty in shopping cart bounces/redirects to main siteShare the shopping cart content between Magento multi-store websitesEditing product link on shopping cart - “Cannot configure product”Do not apply any other shopping cart price rule if a particular shopping cart rule is appliedredirect to shopping cart page customer logged in to siteShopping cart doesn not go to payment gateway, instead returns to a page “Shopping cart is Empty”Checkout Process Redirect to Shopping Cart is emptyMagento1 compilation breaks shopping cartMagento2 : Why I'm redirect to Empty Cart After Checkout?Magento 2 View cart from abandoned cart email auto redirect to cart after login
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I can not redirect to the shopping cart link outside the iframe.
It still redirect but it stays in the iframe. magento 2.2.6
when i click shopping cart
result :
I want it redirect to shopping cart but not in iframe.
Can anyone help me ?
Sorry for my english.thanks!
magento2 shopping-cart magento2.2.6 redirect-url
add a comment |
I can not redirect to the shopping cart link outside the iframe.
It still redirect but it stays in the iframe. magento 2.2.6
when i click shopping cart
result :
I want it redirect to shopping cart but not in iframe.
Can anyone help me ?
Sorry for my english.thanks!
magento2 shopping-cart magento2.2.6 redirect-url
add a comment |
I can not redirect to the shopping cart link outside the iframe.
It still redirect but it stays in the iframe. magento 2.2.6
when i click shopping cart
result :
I want it redirect to shopping cart but not in iframe.
Can anyone help me ?
Sorry for my english.thanks!
magento2 shopping-cart magento2.2.6 redirect-url
I can not redirect to the shopping cart link outside the iframe.
It still redirect but it stays in the iframe. magento 2.2.6
when i click shopping cart
result :
I want it redirect to shopping cart but not in iframe.
Can anyone help me ?
Sorry for my english.thanks!
magento2 shopping-cart magento2.2.6 redirect-url
magento2 shopping-cart magento2.2.6 redirect-url
edited Nov 12 '18 at 8:42
Thành Trung Tô
asked Nov 12 '18 at 8:06
Thành Trung TôThành Trung Tô
587 bronze badges
587 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
If you can manage the iframe content, you should change the link redirection and manage the parent location with it.
The way to do it is:
window.top.location.href = "/your-url-link-redirect";
Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action
add a comment |
I had a same issue while I was working.
I checked and found that there is template file for displaying message for product is added successfully.
Message is:
You added PRODUCT_NAME to your shopping cart.
File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml
I have checked code it's as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
I have copied that file into custom theme:
app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml
Changed code as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
After that I have checked that it's working as expected.
Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f249685%2fmagento-2-redirect-shopping-cart-link-on-message-notification-in-iframe%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you can manage the iframe content, you should change the link redirection and manage the parent location with it.
The way to do it is:
window.top.location.href = "/your-url-link-redirect";
Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action
add a comment |
If you can manage the iframe content, you should change the link redirection and manage the parent location with it.
The way to do it is:
window.top.location.href = "/your-url-link-redirect";
Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action
add a comment |
If you can manage the iframe content, you should change the link redirection and manage the parent location with it.
The way to do it is:
window.top.location.href = "/your-url-link-redirect";
Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action
If you can manage the iframe content, you should change the link redirection and manage the parent location with it.
The way to do it is:
window.top.location.href = "/your-url-link-redirect";
Check: https://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action
answered Nov 12 '18 at 22:14
Ezequiel AlbaEzequiel Alba
1169 bronze badges
1169 bronze badges
add a comment |
add a comment |
I had a same issue while I was working.
I checked and found that there is template file for displaying message for product is added successfully.
Message is:
You added PRODUCT_NAME to your shopping cart.
File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml
I have checked code it's as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
I have copied that file into custom theme:
app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml
Changed code as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
After that I have checked that it's working as expected.
Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.
add a comment |
I had a same issue while I was working.
I checked and found that there is template file for displaying message for product is added successfully.
Message is:
You added PRODUCT_NAME to your shopping cart.
File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml
I have checked code it's as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
I have copied that file into custom theme:
app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml
Changed code as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
After that I have checked that it's working as expected.
Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.
add a comment |
I had a same issue while I was working.
I checked and found that there is template file for displaying message for product is added successfully.
Message is:
You added PRODUCT_NAME to your shopping cart.
File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml
I have checked code it's as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
I have copied that file into custom theme:
app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml
Changed code as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
After that I have checked that it's working as expected.
Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.
I had a same issue while I was working.
I checked and found that there is template file for displaying message for product is added successfully.
Message is:
You added PRODUCT_NAME to your shopping cart.
File: vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml
I have checked code it's as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
I have copied that file into custom theme:
app/design/frontend/VENDOR/THEME_NAME/Magento_Checkout/templates/messages/addCartSuccessMessage.phtml
Changed code as below:
<?= $block->escapeHtml(__(
'You added %1 to your <a href="%2" target="_top">shopping cart</a>.',
$block->getData('product_name'),
$block->getData('cart_url')
), ['a']);
After that I have checked that it's working as expected.
Clicking on the shopping cart link, page redirects to cart page in the browser rather then in the iframe.
answered Jul 18 at 6:24
Gopal KachaGopal Kacha
1711 silver badge11 bronze badges
1711 silver badge11 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f249685%2fmagento-2-redirect-shopping-cart-link-on-message-notification-in-iframe%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown