remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
add_filter('woof_print_content_before_search_form', function($content) {
global $WOOF;
if ($WOOF->is_isset_in_request_data($WOOF->get_swoof_search_slug())){
return $content . 'Found results: ' . do_shortcode('[woof_found_count]') . '<br /><br />' ;
}
return '';
});
- Install YITH Infinite Scrolling and set-up for replace woocommerce pagination.
- Auto complete orders. Or replace the file divi_functions.php. Remember to disable mail for Processing Orders
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order_id ) {
if ( ! $order_id ) {
return;
}
$order = wc_get_order( $order_id );
$order->update_status( 'completed' );
}
- Put the sidebar on top (for mobile responsive). Replace the following function in file _wp-content/themes/Divi/functions.php or replace the file with divi_functions.php
function et_divi_output_content_wrapper() {
echo '
<div id="main-content">
<div class="container">
<div id="content-area" class="clearfix">
<div id="left-area">';
}
function et_divi_output_content_wrapper_end() {
$default_sidebar_class = is_rtl() ? 'et_left_sidebar' : 'et_right_sidebar';
echo '</div> <!-- #left-area -->';
if (
( is_product() && 'et_full_width_page' !== get_post_meta( get_the_ID(), '_et_pb_page_layout', true ) )
||
( ( is_shop() || is_product_category() || is_product_tag() ) && 'et_full_width_page' !== et_get_option( 'divi_shop_page_sidebar', $default_sidebar_class ) )
) {
woocommerce_get_sidebar();
}
echo '
</div> <!-- #content-area -->
</div> <!-- .container -->
</div> <!-- #main-content -->';
}
function et_divi_output_content_wrapper() {
echo '
<div id="main-content">
<div class="container">
<div id="content-area" class="clearfix">';
$default_sidebar_class = is_rtl() ? 'et_left_sidebar' : 'et_right_sidebar';
if (
( is_product() && 'et_full_width_page' !== get_post_meta( get_the_ID(), '_et_pb_page_layout', true ) )
||
( ( is_shop() || is_product_category() || is_product_tag() ) && 'et_full_width_page' !== et_get_option( 'divi_shop_page_sidebar', $default_sidebar_class ) )
) {
woocommerce_get_sidebar();
}
echo ' <div id="left-area">';
}
function et_divi_output_content_wrapper_end() {
echo '</div> <!-- #left-area -->';
echo '
</div> <!-- #content-area -->
</div> <!-- .container -->
</div> <!-- #main-content -->';
}
- Fix all menu
- Influencer Dashbord Menu
- Dashboard (page)
- Add Instagram Page (page)
- Edit account (page)
- Primary Menu
- Add dashboard (page) Show if Influencer, Hide if Company
- Remove my account for influenzer
- Edit page Dashboard [1/4 , 3/4] [Sidebar, Text], [Influencer Dashbord Menu, [wpuf_dashboard post_type="product"]]
- Edit page Edit [1/4 , 3/4] [Sidebar, Text], [Influencer Dashbord Menu, [wpuf_edit]]
- Edit page Edit Account [1/4 , 3/4] [Sidebar, Text], [Influencer Dashbord Menu, [wpuf_editprofile]]
- Influencer Dashbord Menu
- Disable (and delete):
- Install:
- Update custom mail template.