Use:
changes urls like:
http://yourdomain.com/index.php?view=pr ... oduct_id=2
to:
http://yourdomain.com/shop/product/2/
Install:
Download attachement and unzip.
*For version 0.6
copy all contents to your opencart root directory. backups are included so unless you made mods to opencart you can overwrite existing files.
url alias still works as well as sending request via old format: index.php?var=value
I chose the format above rather than http://yourdomain.com/shop/this-is-a-product-name/ because it's faster, less load on sites w/ a lot of links, and you don't have to deal with special characters (&-_/@#, you get the point) in urls.
Extra variables are passed in the query string. So the site's not fully friendly. Since i didn't write the software i don't know which pages use which variables in the url.
-steve.
Attachments
Last edited by chomp on Thu May 31, 2007 7:47 am, edited 1 time in total.
Hello,
the hack sounds very nice, but when I downloaded it and renamed to .zip it shows: "corrupted archive".
Can you upload it once again?
Prospector
the hack sounds very nice, but when I downloaded it and renamed to .zip it shows: "corrupted archive".
Can you upload it once again?
Prospector
Can you modify it to use descriptive terms rather than /Product2/ or /category2/ etc, keywords in the URLS are such a huge SEO advantage that regardless of the load placed on the database, its well worth it. Of course this can manually be achieved using the URL aliases, but for each product you have to modify the URL twice (once for the product URL and once for the category link to the product URL)chomp wrote: url alias still works as well as sending request via old format: index.php?var=value
I chose the format above rather than http://yourdomain.com/shop/this-is-a-product-name/ because it's faster, less load on sites w/ a lot of links, and you don't have to deal with special characters (&-_/@#, you get the point) in urls.
An automated keyword laced SEF URL would be a huge benefit to OpenCart.
I've only just started to play with the script but intially i'm very, very impressed.
not really. that is the correct way, but this was just a quick fix.
if you want to use verbose vars, you'll need to modify the code to create auto aliases. the idea here is this, when someone saves a product or page, you take the product name or page title and prepare it by removing special chars and replacing spaces with dashes, then save it to the alias table.
if you want to use verbose vars, you'll need to modify the code to create auto aliases. the idea here is this, when someone saves a product or page, you take the product name or page title and prepare it by removing special chars and replacing spaces with dashes, then save it to the alias table.
Who is online
Users browsing this forum: No registered users and 1 guest