Magento CE :: Discount on First Order?

喜夏-厌秋 提交于 2019-12-21 17:33:30

问题


Is there any plausible way to give a customer a discount on their first order?

I imagine it would require the user to sign up for a free account, which is fine. But after that, I'm stumped.

The Promotion feature in Magento doesn't cater for anything like this and Google doesn't find any good leads.

Ideas?

:)


回答1:


Nothing out of the box to do this, but the general approach I'd take would be

  1. Create a catalog price rule for your "first time" discount

  2. Add an attribute to the customer object named something like "used_first_coupon". Defaults to 0/false

  3. Add an event on customer creation that send the coupon code to the customer

  4. Hook into the coupon applying code (if there's an event, use it, otherwise, rewrite whatever method you need to) and only apply the specific coupon if the logged in customer's used_first_coupon is false

  5. Add an event listener post-order that will mark the customers used_first_coupon attribute as true




回答2:


I was thinking about the same thing. In Magento Community 1.7. I think this should work.

  1. Create a discount - with no coupon - and specify in setup that it can be used only once.
  2. Assign this discount to the default group.

It should then be applied to every new user and can only be used once.



来源:https://stackoverflow.com/questions/5031011/magento-ce-discount-on-first-order

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!