English 中文(简体)
Magento CE::首次订购折扣?
原标题:Magento CE :: Discount on First Order?

有什么合理的方法可以让客户在第一次订购时打折吗?

我想这需要用户注册一个免费帐户,这很好。但在那之后,我被难住了。

Magento的促销功能不适合这样的东西,谷歌也找不到任何好的线索。

想法?

:)

最佳回答

没有什么是开箱即用的,但我会采取的一般方法是

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

  2. 为客户对象添加一个名为“used_first_tcoupon”的属性。默认为0/false

  3. 添加创建客户时向客户发送优惠券代码的事件

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

  5. 添加一个事件侦听器post order,该post order将customers used_first_coup属性标记为true

问题回答

我也在想同样的事情。在马根托社区1.7。我认为这应该奏效。

  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.

然后,它应该应用于每个新用户,并且只能使用一次。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签