You are here

INSTALL.txt in Commerce userpoints 7

----------------
Installation
----------------
- Enable the module
- Create a taxonomy term in userpoints vocabulary (Say "Credit" for instance)
- 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)


----------------
Test it !
----------------
- Add an item to cart
- Go to checkout
- Use points in the checkout pane and see the line item do its thing

File

commerce_userpoints_discount/INSTALL.txt
View source
  1. ----------------
  2. Installation
  3. ----------------
  4. - Enable the module
  5. - Create a taxonomy term in userpoints vocabulary (Say "Credit" for instance)
  6. - Go to Store > Config > Commerce points settings
  7. --> Setup the taxonomy term that will serve as "money"
  8. --> Setup the price component that can be paid by the points
  9. (base_price is the standard product total)
  10. --> Setup the decimal multiplicator. Points are handled as "Integer" while
  11. prices are most of the time "Decimals" (Even thought Drupal Commerce manages it
  12. with Integer to avoid calculation precision issues). The easiest way to handle
  13. it is to have a "100 points = 1 currency" value conversion rate. To keep this
  14. conversion rate, leave the field value to 1.
  15. - Grant points to your user
  16. (either manually, through rules... whatever your workflow requires)
  17. ----------------
  18. Test it !
  19. ----------------
  20. - Add an item to cart
  21. - Go to checkout
  22. - Use points in the checkout pane and see the line item do its thing