If you have a Divi/WooCommerce site and you don't have any posts, this is perfect for you. The default Divi search will now search only your products. You can add this to the Divi theme options Integration tab in the head. Or add to a Code module in your global...
WooCommerce Tips
How to add display Woocommerce product category on the order edit page
Add the following PHP code to your child theme functions.php file. [php] //to display the category on the admin order page function action_woocommerce_admin_order_item_headers( ) { ?> <th class="item sortable" colspan="2"...
Enlarge product image on rollover for Divi Shop module
Add the following CSS code to the Divi theme options area or your child theme style.css file. [css] /* enlarge shop module product images on rollover BEGIN */ .et_shop_image img {transition: transform .2s;} .et_shop_image img:hover {transform: scale(1.25);} /* enlarge...
Change the default U.S. state in the dropdown on WooCommerce checkout page
Add the following PHP code to your child theme functions.php file. [php] //default checkout US state dropdown blank instead of the default site state making taxes sometimes show up add_filter( 'default_checkout_billing_state', 'change_default_checkout_state' );...
How to Change In Stock text in WooCommerce
Add the following PHP code to your child theme functions.php file. [php] /* Change In Stock text in WooCommerce */ add_filter( 'woocommerce_get_availability', 'wcs_custom_get_availability', 1, 2); function wcs_custom_get_availability( $availability, $_product ) { //...
Move email form to top of WooCommerce checkout page
Add the following PHP code to your child theme functions.php file. [php] /* Move email form to top of Woocommerce checkout page */ add_filter( 'woocommerce_billing_fields', 'custom_woo_move_checkout_email_field', 10, 1 ); function custom_woo_move_checkout_email_field(...
Hide Coupon Code Area on WooCommerce Cart Page
Add the following PHP code to your child theme functions.php file. [php] // hide coupon field on the cart page function disable_coupon_field_on_cart( $enabled ) { if ( is_cart() ) { $enabled = false; } return $enabled; } add_filter( 'woocommerce_coupons_enabled',...
Show Product Thumbnail on WooCommerce Checkout Page
Add the following PHP code to your child theme functions.php file. [php] /** * Show product thumbnail on checkout page. * * @see {templates|woocommerce}/checkout/review-order.php */ add_filter( 'woocommerce_cart_item_name', 'jfs_checkout_show_product_thumbnail', 10, 2...
How to delay WooCommerce Emails
You may find this helps speed up the checkout process by delaying the WooCommerce order emails from sending immediately at checkout. Add the following PHP code to your child theme functions.php file. [php] // delay woocommerce emails add_filter(...
Add the Add to Cart button to WooCommerce Shop and Category pages
Add the following to your child theme functions.php file. [php] // Add Add to Cart buttons to shop pages add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 ); [/php]
eCommerce with WooCommerce and WordPress – What you need to know
Here are some thoughts, ideas and tips that may help you on the way to building your own eCommerce website with WooCommerce and WordPress. What does it cost? I guess it comes down to the level of game you want to play. If you want to do things on the cheap, then...
How to customize WooCommerce messages on cart and checkout pages
Add the following CSS in the Divi theme options area and customize however you like. [css] .woocommerce-error, .woocommerce .woocommerce-error, .woocommerce-info, .woocommerce .woocommerce-info, .woocommerce-message, .woocommerce .woocommerce-message { padding: 1em...
Blog Categories
>
blog
menu