knazemarek Posted March 24, 2013 Share Posted March 24, 2013 Hello. Please, I need to find someone who can help me? I want the customer to have a discount after being registrated ? And the customers who had not been registered don't? My version is 1.4.8.2 Prestashop. Thank you for a respond. Link to comment Share on other sites More sharing options...
Paulito Posted March 24, 2013 Share Posted March 24, 2013 Good morning, You just need to add registered customers to a specific "group" and give that group a discount of say 5% So when that customer registers, you will see this in the back office put them in that 5% group Hope this makes sense Paul Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2013 Share Posted March 24, 2013 exactly, i think that perfumseskunk suggestion is the best solution in this case. YOu dont't have to install any external solutions, modify prestashop core, just se a voucher for grup and thats all :-) Link to comment Share on other sites More sharing options...
knazemarek Posted March 24, 2013 Author Share Posted March 24, 2013 Thanks for you respond, but I need the registrated cutomers to be added to that group automatically. How can I do it? Link to comment Share on other sites More sharing options...
Paulito Posted March 24, 2013 Share Posted March 24, 2013 Good morning, Thinking about it this is set up by default in prestashop, I am looking at ps 1.4.7 but it should not be very different from 1.4.8 If you go to back office > customers > Groups > then edit the Default group and give say 5% discount' Then if a customer wants to buy they have to register and so the discount is given Try it yourself, obviously you are a fake customer Paul Link to comment Share on other sites More sharing options...
El Patron Posted March 24, 2013 Share Posted March 24, 2013 you can add this class extension, as an example...so when they register....it will put them in whatever group you have set up with the discount... class Customer extends CustomerCore { public function add($autodate = true, $nullValues = true) { if (empty($this->id_default_group)) $this->id_default_group = YOURNEWDEFAULTGROUPIDGOESHERE); return parent::add(); } } Link to comment Share on other sites More sharing options...
knazemarek Posted March 24, 2013 Author Share Posted March 24, 2013 thank you for the answers... More specifically, where should I modify in customer.php? I do not know where I should insert:( Link to comment Share on other sites More sharing options...
El Patron Posted March 24, 2013 Share Posted March 24, 2013 you would place the code I offered, with correct ID of the group, in the override/classes folder....if you are not familiar with this and/or not comfortable with it, you may need to get someone to do it for your. I suggest nemo1, but here are several very competent developers here. I don't personally do any private work. Also see the 1.4 developers guide for class ovrerrides....learning keeps the mind young Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted March 25, 2013 Share Posted March 25, 2013 Our module Retrospect might interest you if you are looking for a little more flexibility and to have the process automated. http://prestashop.carolinacustomdesigns.com/administration/24-retrospect-groups-and-rules.html Marty Shue 1 Link to comment Share on other sites More sharing options...
Recommended Posts