Quick_View_Pro implements Registerable
Integrates with WooCommerce Quick View Pro.
Tags
Interfaces, Classes and Traits
- Registerable
Table of Contents
- register() : mixed
- render_discounts_list() : void
- Render the discounts list for the product.
- discount_has_relevant_display_locations() : bool
- Check if the discount has a relevant display location.
- has_quick_view_pro_display_locations() : bool
- Check if Quick View Pro has any display locations enabled.
Methods
register()
public
register() : mixed
Tags
Return values
mixed —render_discounts_list()
Render the discounts list for the product.
public
render_discounts_list(WC_Product $product) : void
Parameters
- $product : WC_Product
-
The product.
Return values
void —discount_has_relevant_display_locations()
Check if the discount has a relevant display location.
private
discount_has_relevant_display_locations(Discount $discount) : bool
We only check for the 'woocommerce_before_add_to_cart_form' and 'woocommerce_product_meta_start' locations, as these are the only locations that are relevant to us.
Parameters
- $discount : Discount
-
The discount.
Return values
bool —has_quick_view_pro_display_locations()
Check if Quick View Pro has any display locations enabled.
private
has_quick_view_pro_display_locations() : bool
This only checks if the cart or meta are enabled, as these are the only locations that are relevant to us.