Article URL also with article code (instead of label only)
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Article URL also with article code (instead of label only)
Hi,
article URLs are derived from the article name (label).
This works well and we don't want to change it
There are some business cases where we need to change the product label (marketing etc.) but the product code (SKU) remains the same
-> This causes problems with printed URLs such as QR codes.
Consideration / question:
Redirect from article code to the correct article URL
Does aimeos already have this or a similar feature?
How would you recommend implementing it?
Thank you!
article URLs are derived from the article name (label).
- Article label: 'Top Product A'
- Article code: 1234
This works well and we don't want to change it
There are some business cases where we need to change the product label (marketing etc.) but the product code (SKU) remains the same
- Article label: 'NEW Product Z'
- Article code: 1234
-> This causes problems with printed URLs such as QR codes.
Consideration / question:
Redirect from article code to the correct article URL
- generate QR code from the article code, eg. shop.com/code/1234
- scan QR code
- redirect to: shop.com/new-product-z
Does aimeos already have this or a similar feature?
How would you recommend implementing it?
Thank you!
Re: Article URL also with article code (instead of label only)
This is one possible option but it doesn't exists in Aimeos yet you have have to build it on your own.
Another option would be to use the product ID in the URL by removing "d_prodid" from the "client/html/catalog/detail/url/filter" option:
https://github.com/aimeos/aimeos-larave ... t.php#L159
The later one only works for new QR codes which contains the product ID because the product ID has a higher precedence than the URL segment. From the SEO point of view adding the product ID to the URL will create new URLs for Google, so the existing ranking for product detail pages would be lost.
Another option would be to use the product ID in the URL by removing "d_prodid" from the "client/html/catalog/detail/url/filter" option:
https://github.com/aimeos/aimeos-larave ... t.php#L159
The later one only works for new QR codes which contains the product ID because the product ID has a higher precedence than the URL segment. From the SEO point of view adding the product ID to the URL will create new URLs for Google, so the existing ranking for product detail pages would be lost.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Article URL also with article code (instead of label only)
Is it possible to change d_prodid to prodcode? (prodcode would be our SKU and more meaningful)
= = =
If we have to build a solution: What's your recommendation?
Which aimeos manager is the best to extend?
Or using the Laravel function (new route entry, controller with lookup path in mshop_product table)?
Thank you!
= = =
If we have to build a solution: What's your recommendation?
Which aimeos manager is the best to extend?
Or using the Laravel function (new route entry, controller with lookup path in mshop_product table)?
Thank you!
Re: Article URL also with article code (instead of label only)
No, only the product ID.
Since it's a totally new endpoint, an own Laravel controller for that is best. You can use the Aimeos product manager in the controller to get the product:
https://aimeos.org/docs/latest/laravel/ ... os-objects
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star