Nuvish Posted June 28, 2011 Share Posted June 28, 2011 [sOLVED]I copied classes/Product.php to override/classes/Product.php. I have put the class declaration as - class Product extends ProductCore. And i have put a small function in there,not much.. The override works fine(uses my small function correctly). But the thing is, when i go to a product page, i have the word ''array'' appearing at many places. breadcrums becomes - Accueil > Hair> Array , availability : Array , and the tab more info has content : Array Ive tried looking a solution for this but found none.. Please help me.. Link to comment Share on other sites More sharing options...
Sparrow Posted July 24, 2011 Share Posted July 24, 2011 Hi, I don't know if you have the answer now. I think that you can try to put only your new function in the override not a full copy of the original classe. When I faced with this problem of (Array) anywhere, I resolved by deleting the overrided init() function. Hope that can help you. Link to comment Share on other sites More sharing options...
Asenar Posted July 24, 2011 Share Posted July 24, 2011 Hi, Sparrow has right, you can just add the functions you need, without copying the whole class. If you have still this problem, can you please post the function here ? Link to comment Share on other sites More sharing options...
Nuvish Posted September 29, 2011 Author Share Posted September 29, 2011 Removing the constructor solved it. Thanx guys Link to comment Share on other sites More sharing options...
Fugu Design Posted November 16, 2011 Share Posted November 16, 2011 Replace parent::__construct($id_product, $id_lang); by parent::__construct($id_product, $full, $id_lang); in overided constructor, solved the problem for me, without removing it. Indeed, the params of the parent class "ProductCore“ include $full before $id_lang. Link to comment Share on other sites More sharing options...
surflibre Posted November 21, 2011 Share Posted November 21, 2011 Hi, Works well for me ps 1.4.5.1 thanks 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