| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Clean urls 5.2.3 | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: Clean urls 5.2.3
I just went to try to apply this change and found out that you need to apply two changes:
1) In your database, you must change product seo-friendly URLs, so they would be without an extension 2) Then, you should decorate the parseURLProduct() method in the \XLite\Model\Repo\CleanURL class, so it would check for URLs even if URL is without extension. Please, let me know if it helps. Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
#12
|
|||||||
|
|||||||
Re: Clean urls 5.2.3
Quote:
__________________
Ver 5.2.6 |
|||||||
#13
|
|||||||||
|
|||||||||
Re: Clean urls 5.2.3
Hello Phil,
Here are the changes that will likely work for you (I haven't tested them): Code:
Minuses are the lines that you should remove. Pluses are the lines that you should add. Plus, if you have Reviews module, you should update the Repo\CleanURL class i that module.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#14
|
|||||||
|
|||||||
Re: Clean urls 5.2.3
Quote:
__________________
Ver 5.2.6 |
|||||||
#15
|
|||||||||
|
|||||||||
Re: Clean urls 5.2.3
I guess the links in the xc_clean_urls table should be without .html endings too.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#16
|
|||||||
|
|||||||
Re: Clean urls 5.2.3
Quote:
I checked that. The clean url is in the table both ways.
__________________
Ver 5.2.6 |
|||||||
#17
|
|||||||
|
|||||||
Re: Clean urls 5.2.3
I'm stumped on this. xcart is generating the links in the right format, but when you click on them you end up with a 404 error. If you add .html to the end of the url it will find the pages. Any body have any thoughts or suggestions?
__________________
Ver 5.2.6 |
|||||||
#18
|
|||||||
|
|||||||
Re: Clean urls 5.2.3
I just noticed that I can add ."anything" and it will work. It doesn't have to be .html or .htm. As long as it has . followed by any text string it will work. If this makes sense to anyone.
__________________
Ver 5.2.6 |
|||||||
#19
|
|||||||||
|
|||||||||
Re: Clean urls 5.2.3
Unfortunately, it's hard to guess what may happen.
You'll have to debug it step by step by editing files in the /var/run/ directory (so you don't have to re-deploy the store after every change). You may use \XLite\Logger::logCustom('debug', var_export(array($var1,$var2,...), true)); to save variables that you want to check into the /var/log/debug.log file - this may help you to check variables in places where var_dump() doesn't work (where its output doesn't go to the browser).
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|