Isa_314 Posted September 13, 2011 Share Posted September 13, 2011 Hi, I've installed 1.4.3 release As I have two type of customers, members and not-members, and the discount is not applied by a percentage it's just another price, I thought in duplicating the categories (and also products) and apply one of each to one or the other group. The issue is that the News module or the "products at home page" show all of them, so any customer can see them and also add to chart. I'd like to know if there is another way to do the same, but right; and if it's not, what do I have to modify. Thanks! (and sorry about my english) Link to comment Share on other sites More sharing options...
Isa_314 Posted September 21, 2011 Author Share Posted September 21, 2011 I've modified the new products module and it works fine now. Not the home page products. I guess that I have to modify the module homefeatured.php and override the class category.php, function getProducts() I thought in recovering the id_group in homefeatured.php and pass it to the class. If the function is like this: public function getProducts($param1, $param2, $param3){ } and I want to add a new parameter public function getProducts($param1, $param2, $param3, $param4){ } 1.- would it affect to the modules that use the same function? 2.- Is this the way to use the function: category->getProducts($param1, , ,$param4); as params 2 and 3 are not needed in this case? Link to comment Share on other sites More sharing options...
Isa_314 Posted September 22, 2011 Author Share Posted September 22, 2011 I've already solved!! 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