Hello everyone
Could you please let me know how change this url from :
https://example.com/index.php?route=pro ... ch&search=
to
https://example.com/search
(/search) works good direct in browser bar, but always after use search box in site going to /index.php?route=product/search&search=
Regards
Could you please let me know how change this url from :
https://example.com/index.php?route=pro ... ch&search=
to
https://example.com/search
(/search) works good direct in browser bar, but always after use search box in site going to /index.php?route=product/search&search=
Regards
What about this?
https://www.opencart.com/index.php?rout ... n_id=24846
https://www.opencart.com/index.php?rout ... n_id=24846
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Legendary Member
I edit common.js as he explained to fix search & cart remove problem but no availpaulfeakins wrote: ↑Thu Jun 07, 2018 5:38 pmWhat about this?
https://www.opencart.com/index.php?rout ... n_id=24846
https://example.com/index.php?route=pro ... ch&search=
to https://example.com/search&search=
not working
and auto refresh for remove cart also not working
Please help ;(
thank you advance
If you can't get that other extension working, Rewrite Manager can do this. It will change all redirects to the rewritten version you enter, including both the page URL and URLs generated by OpenCart (e.g. for links in the header or footer). Note that search pages do still use a URL parameter, so the URL will end up looking like this for search pages:
www.yourdomain.com/search?search=macbook
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
www.yourdomain.com/search?search=macbook
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
I fixed all the links to pages which contains ( index.php?route=) and also "search" yesterday after more than a week of failed after editing some files, now works as you said ( search?search= )Johnathan wrote: ↑Fri Jun 08, 2018 9:23 pmIf you can't get that other extension working, Rewrite Manager can do this. It will change all redirects to the rewritten version you enter, including both the page URL and URLs generated by OpenCart (e.g. for links in the header or footer). Note that search pages do still use a URL parameter, so the URL will end up looking like this for search pages:
www.yourdomain.com/search?search=macbook
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
now the only problem still I've (auto refresh for remove cart also not working) and also in Rewrite Manager demo not working
http://demo.getclearthinking.com/cart when click on remove, the item removed but without refresh page to empty page (Your shopping cart is empty!)
I hope can get assistance in this forum anyway thanks Jonathan & everyone
Thanks for pointing that out. I took a look and this is due to some hard-coded checks on the "route" variable in the URL. Because that's missing, the redirect doesn't happen, so the page doesn't refresh.
I fixed it on my demo with this edit:
You'd replace '/cart' and '/checkout' in that edit with whatever your rewritten URL values are. I'll add instructions on this in the next update of Rewrite Manager as well, so others know how to do this.
Hope that helps.
I fixed it on my demo with this edit:
Code: Select all
IN:
/catalog/view/javascript/common.js
REPLACE ALL INSTANCES OF:
if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') {
WITH:
if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout' || location.href.indexOf('/cart') != -1 || location.href.indexOf('/checkout') != -1) {
You'd replace '/cart' and '/checkout' in that edit with whatever your rewritten URL values are. I'll add instructions on this in the next update of Rewrite Manager as well, so others know how to do this.
Hope that helps.
Johnathan wrote: ↑Sat Jun 09, 2018 11:55 pmThanks for pointing that out. I took a look and this is due to some hard-coded checks on the "route" variable in the URL. Because that's missing, the redirect doesn't happen, so the page doesn't refresh.
I fixed it on my demo with this edit:
Code: Select all
IN: /catalog/view/javascript/common.js REPLACE ALL INSTANCES OF: if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') { WITH: if (getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout' || location.href.indexOf('/cart') != -1 || location.href.indexOf('/checkout') != -1) {
You'd replace '/cart' and '/checkout' in that edit with whatever your rewritten URL values are. I'll add instructions on this in the next update of Rewrite Manager as well, so others know how to do this.
Hope that helps.
There is no solution to the problem with most seo urls extensions in opencart marketplace, I'm sure you're the first one solved this problem you're legendary
Thank you so much for your help
Best Wishes
Who is online
Users browsing this forum: No registered users and 12 guests