Announcement

Collapse
No announcement yet.

Miva Points & Loyalty

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Miva Points & Loyalty

    We have a client that is debating switching from a paid loyalty program to Miva's points and loyalty. One thing the Miva documentation mentions is awarding points for setting up an account. I don't see a specific reference to that in the documentation. Where is the info on how to set that up?

    Also, are there any emails that get generated and sent when say a customer upgrades to a new tier or earns enough points to redeem a reward, etc?

    #2
    Here is a section from the how to docs that talk about the CustomerPointTransaction_Insert function, this can be used with custom logic on the account creation step to add points to a newly created account.
    https://docs.miva.com/how-to-guides/points-loyalty

    From docs:

    :cust_id (required) = Customer ID
    :user_id = User ID. If left blank, will be 0.
    :pending = 1 or 0 (boolean)
    :order_id = Order ID. If left blank, will be 0.
    :line_id = Order Line ID. If left blank, will be 0.
    :descrip (required) = Description for the transaction
    :points (required) = Number of points. Can not be 0.
    :dtstamp = timestamp. If left empty, it will default to the current timestamp.
    <mvt:item name="points" param="CustomerPointTransaction_Insert( l.settings:transaction )" />

    Example Code:

    <mvt:comment>
    |
    | New Account Points
    |
    </mvt:comment>
    <mvt:assign name="l.settings:transaction:cust_id" value="PLACE CUSTOMER ID VARIABLE HERE" />
    <mvt:assign name="l.settings:transaction:user_id" value="0" />
    <mvt:assign name="l.settings:transaction:pending" value="0" />
    <mvt:assign name="l.settings:transaction:order_id" value="0" />
    <mvt:assign name="l.settings:transaction:line_id" value="0" />
    <mvt:assign name="l.settings:transaction:descrip" value="'New Account Creation Points'" />
    <mvt:assign name="l.settings:transaction:points" value="100" />
    <mvt:item name="points" param="CustomerPointTransaction_Insert( l.settings:transaction )" />

    Comment

    Working...
    X