The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [product-urls]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
1answer
20k 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 ...
6
votes
2answers
8k views

Category Paths in Product URLS - Yes or No?

I've heard some conflicting opinions on whether having category paths in your product URLS is a good idea. An SEO guide I'm currently using suggests that Magento doesn’t support this functionality ...
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.
5
votes
1answer
461 views

Product url displaying category-ID and product-ID

Few Product urls are displaying with category and product id but few products are working fine. I want to keep all URL like: http://localhost/magento2/test-product not like below http://localhost/...
5
votes
1answer
484 views

SEO Product URLs Not Showing in Anchor Categories on Store View

I have a lot of categories that are set as anchors for its subcategories. It seems to me that this is easier on the database, rather than having so many rows to crawl through. However, on one of my ...
4
votes
1answer
1k views

Determining product ID from URL in magento

Here is a sample url from my company's Magento site (and we're obviously using stores in the URL hence the smi000.. code) http://shop.mystore.com/smi130495/catalog/product/view/id/35830/s/men-s-...
4
votes
1answer
1k views

Magento 1.9.1. CE : Disabling core_url_rewrite

I'm looking for an effective solution to disable completely core_url_rewrite table. I've disabled the Url Rewriting on the backend, but each time i add or update a product, an url_key is written to ...
4
votes
2answers
945 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 ...
4
votes
1answer
468 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 ...
4
votes
1answer
693 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 ...
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 ...
3
votes
1answer
2k views

Magento product->getUrlPath() returning empty

I'm debugging a customers environment, so don't have all the details at place, sorry about that. My problem is that apparently the call to product->getUrlPath() returns empty. Any idea what might ...
3
votes
1answer
3k views

Manufacturer in product url key

I am trying to have all product url keys automatically generated this way: site.com/manufacturer-productname-sku.html I managed to add the SKU adding to the file /app/code/local/Mage/Catalog/Model/...
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-...
3
votes
1answer
683 views

List Product URLs in Magento Enterprise

I try to compile a list of all product URLs for a given store. Given $productCollection prepared with store, status and visibility filter, this is how it works in Magento CE: $catalogUrl = Mage::...
3
votes
3answers
288 views

Anyone know of a tested script to regenerate url-keys?

I have a client with a pre-existing Magento site in production mode. When the site was created the client was not informed of the importance of the url keys attribute in that he had to make it SEO-...
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/...
2
votes
1answer
2k views

get product url for a different store

given a product page, i need to retrieve the product url for another store. I'm trying this solution: Mage::getUrl('', array( '_current' => true, '_use_rewrite' => true, ...
2
votes
1answer
2k views

Magento Product URLs are not preserving URL parameters

EDIT: This seems to have been caused by my CREARESEO extension. I had to uninstall to find that out since disabling the extension fooled me into thinking it was something else. I am working on ...
2
votes
1answer
115 views

Product URL Key still existing

I change the URL Key of one of my product in my magento store when I try to access the old one, I can still access it. How can I delete the duplicate one? Thanks! example: http://mymagentostore/old-...
2
votes
1answer
604 views

Why the Campaign Tracking Parameters isn't working on Product Pages?

I have a situation where I send out email campaigns which link back to products. The link code is in the format: ?utm_campaign=EnewsNov&utm_medium=email&utm_source=HouseList&utm_term=...
2
votes
1answer
520 views

URL Rewrites in 1.14 (EE) Don't Seem to be Created or Acted Upon for All Products

On my site, during the development process, products were created and imported using a variety of processes. Now I find that the URL rewrites are not uniform and don't seem to work in all cases. Some ...
2
votes
1answer
1k views

Configurable product with different URLS for simple

If I sell a t-shirt which has 2 colours, normally I would have 1 URL for the configurable product as the 2 simple products would be set to have a visibility of hidden. However I would quite like to ...
2
votes
2answers
641 views

Remove subcategory name in URL

I have products in three subcategories parent category: my-products: subcategory-1 subcategory-2 subcategory-3 Now the URLs are like: http://hostname/my-products/subcategory-1/product-name How ...
2
votes
1answer
105 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" ...
2
votes
2answers
208 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-&...
2
votes
0answers
106 views

How to add a custom attribute value to product url in Magento 2

I am using Magento ver. 2.2.3 . I need to add a custom attribute's (brand) value to the product url, like : http://domain.com/smeg/smeg-cooker-90cm-with-gas-hob-cream.html For that i have overridden ...
2
votes
3answers
3k views

Magento 2 Get Product Url For Specific Store

I have multi stores enabled in my Magento instance. I am trying to get product url for each store as I need to index data in Elasticsearch. What I have tried but not getting the result with store ...
2
votes
0answers
963 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
1answer
316 views

Add product sku in URL

How can I dynamically change the url of a product? Now I got this url www.domain.com/product-name.html I need to add SKU, to my url like this: www.domain.com/product-name-SKU.html
2
votes
1answer
931 views

Reset URL Keys for all products to “Use Default” for all store views

I've got 2 store views, recently I noticed that for some reason (either by design or by a bug) that each product has a unique URL KEY for both store views. It is setup in the following way: Default ...
2
votes
1answer
566 views

Remove second level category from product url

I need to display only first level category inside product url. If visitors browse and click product inside categorylevel1/categorylevel2.html, I need to show domain.com/categorylevel1/product.html ...
2
votes
2answers
633 views

Scope problems with SOAP API and product url_key attribute

I have a EE 1.14 website whose product data we are updating with the SOAP API. I have come across an interesting problem related to 1.14 url keys and using SOAP. In 1.14 the url_key attribute must be ...
1
vote
2answers
506 views

multi-store/language links

I have a store with both English and German views The tree structure has both language versions, so I have manually changed Product to equal Produkte in the category section for example. My problem ...
1
vote
2answers
2k views

301 Redirect Not Working. URL syntax bad for the .htaccess file? [closed]

I'm trying to redirect a few URLs. Other URLs work fine, but this group of URLs do not. Does anyone know what the issue is? I've tried to redirect through Magento and through the .htaccess. This is ...
1
vote
3answers
4k views

How can I get product urls of each store view?

I have 2 store view: www.example.com (EN Store) www.example.it (IT Store) and I have 2 different urls that point at the same products: www.example.com/car-honda-civic.html (<--- I want obtain ...
1
vote
2answers
10k views

How can I get the correct product url based on store view?

I have 2 store view: www.example.com (EN Store) www.example.it (IT Store) and I have 2 different urls that point at the same products: www.example.com/car-honda-civic.html (<--- I want obtain ...
1
vote
1answer
1k views

Product url key sporadically being set to blank

I am noticing that every so often, maybe once week a couple dozen products will lose their url key. I haven't had much time to look into it but my guess is it's after some type of indexing. Can anyone ...
1
vote
1answer
636 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. ...
1
vote
2answers
1k views

change the over all product url

I have a big doubt in forming url for products. Currently url is formed by using the name attribute. I want to change this to sku_id(attribute) of the products. For this where i need to change?
1
vote
1answer
1k views

Get SEO friendly product url in Magento [duplicate]

I have a template file that 'gets' the product url so that I can produce a link to the product. However, the url called is not the SEO friendly version. Can anyone suggest an edit to the code below so ...
1
vote
1answer
1k views

Friendly product url

I have made the following changes: 1) System > Configuration > Web > “Use Web Server Rewrites” to Yes 2) System > Configuration > Catalog > “Use Categories Path for Product URLs” to YES 3) System >...
1
vote
1answer
693 views

The buy now button goes directly to the cart and it should go to the product page first

I don't have a whole lot of information on why this is happening and so this is going to be a fairly straight forward question. I have 8 products and they all direct to the product page except one. ...
1
vote
1answer
72 views

How to completely remove Magento Product URL re writes

I have imported in a large number products into a store that is not live (Magento CE:1.9) but now need to correct their URLS. Ideally I want to correct the correct URLS via an CSV import (system > ...
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
1answer
44 views

Rewrite product page URLs based on that product assigned attribute URLs in Magento 2.3

I want to achieve product URLs based on product attribute for product page only. I have product attribute manufacturer, having drop downs such as lg, samsung, motorola etc. My store category ...
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....
1
vote
2answers
547 views

How to get the public product url for simple products (not visible individually)

I am getting the 404 error every time I am trying to get the correct URL for a product. I want to go to the specific url for that product, is there a specific magento solution to do this? I tried with ...
1
vote
1answer
786 views

Canonical Product URL with category path not showing

My webshop is not displaying the canonical product url's with the category path. I have "Use category path for Product URL's" enabled in the backend but it doesn't seem to work. Would anybody have ...
1
vote
2answers
110 views

How to get the URL for the B2C website/storeview from a B2B website/storeview/product-page

In one magento installation I have multiple websites, stores and storeviews. Storeviews are used for internationalisation (i.e. NL, DE, EN etc) Most of our productranges are available in one, ...