Integrate loyalty platform Piggy

Integrate loyalty platform Piggy

Piggy Integration

For a Piggy integration the following is needed:
  1. Your Piggy number ( e.g., 1017)
  2. Your Piggy secret (Secret)
  3. Access for xxx.simplyadmin.de
    (Only one entry per store!)

In the Admin -> in the category Store -> at the category subitem Stores -> there is the yellow star icon button External providers on the right side of each store list entry.




After clicking, a new overview opens. There you can select Piggy at the top left under Add new entry.



In the following mask you have to fill in the 3 fields:

Description
Explanation
Description
Freely selectable - the description is for internal use only.
Store identifier at the provider
The customer number from the Piggy account will be entered here.
Secret
From the Piggy account.



Then click on SAVE. 


Note (Type - Unit):
SIDES transmits the payment amount (eg € 45.87) as 'purchase_amount'. Configure the settings at piggy.nl accordingly!


Only one entry per store is required.





In the Admin -> in the category Hardware & System -> open the category subitem Print Templates.




Open the appropriate print template, e.g., Invoice, and at the desired location, e.g., at/under Border, insert the following placeholder:
<div>%piggy%</div>


Attention:
This will only generate the QR code.




This is how an example of the print code with layout could look like:

<div style="text-align:left;margin-left:60px;font-size:x-large;width:180px"><div style="text-align:center"><b>Scan me for Piggy points!</b></div></div>
<div style="text-align:left;margin-left:50px;">%piggy%</div>
<div style="text-align:left;margin-left:120px;">piggy.nl</div>

(The "Scan me for Piggy points!" can be replaced with any text).