CMS MADE SIMPLE FORGE

Shop Made Simple

 

[#4081] Url rewriting misinterpreted problems parameters module

avatar
Created By: hervé (eric78)
Date Submitted: Wed Sep 23 09:55:50 -0400 2009

Assigned To: Duketown (duketown)
Version: Version 0.2.5
CMSMS Version: None
Severity: Major
Resolution: Fixed
State: Closed
Summary:
Url rewriting misinterpreted problems parameters module
Detailed Description:
the url rewriting is is misinterpreted, so I disabled the url rewriting only.

around line 49, after :
$prettyurl .= '/d,' ....

put in comment :
$onerow->name = $this->CreateLink($id, 'fe_product_list',
$detailpage!=''?$detailpage:$returnid,     $category['name'], $sendtodetail,'',
false, false, '', true, $prettyurl);

and replace by :
$onerow->name =
$this->CreateLink($id,'fe_product_list',($detailpage!='')?$detailpage:$returnid,$category['name'],array('category_id'=>$category['category_id']));

it's just an alternative for use shopMadeSimple for this moment.


History

Comments
avatar
Date: 2010-08-18 04:36
Posted By: Sjoerd krijtenburg (sjoerd_dgw)

Make this changes to use Shop Made Simple with pretty urls. (tested under 1.8.1
MLE)

action.fe_product_list.php

around line 153:

replace:

$prettyurl =
'ShopMadeSimple/'.$row['product_id'].'/'.($detailpage!=''?$detailpage:$returnid);

with:

$prettyurl =
'ShopMadeSimple/prod/'.$row['product_id'].'/'.($detailpage!=''?$detailpage:$returnid);


action.fe_category_list.php

around  line 49:

replace:

$prettyurl =
'ShopMadeSimple/'.$category['category_id'].'/'.($detailpage!=''?$detailpage:$returnid);

with:

$prettyurl =
'ShopMadeSimple/cat/'.$category['category_id'].'/'.($detailpage!=''?$detailpage:$returnid);


ShopMadeSimple.module.php

around  line 63:

replace:

$this->RegisterRoute('/[sS]hop[mM]ade[sS]imple\/(?P<category_id>[0-9]+)\/(?P<returnid>[0-9]+)$/',
array('action'=>'fe_product_list'));

with:

$this->RegisterRoute('/[sS]hop[mM]ade[sS]imple\/cat\/(?P<category_id>[0-9]+)\/(?P<returnid>[0-9]+)$/',
array('action'=>'fe_product_list'));


around line 64:

replace:

$this->RegisterRoute('/[sS]hop[mM]ade[sS]imple\/(?P<product_id>[0-9]+)\/(?P<returnid>[0-9]+)$/',
array('action'=>'fe_product_detail'));

with:

$this->RegisterRoute('/[sS]hop[mM]ade[sS]imple\/prod\/(?P<product_id>[0-9]+)\/(?P<returnid>[0-9]+)$/',
array('action'=>'fe_product_detail'));


      
avatar
Date: 2010-09-09 18:51
Posted By: Duketown  (duketown)

Has been changed in version 0.2.8
      
Updates

Updated: 2010-09-09 18:51
resolution_id: => 7
state: Open => Closed