All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
19 views

Magento 2: Problem with Product Links

During an Import to Update Product prices, I made a mistake. I leave the value for the Product Link empty. After the Import all Product URL change and got the value from the Product name. To face this ...
0
votes
1answer
44 views

Magento2: How to show product URL on Homepage

I have to show list of product on same category on homepage I have achieved the same using CatalogWidget but got issue with URL, It shows URL like example.net/product but I want to show URL like ...
0
votes
1answer
18 views

Storewise product url save programatically in Magento 2

I have 2 different website in my Magento. I want to store different url key for each website. How to store it programatically ?
0
votes
0answers
19 views

Use relative URL's for static content in Magento 2

Is it possible to use relative URL's in Magento 2? So change links like https://www.domain.com/my-product-title to /my-product-title. And also use relative URL's for javascript and css references?
2
votes
1answer
104 views

Product image going to the wrong URL

I have this block at the bottom of cms pages that are created by bluefoot and when you click on the image it takes you to a long URL like if it was being searched for but if you click on "add to cart" ...
1
vote
1answer
24 views

Single url for a product which is in different category in magento 2

I have a product black-jacket under the category men->tops when i click on men the url is like http://magento2/men/black-jacket.html and if i click on tops under the men then the url is http://...
1
vote
0answers
32 views

Imported products and categories system urls return 404

We are setting up import of products and categories from suppliers XMLs. The idea is to have it automatic and we have successfully imported products and automatically generated categories using this ...
0
votes
0answers
35 views

Magento2 url issue

My magento2 website in following url to be show catalog/product/view/id/9583 but i need like powder-9583.html so what step we required to achieve this. and also search engine is on on ...
0
votes
1answer
208 views

URL paths not reflecting url key from admin panel

I am trying to work out why some of my URLs are being presented like the below /catalog/product/view/id/75/s/whiskware-egg-mixer/category/15/ I have run bin/magento indexer:reindex but the URLs aren'...
0
votes
2answers
242 views

How to add product link in order email magento 2

My order mail.phtml $_item = $block->getItem(); $_order = $_item->getOrder(); <tr> <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?&...
2
votes
2answers
201 views

Magento 2 get product id from admin product edit page

I am creating a custom grid on the product edit page, for the grid collection I need to filter based on the product id, for that I am trying to get the product id from the URL using below code $this-&...
0
votes
2answers
308 views

redirect to the product url from observer or controller magento 2

i want to redirect from observer to the default magento product url from observer. public function __construct( \Magento\Framework\App\ResponseFactory $responseFactory ) { ...
0
votes
2answers
88 views

Load Custom Template file with argument as product id or sku in magento2

I have created a custom module and calling that template file from the CMS page as like below. {{block class="Vendor\Module\Block\Custom" template="Vendor_Module::custom.phtml"}} In templates/...
0
votes
0answers
140 views

Magento 2 keeps adding category path to product url in multistore

I have a little problem in Magento 2 Multistores... My URL rwewrites keeps adding category paths to products urls even when config settings "Use category path for product URLS" is set to "no".. I ...
1
vote
1answer
262 views

Products just redirect to search results page

All of my products are now redirecting to catalog search. i.e. /bonfire-firma-3-in-1-stretch-mens-snowboard-jacket-2019.html goes to /catalogsearch/result/?q=bonfire-firma-3-in-1-stretch-mens-...
0
votes
0answers
81 views

how can I change the category and url structure?

How can I change the magento 2 url structure ? For categories I would like: Bike Bike/Shoes Bike/Shoes/Mens etc.... for products I would like the product name i.e /etnies-cyprus-scw-x-32-shoes-...
0
votes
0answers
72 views

How to get Product Rewrite url in magento 2 by Query

I need Rewrites URL in Magento 2 by query. I tried below code. <?php namespace Dev\Core\Helper; use Magento\Framework\App\Helper\Context; use Magento\Framework\App\ResourceConnection; class Cart ...
0
votes
1answer
235 views

how to get ProductUrl at backend , in magento2?

I wan to get productUrl at backend side. I am trying it by productrepository. I am getting right url at custom controller. But when I'm trying it in import module's start controller I'm getting ...
1
vote
0answers
202 views

Magento 2 - product's url_key changed automatically

We are using Magento 2.2.5. Currently in Magento store we managing url key by concatenating product's name with the brand's name. So many times in some products url key of product's changed from only ...
0
votes
0answers
88 views

Products getUrlInStore() always uses base url

Maybe i got it wrong, but imho getUrlInStore() should return the store URL with configured base URL. I want to link from admin product edit page to frontend product page ... Example: Test product: ...
0
votes
1answer
37 views

Show message for disable product : M2

Is there any way to show any message for disable product at product details page? When i search product name in google, it gives product URL in search result. When product is disable at that time it ...
0
votes
1answer
195 views

How to use unicode characters in Products url in magneto2

I need to use the arabic letters in the magento2 product url.. I had researched more.. still i had no answer. I am using magento 2.2.6 version Anyone know please help me to this requirement. Thanks ...
1
vote
0answers
170 views

Issue with Magento 2 generated sitemap.xml

I'm using Magento's built in sitemap generation tool and have it set to generated nightly. The issue I'm facing with it is that the urls in the sitemap do not match the ones found on the site. To ...
0
votes
1answer
68 views

How to add Add frontend product url column to admin product grid in magento2

I'm trying to add a column on the product grid with the product frontend url.. I had added the grid by the below codes, etc/adminhtml/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
1answer
627 views

Export Product Sku and Product_Url in magento2

Can we export product with sku and url into csv in magento2? Is there any query to get it quickly? I am looking for query to get all sku and its url key or full product_url. Please anyone help me. ...
4
votes
2answers
929 views

Magento 2| Url regeneration for catalog

I have tried to regenerate urls for categories and products after migration from Magento 1.9.x to Magento 2.2.x through following modules: Url Regenerator 1 Url Regenerator 2 These 2 generates the ...
0
votes
1answer
102 views

How to regenerate products URLs with diacritics properly

I need regenerate urls for all products (about 3000). Befere my regeneration urls are like https://my-shop.example.com/product/view/id/xxx/s/name-of-product. I need my products urls will be like https:...
3
votes
2answers
3k views

URL Key not changing in Magento 2

I am using Magento 2.2.4, I am having too many Disabled/OutofStock products which are useless. Now the problem I am simply replacing all Disabled/OutofStock products with New Products. I can ...
1
vote
0answers
144 views

Incorrect Backend Url from getUrl() method

I am trying to write link to Payment Transaction to Oder's comment. But it seems UrlBuilder generates incorrect security key for the link. Link from transaction page: backend/sales/transactions/...
0
votes
2answers
2k views

Magento2: Remove Category path from product URL is not working

I have a Magento2 store. I don't want to add the category path into products URLs for that I set “Use Categories Path for Product URLs” as "NO" in magento2 Admin, but It still add the category path to ...
1
vote
0answers
35 views

SQL Query - is this Query safe to run for my Magento 2 store

I want to change all my downloadable product from link_file to url_file, so I created a query for that. Can I get advice if this query is safe for me to run. UPDATE downloadable_link SET link_url = ...
1
vote
1answer
3k views

Magento 2 : Product URL rewrite issue

I have a Magento 2.1.10 store. I have imported all the products and categories. Now the product url is http://www.exaple.com/samplecategory/sampleproduct.html But I want the URL as http://www....
0
votes
1answer
162 views

Magento 2.2.2 multillanguage url rewrite

using Magento 2.2.2, I have a store with two views English and French, I want to make urls looks like domain.com/en/product1 domain.com/fr/category1 ... thanks
0
votes
1answer
497 views

How to export product url in Magento2

I have exported my products from the admin panel of the magento, but there is no product url. Is it possible to export every product url??
4
votes
1answer
465 views

Modify dynamically created product url in magento 2

I have enabled "Use Categories Path for Product URLs". Because of this, I get category path in product url. But when we search the product, it redirect to the product url that does not contain ...
1
vote
0answers
20 views

Turn system URLs into canonical URLs

I've inherited a site that was M1 and using system URLs. I have migrated the product data over to an M2 installation. Is there a way now to convert those system URLs to canonical URLs?
0
votes
1answer
896 views

Add a static URL prefix for product and category Magento 2

I need to specify a prefix static string for all URLs of my Products and Categories. Just like Wordpress Woocommerce permalinks. For example all of Categories should have product-category prefix in ...
5
votes
1answer
1k views

Magento 2: Setting the product url key with REST API

Is it possible? I see no mention of a url_key in the Swagger docs. I have a large database of product I need to import, and the names (which seem to determine the url) are not unique.
0
votes
2answers
2k views

Magento 2 .html.html issue after update from Configuration > Catalog

I am trying to remove the .html.html from Products and Categories url. I have gone procedure with the below steps after some research on this issue. Stap 1. SELECT * FROM `url_rewrite` WHERE `...
3
votes
6answers
12k views

Magento 2 is generating the product url with catalog/product/view/id instead of product name

We are having a strange problem in our Magento 2 webshop. Our webshop has different ways of generating the product url. So some of our products just show the product url as it should be /name-of-the-...
11
votes
1answer
19k views

Magento 2 How can we get product url with product collection?

I am able to load product collection by using [$objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection')] in my phtml file.But in that collection product url is not there ...
2
votes
0answers
958 views

M2: Is `url_path` used for anything?

I'm working with a catalog in M2 that has been somehow migrated (don't know how). It has url_path migrated and has the form of url_key + html. This is causing the URL rewrites to create URLs that end ...
2
votes
3answers
10k views

Magento2 product url displaying with category and product id

Product urls are displaying with category and product id Now url is displaying like below http://localhost/magento2/catalog/product/view/id/1234/category/12/ But i want http://localhost/magento2/...
4
votes
1answer
690 views

Magento 2.1 Product url shows two times suffix

My store product url shows two times .html as suffix like below http://localhost/m2migration/canape-chesterfield-assise-capitonnee-cuir.html.html This issue arised after ubertheme migration. Can you ...
1
vote
2answers
486 views

Product url's ends with html.html

I have migrated all my products from Magento 1.9 to 2.0. All the products url's are ending with .html like html.html sample link: http://www/domain.com/condenser-microphone.html.html