WooCommerce Product Price Shortcode

Here's the PHP code for adding a custom shortcode to your site, which will output the price of a given WooCommerce product: add_shortcode('db_wc_product_price', 'db_wc_product_price'); function db_wc_product_price($atts) { if (!function_exists('wc_get_product') ||...

Disable WooCommerce Marketplace Suggestions

WooCommerce shows suggestions for products from its marketplace, within the WordPress admin area. If you'd like to disable these Marketplace Suggestions, here are several ways to do so. Disable Marketplace Suggestions from the WooCommerce Settings The Marketplace...

Hide WooCommerce Cart Icon when Cart Empty

When WooCommerce is active on a site running the Divi theme, Divi will display a cart icon in the header. Clicking on this cart will take the the user to the checkout. If you don't want users clicking through to an empty checkout page, you can hide the cart icon while...

Remove Sidebar on Woocommerce Product Pages

By default, the Divi Theme will display a sidebar on Woocommerce product pages. Here's how you can hide / remove the sidebar. Hiding the Sidebar using CSS You can use the following CSS to hide the sidebar from your Woocommmerce product pages and center the product...

Changing the WooCommerce Cart Icon

The Divi Theme has support for WooCommerce built-in and will display a cart icon in the header when products have been added to the cart. The default icon is a shopping cart. Here's how to change it to something different. Using a Different Built-in Icon The cart icon...