cyber83 Designer از کشور Romania عضو از ژوئن 2024 cyber83 16 اکتبر 2024 21:17 Is there an easy way taking out the numbers from the links? Instead of this: https://www.domain.com/catalogue/category-c-11/sub-category-c-40/sub-sub-category-c-39/ to show this: https://www.domain.com/catalogue/category/sub-category/sub-sub-category/
tim Founder از کشور Sweden عضو از مهٔ 2013 tim 17 اکتبر 2024 01:09 See the add-on [url=https://www.litecart.net/en/addons/162/permalinks]Permalinks[/url]
cyber83 Designer از کشور Romania عضو از ژوئن 2024 cyber83 18 اکتبر 2024 14:03 Ok. Ive installed this to V 2.5.5 Works ok, however The link I get is: https://www.mydomain.com/my-custom-name?category_id=20 why is the ?category_id=20 there? is there a way this can be removed or its important to have that there? as the page opens just fine like this, too: https://www.mydomain.com/my-custom-name
jackmaessen LiteCart Fan از کشور Netherlands عضو از دسامبر 2022 jackmaessen 20 اکتبر 2024 10:26 As far as i know, the [b]category_id=20[/b] in your url is needed to read the id of the category with $_GET look below: it's reading the category_id with the $_GET['category_id'] https://github.com/litecart/litecart/blob/2.6.0/public_html/includes/boxes/box_filter.inc.php#L24
dodo Moderator از کشور Lithuania عضو از مارس 2016 dodo 20 اکتبر 2024 13:40 You need to setup permalink for every category or product manually with this addon. Open category edit page and write a custom permalink in there.
tim Founder از کشور Sweden عضو از مهٔ 2013 tim 21 اکتبر 2024 00:22 @jackmaessen is right. Without category_id we can't refer back to the tree navigation. There is a topic regarding removing the category_id using the Permalinks addon. https://www.litecart.net/en/addons/162/permalinks/topics/22458/remove-category-id-from-product-url @dodo I think this is category urls he is referring to.
cyber83 Designer از کشور Romania عضو از ژوئن 2024 cyber83 21 اکتبر 2024 07:03 I see. Thank you. Since I use the Permalinks addon, and handling hundreds of pruducts, I would like to echo the permalink after each product and category, when I go to admin > catalog I will than see the permalinks under each other, noticing if there are duplications or if there are products that we missed adding a permalink. How to achieve this?
s22_tech Moderator از کشور United States عضو از اکتبر 2019 s22_tech 21 اکتبر 2024 11:21 Isn't the permalink field in the latest lc_permalinks already a unique field? If not, maybe it should be? I remember running into a duplication problem myself awhile back. Don't remember how I solved it now. : \
cyber83 Designer از کشور Romania عضو از ژوئن 2024 cyber83 21 اکتبر 2024 13:27 I cant see this in 2.6.0 - I think it still has to be installes in Vmod
tim Founder از کشور Sweden عضو از مهٔ 2013 tim 23 اکتبر 2024 06:15 @s22_tech Permalinks is an add-on. @cyber83 To echo a permalink try echo reference::product($product_id)->permalink[language::$selected['code']] where 'en' is the language code.