Cart_Notices
Class Cart_Notices
Source
File: includes/modules/woocommerce_booster/cart_notices/cart_notices.php
Expand full source code Collapse full source code View on Github
Methods
- cart_notice_seamless_add_to_cart — Handles seamless add to cart for cart notices.
- cart_notices_allowed_block_types — Limit the allowed blocks in this post type just to cart notice block.
- cart_notices_render_locations — Cart notices render locations.
- check_amount_settings — Check if amount settings pass.
- check_category_settings — Check if category settings pass.
- check_expiration_settings — Check if expiration settings pass.
- check_include_exclude — Check if an array includes or not some items.
- check_product_settings — Check if product settings pass.
- check_user_settings — Check if user settings pass.
- get_cart_amount — Get total cart amount.
- get_cart_notice_content — Get the content of a cart notice by its id.
- get_categories_in_cart — Get an array with all the category ids that products in cart have.
- get_current_post_type — Get current post type in admin.
- get_post_type — Get the post type based on current data.
- get_products_in_cart — Get an array with all the product ids in cart.
- get_replacement — Get replacement string for magic tags.
- get_tax_total — Get total value of taxes.
- init — Init function.
- init_cart_notices_block — Initialize cart notices WordPress editor block.
- maybe_apply_discount_code — Check if coupon should be applied and apply it.
- maybe_change_to_add_to_cart — Change the product url to add to cart url.
- maybe_parse_shortcodes — Run do_shortcode function for Cart notices block.
- maybe_render_magic_tags — Replace magic tags if they exist.
- register_custom_post_type — Register Custom Layouts post type.
- register_meta — Register meta data for neve_cart_notices post type.
- remove_patterns — Remove patterns tab.
- render_cart_notices — The render method for displaying the cart notice.
- should_display_notice — Checks the cart notice settings and decides if the notice should be rendered or not.