Variation_Swatches
Class Variation_Swatches
Source
File: includes/modules/woocommerce_booster/views/variation_swatches.php
Expand full source code Collapse full source code View on Github
Methods
- add_exta_variation_data — Add variation data to be able to see it in JS
- add_to_cart_args — Arguments for the add to cart button on product catalog.
- define_public_hooks — Define public hooks.
- enqueue_scripts — Enqueue public scripts.
- get_attribute_type — Get attribute type.
- get_current_url — Get the current url. Used for getting the shop url.
- init — Initialize the module.
- is_product_archive — Check if current page is shop or a product archive page/
- render_catalog_swatches — Render variation swatches on catalog page.
- render_swatches — Render variation swatches.
- should_display_catalog_swatches — Check if variation swatches on catalog view should be visible.
- should_load — Check if the styles should enqueue.
- swatches_display — Function that manages variation swatches display.