Giftrocket for SureCart Documentation

⌘K
  1. Home
  2. Docs
  3. Giftrocket for SureCart D...
  4. 10. Developers
  5. 10.2 Shortcodes, Constants and Data

10.2 Shortcodes, Constants and Data

A quick reference for developers: shortcodes, settings you can define in code, scheduled tasks and where GiftRocket stores its data.

Shortcodes

  • [giftrocket_balance_check] and [giftrocket_check_balance]: the balance checker. Options are listed in 4.3.

Constants

ConstantPurpose
GIFTROCKET_SURE_EPASSCARD_API_BASEPoint GiftRocket to a different Epasscard API address, for example a test server. Define it in wp-config.php.
define( 'GIFTROCKET_SURE_EPASSCARD_API_BASE', 'https://your-epasscard-test-server.example/api/public/v1' );

Scheduled Tasks

  • Every 5 minutes: scheduled gift card emails that are due.
  • Every hour: expiry reminders, removal of temporary checkout discounts, and cleanup of unused photo uploads.
  • One-off: each scheduled card also gets its own task at its delivery time.

Where Data Is Stored

  • Database tables {prefix}giftrocketsure_cards, {prefix}giftrocketsure_ledger and {prefix}giftrocketsure_logs.
  • Settings in the giftrocketsure_settings option.
  • Customer photos in wp-content/uploads/giftrocket-custom/.

How Checkout Works

When a customer applies a gift card, GiftRocket creates a temporary SureCart discount code that matches the card, so checkout can show the reduction. It is deleted automatically once the order is confirmed or the card is removed, so your SureCart Coupons list stays clean.

Note: GiftRocket’s templates can’t be overridden from a theme in this version. Use the settings and filters above to change its output.

How can we help?