Julio Perales Posted August 19, 2013 Share Posted August 19, 2013 (edited) Hello i'm developing a brand's module slider, i took manufacturer-list as base but when i write in my module (tpl), and my ps version is 1.5.4 : $link->getmanufacturerLink($manufacturer.id_manufacturer) (cause error) i've tried $link->getmanufacturerLink(1) (cause error) and there is the error too. Either i try to link to bankwire: $link->getModuleLink('bankwire', 'payment') and in this case i obtain a valid link, i think i've a valid link object Any suggestions? Edited August 21, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 (cause error) what kind of error you've got? can you show the error code? Link to comment Share on other sites More sharing options...
Julio Perales Posted August 19, 2013 Author Share Posted August 19, 2013 i have a white page... (tpl error) But i've tried also to pass the link via php, and when i add it in php there is an error like this: Cannot redeclare class ManufacturerCore in C:\xampp\htdocs\prestashop\classes\Manufacturer.php on line 466 Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 if you have a white page it mean that there is something wrong with php script. turn on error reporting, and you will see error code. Link to comment Share on other sites More sharing options...
Julio Perales Posted August 19, 2013 Author Share Posted August 19, 2013 no man i've checked my config: define('_PS_MODE_DEV_', true); if (_PS_MODE_DEV_) { @ini_set('display_errors', 'on'); and i have a white page Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 so the question is: does the manufacturer with ID 1 exist? Link to comment Share on other sites More sharing options...
Julio Perales Posted August 19, 2013 Author Share Posted August 19, 2013 yeah of course i've manufacturers 1-8, maybe its another dummie error Link to comment Share on other sites More sharing options...
Julio Perales Posted August 19, 2013 Author Share Posted August 19, 2013 In particular is this line: <a href="{$link->getmanufacturerLink(1)|escape:'htmlall':'UTF-8'}" Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 it doesnt work even if you use it without |escape:'htmlall':'UTF-8' ? Link to comment Share on other sites More sharing options...
Julio Perales Posted August 19, 2013 Author Share Posted August 19, 2013 Nop, sure the error happen when i'm trying to obtain the link Link to comment Share on other sites More sharing options...
Julio Perales Posted August 21, 2013 Author Share Posted August 21, 2013 You may close the thread, issue is solved. The problem was in .php i did a call to ManufacturerCore instead of Manufacturer. Thanks a lot for your help. Link to comment Share on other sites More sharing options...
vekia Posted August 21, 2013 Share Posted August 21, 2013 thanks for information that it works and how you solved it im going to mark this topic as [sOLVED] as you suggested best regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now