ahmedjehanzaib Posted June 27, 2020 Share Posted June 27, 2020 Url is looking like this : /bela-adventure-motorcycle-gloves-black-red.html#/40-alpha_size-s_size Even i set the Route to products in seo & urls to: {category:/}{rewrite}.html but still i am seeing the above url. Can anybody help me on it. thanks Link to comment Share on other sites More sharing options...
Razi Posted June 29, 2020 Share Posted June 29, 2020 its not possible to remove # using any settings, for this you need to make changes in product.js file Link to comment Share on other sites More sharing options...
ahmedjehanzaib Posted June 29, 2020 Author Share Posted June 29, 2020 @Razi Can you please guide me the exact location of the product.js file. Because i am seeing two product.js file. thanks Link to comment Share on other sites More sharing options...
Razi Posted June 30, 2020 Share Posted June 30, 2020 If you have Prestashop 1.7 then try this 1: create a new file in /override/classes/Link.php 2: copy the method getProductLink() from original /classes/Link.php and past in override 3: find the line $anchor = $ipa ? $product->getAnchor((int) $ipa, (bool) $addAnchor) : ''; and change this to $anchor = ''; 4: clear cache and test its fix the issue of # but make sure its not show the attibute name at the end of url 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