Skip to content

Version of Drupal 7 Module Commerce Userpoints modified for cash credit use

Notifications You must be signed in to change notification settings

seascoot/commerce_userpoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

commerce_userpoints

Version of Drupal 7 Module Commerce Userpoints modified for cash credit use

Introduction

This is a hack of the Drupal module called Commerce Userpoints, originally posted by liupascal.

I was looking for something simple to allow me to give store credits to account holders to offset purchases made through checkout. I tried the 7.x-1.x-dev version posted 2013-Dec-23, but found that it was not usable for the purpose I required.

Changes

Usage

Copy commerce_userpoints directory into your modules directory and enable the module.

Go to /admin/commerce/config/currency/userpoints Add a points value currency. This is how I set up mine to have credit show as whole dollars (no cents value). Setting this as 0.01 exchange appeared too confusing to me for applying discounts.

Go to /admin/config/people/userpoints Select the tab "Point Settings". Here you can customize how the descriptions for your userpoints appear. I set them thus since I'm using them as a credit system:

Select the tab "Categorization" and make credit your default category:

Go to /admin/commerce/config/commerce-userpoints/discount

Set the default to Credit. You can limit use of the credit to certain components if needed. That was not necessary for me, so I use "Base price".

To assign credits to account holders go to /admin/config/people/userpoints

From the first "Totals" tab you can see existing users with credits and also add credits to a user.

A test checkout page should have the option to use credit as a discount against an order like below:

About

Version of Drupal 7 Module Commerce Userpoints modified for cash credit use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published