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-premium.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 

Copied!
Copy

Trigger the send gift card notification

 Params  object $gift_card the gift card object  string the case, for the "Recipient" or in "BCC" 

Copied!
Copy

Trigger the send gift card delivered email

 Params  object $gift_card the gift card object 

Copied!
Copy

Trigger when the gift card status is changed

 Params  object $gift_card the gift card object  bool $enabled the status of the gift card 

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-woocommerce-gift-cards-premium.php

Copied!
Copy

The MPDF object after write the HTML in the PDF template

 Params  object $mpdf the MPDF object 

Copied!
Copy

The MPDF object after generate the PDF template

 Params  object $mpdf the MPDF object 

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

Copied!
Copy

Trigger the customer notification email

 Params  object $gift_card the gift card 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-premium.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/gift-this-product/give-product-as-present.php

Copied!
Copy

Allow actions before the gift card add to cart form


templates/gift-this-product/product-template/default-gift-card-template.php

Copied!
Copy

Allow actions before the gift card add to cart form


Copied!
Copy

Allow actions before the gift card add to cart form opening


Copied!
Copy

Allow actions before the gift card amount list

 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

 Params  object $product the gift card product 

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/gift-this-product/product-template/gift-card-design.php

Copied!
Copy

Allow actions before the designs section


Copied!
Copy

Allow actions after the designs section


templates/myaccount/my-giftcards.php

Copied!
Copy

Trigger the empty table state


templates/shortcodes/redeem-gift-card-form.php

Copied!
Copy

Adds an action just before register the redemption of the amount via shortcode

 Params  object $gift_card  Object of the gift card.  string $code       Code introduced in the shortcode.  float $used_amount Amount introduced in the shortcode. 

templates/shortcodes/user-gift-card-table.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  WC_Product $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


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/gift-card-design.php

Copied!
Copy

Allow actions before the designs section


Copied!
Copy

Allow actions after the designs section


templates/yith-gift-cards/layouts/2.0/gift-card-amount-selection.php

Copied!
Copy

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

 Params  WC_Product $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/yith-gift-cards/layouts/2.0/gift-card-design.php

Copied!
Copy

Allow actions before the designs section


Copied!
Copy

Allow actions after the designs section


templates/yith-gift-cards/layouts/2.0/gift-card.php

Copied!
Copy

Allow actions before the gift card add to cart form


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