Magento CE ::可以享受第一笔折扣吗? [英] Magento CE :: Discount on First Order?

查看:65
本文介绍了Magento CE ::可以享受第一笔折扣吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么可行的方法可以让客户在第一笔订单上享受折扣?

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.

Magento的促销"功能无法满足此类需求,并且Google找不到任何好的潜在客户.

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

想法?

:)

推荐答案

什么也没做,但是我会采用的一般方法是

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

  1. 为您的首次"折扣创建目录价格规则

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

向名为"used_first_coupon"的客户对象添加一个属性.默认为0/false

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

在创建客户时添加一个事件,将优惠券代码发送给客户

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

插入优惠券应用代码(如果有事件,请使用它,否则,重写您需要的任何方法),并且仅在登录客户的used_first_coupon为false时才应用特定优惠券

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

添加一个事件侦听器后置订单,该订单将把客户的used_first_coupon属性标记为true

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

这篇关于Magento CE ::可以享受第一笔折扣吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆