Jump to content

automatic discount for registered


Recommended Posts

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

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

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

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

×
×
  • Create New...