Skip to content

Release v0.2.3

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Sep 17:50
c3fa5d2

What's new in 0.2.3

Receipts can say "Gift Card" instead of "Discount"

Requires WCPOS 1.10.8 or later. WCPOS 1.10.8 lets plugins extend the receipt data through the woocommerce_pos_receipt_data filter. For POS orders paid with StoreApps store credit, this extension now marks the matching discount row with gift_card: true and puts the balance text on the row label, for example "Gift card — Store credit balance: 65,00 €". WCPOS itself carries no StoreApps-specific fields.

To change the wording, edit the discount row in your receipt template:

{{#gift_card}}Gift Card{{/gift_card}}{{^gift_card}}{{i18n.discount}}{{/gift_card}}{{#label}}: {{label}}{{/label}}

Details worth knowing:

  • A gift card with no description keeps its coupon code on the label, so the card stays identifiable.
  • A gift card that has since been deleted is still marked as a gift card on reprints; only the balance text is omitted, since there is no live balance to show.
  • Fiscal receipt snapshots only carry what was captured at payment time, so orders paid before installing this version are unchanged.
  • On WCPOS versions before 1.10.8 nothing changes; the 0.2.2 behaviour, which appends the balance to the discount label, still applies.

Full changelog: https://github.com/wcpos/wcpos-storeapps-smart-coupons/blob/main/CHANGELOG.md