Plugin yìí kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress. Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

SL Gift Cards & Store Credits

Àpèjúwe

Complete WordPress/WooCommerce plugin for gift cards, store credits, and coupon management integrated with Streamline POS.

Features

🎁 Gift Cards

  • Auto-generated card numbers (GC-XXXX-XXXX-XXXX)
  • E-gift cards with automatic email delivery
  • Physical gift cards for in-store printing
  • Balance tracking and transaction history
  • Expiration date support
  • Beautiful branded HTML emails
  • Customer account integration Ìtumọ̀ Yorùbá: – Link gift cards to accounts
  • Combine cards Ìtumọ̀ Yorùbá: – Merge multiple gift cards into one
  • Edit functionality Ìtumọ̀ Yorùbá: – Modify balance, status, notes from admin
  • Import/Export Ìtumọ̀ Yorùbá: – Bulk operations via CSV

💰 Store Credits

  • Customer balance tracking
  • Add/deduct credits easily
  • Refund to store credit
  • Full transaction history
  • Order associations
  • Import/Export Ìtumọ̀ Yorùbá: – Bulk credit operations

🎟️ Coupons

  • Uses WooCommerce coupons
  • Integrated into POS Extensions tab

📦 Import/Export

  • Export all gift cards to CSV
  • Export all store credits to CSV
  • Import gift cards from CSV (with template)
  • Import store credits from CSV (with template)
  • Download pre-formatted templates
  • Validation and error reporting

👤 Customer Features

  • View all gift cards in “My Account”
  • Link received gift cards to account
  • Combine multiple cards into one
  • Check balances and transaction history
  • Remove applied gift cards from cart

🔌 POS Integration

  • Extensions tab with sub-tabs
  • Store credit display in customer profile
  • Gift card payment at checkout
  • Permission management

Requirements

  • WordPress 5.0+
  • WooCommerce 5.0+
  • PHP 7.4+

Database Tables

Created automatically on activation:
Ìtumọ̀ Yorùbá: – wp_streamline_gift_cards Ìtumọ̀ Yorùbá: – Gift card data
Ìtumọ̀ Yorùbá: – wp_streamline_gift_card_transactions Ìtumọ̀ Yorùbá: – Transaction history
Ìtumọ̀ Yorùbá: – wp_streamline_store_credits Ìtumọ̀ Yorùbá: – Store credit transactions

REST API Endpoints

Gift Cards

  • POST /wp-json/sl-gcsc/v1/gift-cards/validate
  • POST /wp-json/sl-gcsc/v1/gift-cards/create
  • POST /wp-json/sl-gcsc/v1/gift-cards/apply
  • GET /wp-json/sl-gcsc/v1/gift-cards/balance/:number

Store Credits

  • GET /wp-json/sl-gcsc/v1/store-credit/balance/:customer_id
  • GET /wp-json/sl-gcsc/v1/store-credit/history/:customer_id
  • POST /wp-json/sl-gcsc/v1/store-credit/add
  • POST /wp-json/sl-gcsc/v1/store-credit/apply

Usage

Admin Menu Pages

Navigate to Gift Cards & Credits in WordPress admin:

  1. Dashboard Ìtumọ̀ Yorùbá: – Overview of gift cards and store credits
  2. Gift Cards Ìtumọ̀ Yorùbá: – View all gift cards
    • Edit Ìtumọ̀ Yorùbá: – Modify balance, status, notes, recipient
    • Combine Ìtumọ̀ Yorùbá: – Transfer balance between cards
  3. Create Physical Card Ìtumọ̀ Yorùbá: – Generate new physical gift cards
  4. Store Credits Ìtumọ̀ Yorùbá: – View all customer store credits
  5. Add Store Credit Ìtumọ̀ Yorùbá: – Add credits to customer accounts
  6. Reports Ìtumọ̀ Yorùbá: – View gift card and store credit analytics
  7. Settings Ìtumọ̀ Yorùbá: – Configure email templates and URLs
  8. Import/Export Ìtumọ̀ Yorùbá: – Bulk operations
    • Export gift cards to CSV
    • Export store credits to CSV
    • Import from CSV with templates

Customer Account Pages

Customers can access at My Account My Gift Cards:

  • View all their gift cards
  • Check balances and transaction history
  • Link a gift card Ìtumọ̀ Yorùbá: – Add received cards to account
  • Combine Ìtumọ̀ Yorùbá: – Merge multiple cards into one
  • Remove applied gift cards from cart

Cart & Checkout

  • Apply gift cards on cart page
  • Apply gift cards on checkout page
  • Remove applied gift cards with one click
  • $0 total notice when fully covered
  • Session-based persistence

Create Physical Gift Card

`php

$gift_card_id = SGCSC_Gift_Card::create([
‘initial_balance’ => 100.00,
‘is_physical’ => true
]);
`

Add Store Credit

`php

SGCSC_Store_Credit::add($customer_id, 25.00, [
‘reason’ => ‘Compensation’,
‘notes’ => ‘Issue #1234’
]);
`

Validate Gift Card

`php

$result = SGCSC_Gift_Card::validate(‘GC-XXXX-XXXX-XXXX’);
`

Creating E-Gift Card Products

  1. Products Add New
  2. Product Type: Gift Card
  3. Set price
  4. Publish

Customers can purchase and recipient receives email automatically!

Support

Check the included guides:
Ìtumọ̀ Yorùbá: – COMPLETE-SETUP-GUIDE.md Ìtumọ̀ Yorùbá: – Full setup instructions
Ìtumọ̀ Yorùbá: – POS-INTEGRATION-CODE.js Ìtumọ̀ Yorùbá: – POS integration code
Ìtumọ̀ Yorùbá: – COMPLETE-INTEGRATION-GUIDE.md Ìtumọ̀ Yorùbá: – Detailed integration

Version

1.0.4

Author

Streamline Diving — streamlinediving.com/plugins

Àwọn àwòrán ìbòjú

Ìgbéwọlẹ̀

  1. Upload the sl-gift-cards-store-credits folder to /wp-content/plugins/
  2. Go to WordPress Admin Plugins
  3. Find “SL Gift Cards & Store Credits”
  4. Click “Activate”
  5. Refresh the page
  6. Look for “Gift Cards” menu in WordPress sidebar

Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

Àwọn Olùkópa & Olùgbéejáde

“SL Gift Cards & Store Credits” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “SL Gift Cards & Store Credits” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

1.0.11

  • Fixed double store credit deduction on POS orders
  • Fixed double store credit/gift card restoration on POS returns
  • Added CSV exports to Reports page (GC transactions, gift cards, store credits)
  • Added customer-specific exports from GC Transaction History and Customer Lookup
  • Added multi-customer picker when search matches multiple customers
  • Fixed HTML appearing in CSV export files

1.0.8

  • Security: Added nonce verification to gift card and store credit checkout handlers
  • Security: Added nonce verification to admin download template and clear gift card URL handlers
  • Security: Replaced wp_redirect with wp_safe_redirect throughout
  • Security: Wrapped all echo output with appropriate escaping functions
  • Code: Bundled Chart.js locally, removed remote CDN dependency
  • Code: Replaced inline script tag with wp_add_inline_script and wp_localize_script
  • Code: Renamed main plugin class to SGCSC_Plugin for consistent prefixing
  • Code: Removed debug error_log calls
  • Code: Fixed Text Domain header to match plugin slug

1.0.4 — February 2026

  • Added plugin row meta links: Visit plugin site, View ReadMe, View Details, User Guide
  • Added user-guide.html, readme.html, readme.pdf
  • Minor stability improvements and code cleanup

1.0.3

  • Added customer self-service card combining from My Account
  • Added admin edit functionality for gift card balance, status, and notes
  • Improved CSV import validation and error reporting

1.0.2

  • Added bulk import/export for gift cards and store credits
  • Added pre-formatted CSV templates with download links
  • Added customer-facing gift card linking from My Account

1.0.1

  • Added POS customer profile store credit display and “Use Credit” modal
  • Added POS gift card payment input at checkout
  • Added REST API endpoints for POS integration

1.0.0

  • Initial release