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
  PHP Block IP addresses access for specific IP addresses

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

<img />

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 :

  Simple Vue JS MultiSelect Dropdown Example

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.

Leave a Reply

avatar
  Subscribe  
Notify of