DaveBr Posted December 20, 2013 Share Posted December 20, 2013 (edited) Hopefully someone can assist with this. Friendly urls are turned on and all appear to work as they should, except for that for the Manufacturer which returns a 404 error. Also, this is specific to the Manufacturer link on product pages. Links from a scroller which appears on all pages work ok. On product pages when the link is hovered over the url contains no data after the basic shop url and looks like this. http://domainname.co.uk/shop/en/_ In SEO & URLs, the route to manufacturer is setup as {id}_{rewrite} Presumably there's a simple reason it's failing to pickup the ID & rewrite it, but I'm struggling to work out why, when all the others are OK. htaccess has been regenerated, caches cleared etc. Edit: This is v1.5.4.0 Edited January 2, 2014 by vekia (see edit history) Link to comment Share on other sites More sharing options...
Sharak Posted December 26, 2013 Share Posted December 26, 2013 URL of your shop would be helpful. What did you change in manufacturer page? Link to comment Share on other sites More sharing options...
vekia Posted December 26, 2013 Share Posted December 26, 2013 In SEO & URLs, the route to manufacturer is setup as {id}_{rewrite} have you got any other similar pattern to this {id}_{rewrite} ? Link to comment Share on other sites More sharing options...
DaveBr Posted January 2, 2014 Author Share Posted January 2, 2014 Hi. Yes, both Route to Category & Route to Supplier both also use {id}_{rewrite} and seem to be working normally. Sharak, I sent a message with the URL. Thanks. Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2014 Share Posted January 2, 2014 they haven't got the same pattern {id}_{rewrite} http://robertsonsofpitlochry.co.uk/shop/en/7_an-cnoc-knockdhu {id}-{rewrite} http://robertsonsofpitlochry.co.uk/shop/en/7-whisky it works well Link to comment Share on other sites More sharing options...
DaveBr Posted January 2, 2014 Author Share Posted January 2, 2014 That's strange. Can you try here? http://robertsonsofpitlochry.co.uk/shop/en/whisky/10-aberlour-12-year-old.html Where it says Availability: Distiller/Brewer Aberlour these links on product pages give me a 404 error. Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2014 Share Posted January 2, 2014 ohh now i understand the matter of problem. you've got problem with link, not with pattern. can you show contents of your product.tpl file? especially part where manufacturer link appears Link to comment Share on other sites More sharing options...
DaveBr Posted January 2, 2014 Author Share Posted January 2, 2014 I'm not sure how to a attach a file, but here's the only lines I can see in the product.tpl which relates to manufactures. {if isset($product->manufacturer_name) && $product->manufacturer_name != ""} <p class="product-manufacturer"> <span class="value_name">{l s='Manufacturer:'}</span> <a href="{$link->getManufacturerLink($product->manufacturer_name)}">{$product->manufacturer_name}</a> </p> {/if} Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2014 Share Posted January 2, 2014 it's because you have to use manufacturer id instead of manufacturer name try with this, instead of: {$link->getManufacturerLink($product->manufacturer_name)} use {$link->getManufacturerLink($product->id_manufacturer)} Link to comment Share on other sites More sharing options...
Sharak Posted January 2, 2014 Share Posted January 2, 2014 Code shows you don't have rewrite implemented in this link. Check manufacturer-list.tpl, links there look like this: <a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}"> Link to comment Share on other sites More sharing options...
DaveBr Posted January 2, 2014 Author Share Posted January 2, 2014 it's because you have to use manufacturer id instead of manufacturer name try with this, instead of: {$link->getManufacturerLink($product->manufacturer_name)} use {$link->getManufacturerLink($product->id_manufacturer)} Should I replace all instances of manufacturer_name with id_manufacturer in all lines? Or just that section you've given? Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2014 Share Posted January 2, 2014 Should I replace all instances of manufacturer_name with id_manufacturer in all lines? Or just that section you've given? only in href="" param href="{$link->getManufacturerLink($product->manufacturer_name)}" Link to comment Share on other sites More sharing options...
DaveBr Posted January 2, 2014 Author Share Posted January 2, 2014 Fantastic. That's it sorted. Many thanks Thanks Sharak too. Link to comment Share on other sites More sharing options...
vekia Posted January 2, 2014 Share Posted January 2, 2014 glad to hear that Sharak & I could help you a little i marked whole topic as [solved] with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts