Reply 41983 to: Product Add-Ons and Product Options not supported by Royal theme

Avatar: emeliech
emeliech
Participant
February 13, 2015 at 15:21

Hi!

This is prop what your developers need for implementing and getting the Product Add ons and product options to work.

public function __construct() {
// Styles
add_action( ‘get_header’, array( $this, ‘styles’ ) );
add_action( ‘wc_quick_view_enqueue_scripts’, array( $this, ‘addon_scripts’ ) );

// Addon display
add_action( ‘woocommerce_before_add_to_cart_button’, array( $this, ‘display’ ), 10 );
add_action( ‘woocommerce-product-addons_end’, array( $this, ‘totals’ ), 10 );

// Change buttons/cart urls
add_filter( ‘add_to_cart_text’, array( $this, ‘add_to_cart_text’), 15 );
add_filter( ‘woocommerce_product_add_to_cart_text’, array( $this, ‘add_to_cart_text’), 15 );
add_filter( ‘woocommerce_add_to_cart_url’, array( $this, ‘add_to_cart_url’ ), 10, 1 );
add_filter( ‘woocommerce_product_add_to_cart_url’, array( $this, ‘add_to_cart_url’ ), 10, 1 );

// View order
add_filter( ‘woocommerce_order_item_display_meta_value’, array( $this, ‘fix_file_uploaded_display’ ) );
}

When can we expect this do be done?

Thanks

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.