跳转到主要内容
rogole 提交于 8 December 2015

在drupal的官网看到commerce userpoints模块的介绍;可以让网站用户使用网站余额付款;但配置总不能成功;显示“This order cannot be paid with points because there is no exchange rate configured.”意思就是说,我没有设置好转换率;

检查官网的配置介绍原文如下:

  1. Enable the module
  2. Create a taxonomy term in userpoints vocabulary (Say "Credit" for instance)
  3. Go to Store > Config > Commerce points settings
  • Setup the taxonomy term that will serve as "money"
  • Setup the price component that can be paid by the points (base_price is the standard product total)
  • Setup the decimal multiplicator. Points are handled as "Integer" while prices are most of the time "Decimals" (Even thought Drupal Commerce manages it
  • with Integer to avoid calculation precision issues). The easiest way to handle it is to have a "100 points = 1 currency" value
  • conversion rate. To keep this conversion rate, leave the field value to 1.
  • Grant points to your user (either manually, through rules... whatever your workflow requires)

第一步和第二步好理解;配置也很简单;

但是第三步, 

Go to Store > Config > Commerce points settings

 

store菜单下有config,但是config菜单下没有Commerce points settings

 

剩下的全是废话,完全找不到配置的地方;

 

然后又去模块页面,发现模块后面可以点击“配置”按钮;

 

进去以后,为“Currency settings”的“points Currencies”选项卡内

 

进行以下设置

  • Setup the taxonomy term that will serve as "money"
  • Setup the price component that can be paid by the points (base_price is the standard product total)
  • Setup the decimal multiplicator. Points are handled as "Integer" while prices are most of the time "Decimals" (Even thought Drupal Commerce manages it
  • with Integer to avoid calculation precision issues). The easiest way to handle it is to have a "100 points = 1 currency" value
  • conversion rate. To keep this conversion rate, leave the field value to 1.
  • Grant points to your user (either manually, through rules... whatever your workflow requires)

但发现无论如何设置,依然无法支付;到底如何才能配置正确,达到 “1 point == 1 元”的效果!

这个模块网络上的资料太少;如果有更方便的模块烦请告知一下;

Drupal 版本