Select Page

All of these functions are in the BeRocket_cart_suggestion class as static functions.

init ()

Function for initializing scripts.

admin_init ()

Function for initializing scripts and settings page in the Admin Bar.

options ()

Add option page to admin menu.

br_get_template_part( $name = ” )

Get template part (for templates like the slider).

  • $name – template name

Default templates are placed in plugins folder woocommerce-cart-suggestions/templates.

To rewrite the template in your theme folder create folder with the name woocommerce-cart_suggestion and place a new template with identical name in this folder.

after_cart ()

Function for displaying suggested products on cart page