Post by fido-x » Fri Jan 23, 2009 4:26 pm

Got this error on the sitemap --
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in catalog/template/default/content/sitemap.tpl on line 18

Suggest changing line 18 from --

Code: Select all

$style='list-style-type: '.$bullet.'; margin-left: '.$margin'.'px;';
to

Code: Select all

$style='list-style-type: '.$bullet.'; margin-left: '.$margin.'px;';
Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by hm2k » Fri Jan 23, 2009 7:33 pm

Fixed in r372.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by fido-x » Sat Jan 24, 2009 1:42 pm

While the fix in r372 resolves the T_CONSTANT_ENCAPSED_STRING error, there is another "bug" that has been introduced as a result of the changes in the sitemap.tpl file -- subcategories are not being indented. Suggest changing it back to how it was in RC6 and earlier.

Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by hm2k » Sat Jan 24, 2009 7:21 pm

Yes they are being indented.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by fido-x » Sun Jan 25, 2009 11:54 am

Sorry, my mistake.

However, subcategories are no longer appearing under the correct parent category due to a change you made to "catalog/controller/sitemap.php". Suggest changing the category query (line 33) from --

Code: Select all

$results = $database->getRows("select c.category_id, cd.name, c.parent_id, c.path, c.sort_order from category c left join category_description cd on (c.category_id = cd.category_id) where cd.language_id = '".(int)$language->getId()."' order by c.sort_order, cd.name");
to --

Code: Select all

$results = $database->getRows("select c.category_id, cd.name, c.parent_id, c.path from category c left join category_description cd on (c.category_id = cd.category_id) where cd.language_id = '" . (int)$language->getId() . "' order by c.path, c.sort_order, cd.name");
Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK
Who is online

Users browsing this forum: No registered users and 20 guests