Does it create a default link?

Designer
Från Turkey
Medlem sedan apr. 2019

Rubber Duck

rubber-duck

tim
Founder
Från Sweden
Medlem sedan maj 2013
tim

No, sorry. As a permalink must be unique it is not reliable to automate one based on product name.

LiteCart Fan
Från Netherlands
Medlem sedan juni 2022

Mabye a update with slugs like WP, i don't like the c-1 en p-3 etc..

tim
Founder
Från Sweden
Medlem sedan maj 2013
tim

@ferlex what is suggested here? A way to select a "URL slug" format that overrides the builtin -x-n? Knowing what you don't like, what do you like better?

LiteCart Fan
Från Poland
Medlem sedan okt. 2023

This URL
https://www.budujto.pl/pl/p/Stiuk-wenecki-Rococo-Valpaint/540

It would look like with standard Litecart settings

https://www.budujto.pl/pl/c/Dekoracje-wnetrz/Tynki-Dekoracyjne-i-strukturalne/Stiuk/Stiuk-wenecki-Rococo-Valpaint/540

The default Lite cart generates a very long path for products placed deep in the structure. URLs should be short but unique.

That's why I bought the Permalinks add-on and I'm not entirely happy with it. The add-on automatically introduces modifications, turning my beautiful URL into something that is not good for Google
By example
Original URL
https://mybudio.eu/pl/dekoracje-wnetrz-c-22/zdrowie-dekoracyjne-na-sciane-c-3/zdrowie-aksamitnej-sciany-metalico-w-zestawie-wszystkie-kolory-p-48

I wanted to change in
https://mybudio.eu/pl/c-3/zdrowie-aksamitnej-sciany-metalico-w-zestawie-wszystkie-kolory-p-48

and I receive
https://mybudio.eu/pl/c-3/zdrowie-aksamitnej-sciany-metalico-w-zestawie-wszystkie-kolory-p-48?category_id=3

But lets back to the topic...
I believe that the additional markings like "p-48" that are automatically added to the URL are not wrong.

In my case, I left the p-48 symbol in the URL because I work a lot with merchant center and Google ADS, which makes it very easy to modify and create a product feed.

It should be noted that Google forces marketers to introduce each product variant separately. Campaigns are more effective and can more accurately target customer needs.

If You run a small store and use Google ADS to a small extent, you don't really need additional unique markings for each product.

I believe that symbols on products are necessary.

tim
Founder
Från Sweden
Medlem sedan maj 2013
tim

[quote]It would look like with standard Litecart settings

https://www.budujto.pl/pl/c/Dekoracje-wnetrz/Tynki-Dekoracyjne-i-strukturalne/Stiuk/Stiuk-wenecki-Rococo-Valpaint/540[/quote]
Negative, by LiteCart 2.x standard it would be /pl/Dekoracje-wnetrz-c-11/Tynki-Dekoracyjne-i-strukturalne-c-22/Stiuk-c-33/Stiuk-wenecki-Rococo-Valpaint-p-540

I just want to sort one thing out.
-p-48 is a an identifier which can resolve a resource regardless of what is standing before it..
-my-custom-permalink have no identifier and renamed URLs can't be resolved without keeping a history of them for redirects.

Other ways to use identifiers can be on a folder level. eg. /products/48/category-name/item-name. Or how Amazon does it /item-name-or-omitted/p/48.

You can modify url_product.inc.php in the core playtform to change the way urls are generated.

LiteCart Fan
Från Poland
Medlem sedan okt. 2023

What if I kept the product and category designations.

In a live example using the Permalinks add-on with:

So, I'm changing oryginal slug
interior-decorations-c-22/decorative-effects-on-the-wall-c-3/dew-effect-desserto-in-a-set-all-colors-p-18

on:
c-22/c-3/dew-effect-desserto-in-a-set-all-colors-p-18

or simpler just:
c-3/dew-effect-desserto-in-a-set-all-colors-p-18

Will it still be possible to resolve a resource without any difficulty?

Do you expect any problems to show up later?

tim
Founder
Från Sweden
Medlem sedan maj 2013
tim

[quote]c-3/dew-effect-desserto-in-a-set-all-colors-p-18

Will it still be possible to resolve a resource without any difficulty?[/quote]
Yes, but you would need to edit the resolving as the current code would look for "-c-3" and would not match "c-3". This is not related to the add-on.

In general URLs have two purposes. One is to identify the route which is easiset using identifiers. Second is to feed search engines descriptive data. Permalinks are intended only for the latter.

Du
Denna webbplats använder inga kakor och ingen spårningsteknik från tredje part . Vi tror att vi kan göra det bättre än andra och tänker verkligen på din integritet.