Posted inProgramming / Magento / php

How to Open URL in New Tab using Magento

How to Open URL in New Tab using Magento

Today, We want to share with you How to Open URL in New Tab using Magento.
In this post we will show you magento redirect with parameters, hear for magento redirect url in phtml we will give you demo and example for implement.In this post, we will learn about Magento Controllers in redirect with an example.

My Paka Knowledgeable Ideas, Tips and Tricks, Useful Content, Jobs, Technology, Earn Money, gmail creation, skype, yahoo and more useful things.

In Magento, Open new window when target=”_blank”
About Pakainfo.com

Magento Overview with Features

There are the Following the List of Features For Magento Pure PHP Latest Frameworks for Magento Product page open in new tab Target Blank.

  • Customer groups
  • Free shipping options
  • Landing page for categories
  • Minimum Advertised Price (MAP)
  • Multi-tier pricing for quantity discounts
  • New items promotional tool
  • Newsletter management
  • Persistent shopping cart
  • Polls
  • Product bundles
  • Recently viewed
  • Send wish lists by email
  • compared products

Magento redirect to a new tab

//custom theme
app/design/frontend/{your_namespace}/{your_theme_name}/template/catalog/product/list.phtml

//find the line
<a href="getProductUrl() ?>" title="stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">

//changes custom
<a target="_blank" href="getProductUrl() ?>" title="stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">

Magento Redirects

Create URL redirect in Magento backend

1-> first of all Go to The Catalog > URL Rewrite Management

2-> Click Add URL Rewrite.

3-> Create URL rewrite for any products, any type of the categories, and more custom URLs here select dropdown list

4-> and Last URL Rewrite Information field will display up for We to simple fill in.

Magento Redirecting To External Domains


Magento Controllers To Redirecting into External URLs

_redirect($path)

//insted of
//magento 2 redirect

_redirectUrl($url)

jQuery 15 Powerful Tips and Tricks for Developers and Web Designer

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about magento 2 redirect from observer.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I'm a full-stack developer, entrepreneur and owner of Pakainfo.com. I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.

Leave a Reply

Your email address will not be published. Required fields are marked *

We accept paid guest Posting on our Site : Guest Post Chat with Us On Skype