Edge_jr Posted December 23, 2020 Share Posted December 23, 2020 Hi, I want to know how to hide product attributes values in the URL For example URL with product attributes values => https://www.mydomain.com/men/1-1-hummingbird-printed-t-shirt.html#/1-size-s/8-color-white New URL => https://www.mydomain.com/men/1-1-hummingbird-printed-t-shirt.html Please help and advise. Link to comment Share on other sites More sharing options...
Zohaib-fk Posted December 23, 2020 Share Posted December 23, 2020 You need to search keyword name "getAnchor" in file location /ps7rootfolder/classes/Link.php Update code like below, need to comment $anchor variable. //$anchor = $ipa ? $product->getAnchor((int) $ipa, (bool) $addAnchor) : ''; $anchor = ''; The working example can be seen at the URL => https://www.hrms-systems.com/presta-addons/en/ Link to comment Share on other sites More sharing options...
juanrojas Posted December 25, 2020 Share Posted December 25, 2020 Hello, This module will help with what you need Link to comment Share on other sites More sharing options...
PetersWindsurfing Posted December 29, 2020 Share Posted December 29, 2020 On 12/23/2020 at 3:39 PM, edge82 said: Hi, I want to know how to hide product attributes values in the URL For example URL with product attributes values => https://www.mydomain.com/men/1-1-hummingbird-printed-t-shirt.html#/1-size-s/8-color-white New URL => https://www.mydomain.com/men/1-1-hummingbird-printed-t-shirt.html Please help and advise. Hi, has you find a solution? i have the same problem. Link to comment Share on other sites More sharing options...
Edge_jr Posted December 29, 2020 Author Share Posted December 29, 2020 On 12/23/2020 at 11:55 PM, Zohaib-fk said: You need to search keyword name "getAnchor" in file location /ps7rootfolder/classes/Link.php Update code like below, need to comment $anchor variable. //$anchor = $ipa ? $product->getAnchor((int) $ipa, (bool) $addAnchor) : ''; $anchor = ''; The working example can be seen at the URL => https://www.hrms-systems.com/presta-addons/en/ Many thanks for the support. The problem is solved on ps 1.7 Link to comment Share on other sites More sharing options...
PetersWindsurfing Posted December 30, 2020 Share Posted December 30, 2020 Thank you for you anwer. I have 1.7 and I have the problem. Must I update my link.php in the folder classes? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now