The WooCommerce Deals Extension does include a lot of different Hooks, which makes it easy to change the design or replacing any of the added elements.


Example:

If you would like to move the Deal image from the left to the right (on the Deals home/overview) page, then you could add the following code to the functions.php file of your active theme or child theme.


remove_action( ‘wc_deals_home_header_data’, ‘wc_deals_home_header_left’, 10 );

remove_action( ‘wc_deals_home_header_data’, ‘wc_deals_home_header_right’, 15 );


add_action( ‘wc_deals_home_header_data’, ‘wc_deals_home_header_left’, 15 );

add_action( ‘wc_deals_home_header_data’, ‘wc_deals_home_header_right’, 10 );


This will change the design and the Deal on the home page will look like the one in the screen shot above (after you made these changes)




Below you can see the list of all available hooks, integrated in to the WooCommerce Deals Extension:


 

/**
* Social Sharing Buttons
*
* @see wc_deals_social_sharing()
* @see wc_deals_social_facebook()
* @see wc_deals_social_twitter()
* @see wc_deals_social_google()
* @see wc_deals_social_fanpage()
*/
add_action( 'wc_deals_social_buttons_data', 'wc_deals_social_sharing', 5 );
add_action( 'wc_deals_social_buttons_data', 'wc_deals_social_facebook', 10 );
add_action( 'wc_deals_social_buttons_data', 'wc_deals_social_twitter', 15 );
add_action( 'wc_deals_social_buttons_data', 'wc_deals_social_google', 20 );
add_action( 'wc_deals_social_buttons_data', 'wc_deals_social_fanpage', 25 );




/* **************************************************************************
Deals Home Page Hooks
************************************************************************** */




/**
* Page Content
*
* @see wc_deals_home_header()
* @see wc_deals_home_content()
*/
add_action( 'wc_deals_home', 'wc_deals_home_header', 5 );
add_action( 'wc_deals_home', 'wc_deals_home_content', 10 );




/**
* Header Content
*
* @see wc_deals_home_header_title()
* @see wc_deals_home_header_left()
* @see wc_deals_home_header_right()
*/
add_action( 'wc_deals_home_header_data', 'wc_deals_home_header_title', 5 );
add_action( 'wc_deals_home_header_data', 'wc_deals_home_header_left', 10 );
add_action( 'wc_deals_home_header_data', 'wc_deals_home_header_right', 15 );




/**
* Header Left
*
* @see wc_deals_home_header_timer()
* @see wc_deals_home_header_image()
* @see wc_deals_home_header_excerpt()
*/
if( $detect_mobile->isMobile() && !$detect_mobile->isTablet() ){
add_action( 'wc_deals_home_header_left_data', 'wc_deals_home_header_timer', 5 );
}
add_action( 'wc_deals_home_header_left_data', 'wc_deals_home_header_image', 10 );
add_action( 'wc_deals_home_header_left_data', 'wc_deals_home_header_excerpt', 15 );




/**
* Header Right
*
* @see wc_deals_home_header_timer()
* @see wc_deals_home_header_discount()
* @see wc_deals_home_header_value()
* @see wc_deals_home_header_save()
* @see wc_deals_home_header_rating()
* @see wc_deals_single_deal_avail_bought()
* @see wc_deals_home_header_see_deals()
*/
if( $detect_mobile->isMobile() && !$detect_mobile->isTablet() ){




} else {
add_action( 'wc_deals_home_header_right_data', 'wc_deals_home_header_timer', 5 );
}
add_action( 'wc_deals_home_header_right_data', 'wc_deals_home_header_discount', 10 );
add_action( 'wc_deals_home_header_right_data', 'wc_deals_home_header_value', 15 );
add_action( 'wc_deals_home_header_right_data', 'wc_deals_home_header_save', 20 );
add_action( 'wc_deals_home_header_right_data', 'wc_deals_home_header_rating', 25 );
add_action( 'wc_deals_home_header_right_data', 'wc_deals_single_deal_avail_bought', 30 );
add_action( 'wc_deals_home_header_right_data', 'wc_deals_home_header_see_deals', 35 );




/**
* More Deals Template
*
* @see wc_deals_home_navigation_data()
* @see wc_deals_home_active_deals_data()
* @see wc_deals_home_ending_deals_data()
* @see wc_deals_home_upcoming_deals_data()
*/
add_action( 'wc_deals_home_more_deals', 'wc_deals_home_navigation_data', 5 );
add_action( 'wc_deals_home_more_deals', 'wc_deals_home_active_deals_data', 10 );
add_action( 'wc_deals_home_more_deals', 'wc_deals_home_ending_deals_data', 15 );
add_action( 'wc_deals_home_more_deals', 'wc_deals_home_upcoming_deals_data', 20 );




/**
* More Deals Content
*
* @see wc_deals_home_more_deals_discount()
* @see wc_deals_home_more_deals_image()
* @see wc_deals_home_more_deals_timer()
* @see wc_deals_home_more_deals_title()
* @see wc_deals_home_more_deals_price()
* @see wc_deals_home_more_deals_see_deal()
*/
add_action( 'wc_deals_home_more_deals_content', 'wc_deals_home_more_deals_discount', 5 );
add_action( 'wc_deals_home_more_deals_content', 'wc_deals_home_more_deals_image', 10 );
add_action( 'wc_deals_home_more_deals_content', 'wc_deals_home_more_deals_timer', 15 );
add_action( 'wc_deals_home_more_deals_content', 'wc_deals_home_more_deals_title', 20 );
add_action( 'wc_deals_home_more_deals_content', 'wc_deals_home_more_deals_rating', 25 );
add_action( 'wc_deals_home_more_deals_content', 'wc_deals_home_more_deals_price', 30 );	
add_action( 'wc_deals_home_more_deals_content', 'wc_deals_home_more_deals_see_deal', 35 );








/* **************************************************************************
Deals Single Page Hooks
************************************************************************** */




/**
* Single Deal Content
*
* @see wc_deals_single_deal_price()
* @see wc_deals_single_dime_sale()
* @see wc_deals_single_add_to_cart()
* @see wc_deals_single_deal_rating()
* @see wc_deals_single_value()
* @see wc_deals_single_discount()
* @see wc_deals_single_save()
* @see wc_deals_single_deal_timer()
* @see wc_deals_single_deal_avail_bought()
* @see wc_deals_social_buttons()
*/
add_action( 'wc_deals_single', 'wc_deals_single_deal_price', 5 );
add_action( 'wc_deals_single', 'wc_deals_single_dime_sale', 10 );
add_action( 'wc_deals_single', 'wc_deals_single_add_to_cart', 46 );
add_action( 'wc_deals_single', 'wc_deals_single_deal_rating', 20 );
add_action( 'wc_deals_single', 'wc_deals_single_value', 25 );
add_action( 'wc_deals_single', 'wc_deals_single_discount', 30 );
add_action( 'wc_deals_single', 'wc_deals_single_save', 35 );
add_action( 'wc_deals_single', 'wc_deals_single_deal_timer', 40 );
add_action( 'wc_deals_single', 'wc_deals_single_deal_avail_bought', 45 );
add_action( 'wc_deals_single', 'wc_deals_social_buttons', 50 );




/**
* Deal Details ( Available & Bought )
*
* @see wc_deals_single_available()
* @see wc_deals_single_bought()
*/
add_action( 'wc_deals_available_bought', 'wc_deals_single_available', 5 );
add_action( 'wc_deals_available_bought', 'wc_deals_single_bought', 10 );




/**
* Business Info (After Product Content)
*
* @see wc_deals_single_business_title()
* @see wc_deals_single_business_location()
* @see wc_deals_single_business_logo()
* @see wc_deals_single_business_address()
* @see wc_deals_single_terms_conditions()
*/
add_action( 'wc_deals_single_business_info', 'wc_deals_single_business_title', 5 );
add_action( 'wc_deals_single_business_info', 'wc_deals_single_business_location', 10 );
add_action( 'wc_deals_single_business_info', 'wc_deals_single_business_logo', 15 );
add_action( 'wc_deals_single_business_info', 'wc_deals_single_business_address', 20 );
add_action( 'wc_deals_single_business_info', 'wc_deals_single_terms_conditions', 25 );








/* **************************************************************************
Product Archive Hooks
************************************************************************** */




/**
* Timer
*
* @see wc_deals_shop_deal_timer()
*/
add_action( 'wc_deals_shop_deal_timer', 'wc_deals_shop_deal_timer', 10 );