View Product Page

Actions

includes/admin/class-yith-ywgc-backend-extended.php

Copied!
Copy

Allow actions before the gift card generated is save

Params
 object $gift_card the gift card object

Copied!
Copy

Allow actions after the gift card generated is save

Params
 object $gift_card the gift card object

includes/admin/class-yith-ywgc-backend.php

Copied!
Copy

Allow actions after the gift card product is save

Params
 int $post_id the gift card ID
 object $post the post object
 object $product the product object

includes/class-yith-ywgc-cart-checkout.php

Copied!
Copy

Allow to add extra information at the end of the gift card data on cart and checkout

Params
 string $code the gift card ocodebject
 float $amount the gift card amount

Copied!
Copy

Triggered before update the total with the gift card value substracted

Params
 object $cart the cart object
 float $discount the gift card discount amount

Copied!
Copy

Triggered after update the total with the gift card value substracted

Params
 object $cart the cart object
 float $discount the gift card discount amount

includes/class-yith-ywgc-emails-extended.php

Copied!
Copy

Before send the gift card notification via email

Params
 object $gift_card the gift card object

Copied!
Copy

Trigger the gift card notification email

Params
 object $gift_card the gift card object
 string the recipient case

Copied!
Copy

After send the gift card notification via email

Params
 object $gift_card the gift card object

includes/class-yith-ywgc-emails.php

Copied!
Copy

Before send the gift card notification via email

Params
 object $gift_card the gift card object

Copied!
Copy

Trigger the gift card notification email

Params
 object $gift_card the gift card object
 string the recipient case

Copied!
Copy

After send the gift card notification via email

Params
 object $gift_card the gift card object

templates/emails/send-gift-card.php

Copied!
Copy

Display the introductory text on the gift card email before the gift card preview

Params
 string $introductory_text the introductory text
 object $gift_card the gift card object

Copied!
Copy

Allow to add content before the gift card preview in the email

Params
 object $gift_card the gift card object

Copied!
Copy

Allow to add content after the gift card preview in the email

Params
 object $gift_card the gift card object

templates/myaccount/my-giftcards.php

Copied!
Copy

Trigger the empty table state


templates/single-product/add-to-cart/gift-card-amount-selection.php

Copied!
Copy

Allow to apply changes before the amount selection on the gift card page

Params
 object $product the gift card product

Copied!
Copy

Trigger the last amount in the select amount section, to allow the inclusion of the custom amount

Params
 object $product the gift card product

Copied!
Copy

Allow to apply changes after the amount selection on the gift card page

Params
 object $product the gift card product

templates/single-product/add-to-cart/gift-card.php

Copied!
Copy

Allow actions before the gift card add to cart form opening


Copied!
Copy

Display the gift card design section

Params
 object $product the gift card product

Copied!
Copy

Allow actions before the gift card amount list

Params
 object $product the gift card product

Copied!
Copy

Display the gift card amounts section

Params
 object $product the gift card product

Copied!
Copy

Display the gift card delivery info section

Params
 object $product the gift card product

Copied!
Copy

Allow actions before the add to cart button


Copied!
Copy

Allow actions before the gift card template


Copied!
Copy

Used to output the cart button and placeholder for variation data


Copied!
Copy

Allow actions after the gift card template


Copied!
Copy

Allow actions after the gift card add to cart button


Copied!
Copy

Allow actions after the gift card form


Copied!
Copy

Allow actions after the gift card add to cart form


Copied!
Copy

End of the gift card preview section

Params
 object $product the gift card product

templates/yith-gift-cards/ywgc-gift-card-template.php

Copied!
Copy

Allow actions before displaying the logo in the gift card template

Params
 object $object the gift card object
 string $context the template context, email or pdf

Copied!
Copy

Allow actions before displaying the main image in the gift card template

Params
 object $object the gift card object
 string $context the template context, email or pdf

Copied!
Copy

Allow actions after displaying the main image in the gift card template

Params
 object $object the gift card object
 string $context the template context, email or pdf

Copied!
Copy

Allow actions after displaying the logo in the gift card template

Params
 object $object the gift card object
 string $context the template context, email or pdf

Copied!
Copy

Allow actions after displaying the price in the gift card template

Params
 object $object the gift card object
 string $context the template context, email or pdf

Copied!
Copy

Allow actions after displaying the price and logo in the gift card template

Params
 object $object the gift card object
 string $context the template context, email or pdf

Copied!
Copy

Allow actions after displaying the message in the gift card template

Params
 object $object the gift card object
 string $context the template context, email or pdf

Copied!
Copy

Allow actions after displaying the code in the gift card template

Params
 object $object the gift card object
 string $context the template context, email or pdf

Copied!
Copy

Allow actions after displaying the expiration date message in the gift card template

Params
 object $object the gift card object
 string $context the template context, email or pdf