Documents
-
Remove the gift card form from classic checkout
Remove the gift card entry form from classic checkout. The snippet does not remove the form from block checkout. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit the […]
-
Set a fixed expiration time for gift cards
Set a fixed expiration time for gift cards generated from orders. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit the opening PHP tag. Use this filter to set […]
-
Set a scheduled gift card delivery time
Set the time of day when scheduled gift cards are delivered, regardless of when the customer added them to the cart. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, […]
-
Show a quantity selector for gift card products
Show a quantity selector on gift card product pages so customers can choose a quantity. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit the opening PHP tag. Gift […]
-
Show gift cards on a custom account page
Display the Gift Cards section on a custom My Account page using a shortcode. Add this shortcode to the content of your custom account page. It displays the Gift Cards section for signed-in customers and returns no content for guests. Verify the change Add the shortcode to the custom account page and confirm the gift […]
-
Show the remaining balance of applied gift cards
Show the remaining balance of each applied gift card in the classic cart and checkout. Test custom code on a staging site before using it on your store. Add PHP to a custom plugin or a child theme’s functions.php file. If the file is already inside a PHP block, omit the opening PHP tag. Add […]
-
REST API Reference
Gift Cards Endpoint Gift Cards introduces a new /gift-cards/ endpoint that allows you to create, read, update, and delete gift card codes. List of Properties Attribute Type Description Usage id integer Gift card ID Read-only code string Gift card code Read-only in update context. Required in update context. A code is generated automatically on creation. recipient string […]