0

Change number of related products output Hook

To change the number of related products display in the detail page,use the following code in your theme’s functions.php file. [code language=”php”] add_filter( ‘woocommerce_output_related_products_args’, ‘sp_related_products_args’ ); function sp_related_products_args( $args ) { $args[‘posts_per_page’] = 4; // 4 related products $args[‘columns’] =… Continue Reading

0

Remove Woocommerce default address fields

Use the following action hook to remove default address fields value from checkout page [code language=”css”] <pre><code>add_filter(‘woocommerce_default_address_fields’, override_address_fields’); function override_address_fields( $address_fields ) { $address_fields[‘address_1’][‘placeholder’] = ”; $address_fields[‘address_2’][‘placeholder’] = ”; $address_fields[‘city’][‘placeholder’] = ”; $address_fields[‘state’][‘placeholder’] = ”; $address_fields[‘postcode’][‘placeholder’] = ”; return $address_fields;… Continue Reading

0

Removing WooThemes Updater Plugin Notice and IgniteWoo Updater Notice

Add the following lines in function.php [code language=”css”][/code] // Remove WooCommerce Updater remove_action(‘admin_notices’, ‘woothemes_updater_notice’); // Remove IgniteWoo Updater remove_action(‘admin_notices’, ‘ignitewoo_updater_notice’); [/css] We noticed after the installation of the new version of Woocommerce, WooThemes and IgniteWoo Plugins there will be a… Continue Reading

0

WP Nav Menu Dissapears in Category Pages

Add the Following Code in the function.php [code langauage=”css”] function getMainMenu($menulocation){ $locations = get_nav_menu_locations(); $menuItems = wp_get_nav_menu_items( $locations[ $menulocation ] ); if(empty($menuItems)) return false; else{ wp_nav_menu(array(‘theme_location’ => $menulocation)); return true; } } [/code] Add the following code in the your… Continue Reading