Single_Product
Class Single_Product
Source
File: includes/modules/woocommerce_booster/views/single_product.php
Expand full source code Collapse full source code View on Github
Methods
- add_gallery_classes — Add gallery classes
- add_secondary_btns_hover — Add secondary btn selectors for hover state.
- add_secondary_btns_normal — Add secondary btn selectors for normal state.
- add_secondary_btns_padding — Add secondary btn selectors for padding.
- breadcrumbs — Toggle breadcrumbs
- display_product_image — Wrap the product image in a div and add the sale tag before the image.
- image_zoom_effect — Toggle image zoom effect
- init — Initialize the module.
- is_product_nav_active — Check if product nav is active.
- product_navigation — Product navigation control function.
- product_navigation_style — Make the product navigation buttons to be customizable from secondary buttons controls
- recently_viewed — Add the recently viewed products box.
- register_hooks — Register submodule hooks
- related_products — Toggle related products
- related_products_column — Add body class to set number of related products column.
- related_products_number — Change related products number.
- remove_elements — Remove the elements from single product.
- render_product_navigation — Render product navigation on single product page
- render_sticky_add_to_cart_product_tabs — The function renders the product tabs of the sticky add to cart.
- reorder_elements — Reorder the elements on single product.
- run — Run the module.
- seamless_add_to_cart — Add the seamless add to cart class on body.
- should_load — Check if submodule should be loaded.
- should_show_sticky_add_to_cart — Decide if sticky add to cart should be rendered.
- should_show_sticky_add_to_cart_tabs — Decide if the tabs in the sticky add to cart should be rendered.
- sparks_quick_view_support — Run the internal "run" method for rendering of Sparks Quick View.
- sticky_add_to_cart_after — This function is closing the wrapping for the add to cart from WooCommerce.
- sticky_add_to_cart_before — This function is wrapping the add to cart from WooCommerce.
- tabs — Toggle tabs
- track_product_view_always — Track product views. Always.
- upsells — Toggle upsells.