StoreCustomizer https://storecustomizer.com Customize Your WooCommerce Store Fri, 26 May 2023 13:47:08 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.5 https://storecustomizer.com/wp-content/uploads/2020/04/storecustomizer-150x150.png StoreCustomizer https://storecustomizer.com 32 32 WooCommerce Account Page Hooks – Easy visual hook guide https://storecustomizer.com/woocommerce-account-page-hooks-visual-guide/ Tue, 28 Feb 2023 13:08:13 +0000 https://storecustomizer.com/?p=1760

Here we’ve created a visual guide displaying all the WooCommerce account page hooks which you can use to edit features or add extra functionality to your WooCommerce store.

Simply highlight and copy the hook name from the WooCommerce account page visual guide below and read the section on how to implement hooks within your functions.php file.

If you’re not happy editing the code yourself, take a look at our StoreCustomizer plugin which has lots of extra useful features for your cart page which you will enjoy from auto-update cart, add banners or custom text, remove the cart product links and more.

This visual guide is basic on the default WooCommerce layouts… If you find certain hooks are in slightly different places then that is most likely from HTML changes made by the theme.

Logged Out - WooCommerce Account Page Hooks:

If a user is NOT logged in, they are redirected to the login and/or register page.

WooCommerce Account Page (Logged Out)

woocommerce_before_customer_login_form

Login

woocommerce_login_form_start
woocommerce_login_form
woocommerce_login_form_end

Register

woocommerce_register_form_start
woocommerce_register_form
register_form
woocommerce_register_form_end
woocommerce_after_customer_login_form

Available (logged out) WooCommerce Account Page Hooks:

When a user is logged out they are not able to view the account page and so these are all the available hooks for the login and register pages.

These are all of the available WooCommerce account page hooks, they are quite self explanatory in their position but do refer to the visual hook guide if you’re not 100% sure on where exactly they hook into on the WooCommerce account page.

If your theme is overriding the WooCommerce templates then it’s possible that these hooks could be missing, or placed in a slightly different position.

 

Next up…

Logged In - WooCommerce Account Page Hooks:

WooCommerce Account Page (Logged In)

woocommerce_account_navigation
woocommerce_before_account_navigation
woocommerce_after_account_navigation

Available (logged in) WooCommerce Account Page Hooks:

Once a user logs in, they will have access to all the different WooCommerce Account Pages.

These are all of the available WooCommerce account page hooks, they are quite self explanatory in their position but do refer to the visual hook guide if you’re not 100% sure where they are.

If you find some of these hooks are missing or are in different positions then that is most likely because of the WordPress theme you are using.

Happy Coding!

How to use PHP hooks on your website:

To use these page hooks you will need a little understanding of php code… You can add the following function to your website using by creating a child theme and then adding this code to the child themes functions.php file, or you can install our Site Customizations plugin and add the php code via the php file provided.

If you are not comfortable using code then please try out our StoreCustomizer plugin which offers a lot of useful functionality using all these hooks for you to customize your WooCommerce store… No coding knowledge needed.

/*
* My Custom Function
*/
function my_custom_function( array $params ) {
// Some Code Here
}
add_filter( 'woocommerce_after_cart_contents​', 'my_custom_function', 20 );

Our free StoreCustomizer plugin offers different functionality to add sold out banners, product sales statistics, stock amounts and lots more to your WooCommerce shop page, all from a visual interface so you don’t need to touch any code… Have a look yourself and see what all StoreCustomizer offers.

]]>
Remove WooCommerce related products from your store https://storecustomizer.com/remove-woocommerce-related-products/ Wed, 01 Feb 2023 09:24:22 +0000 https://storecustomizer.com/?p=1732 As a WooCommerce online store owner, you may find that you want to remove WooCommerce related products as this section maybe be distracting to your customers, or may not always be relevant to your customer’s purchase… So removing it can help to streamline the customer’s experience in your store.

Removing the related products section from your WooCommerce product pages is a simple process that can be easily using a child theme, or using the StoreCustomizer plugin.

Remove WooCommerce related products using code

To remove the related products section from your WooCommerce product pages, you simply need to add the following code to your child theme functions.php file.

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

Go to a product page on your website and now the related products should not be there anymore.

Remove related products using StoreCustomizer

If you’re not very comfortable diving into the code yourself, or you’d just simply prefer to use a plugin to remove the related products and do other WooCommerce store edits then download and install the StoreCustomizer plugin, or navigate to Dashboard -> Plugins -> Add New in your WordPress Dashboard and search for “StoreCsutomizer” and install it from there.

Once StoreCustomizer is installed and activated, you can then navigate to Customize -> StoreCustomizer -> WooCommerce Product Page and scroll down the settings to the “Related & Recommended Products” section.

StoreCustomizer - Edit or Remove WooCommerce related products section on your product pages
Edit or Remove the Related Products

Here you’ll see you can either edit the Related Products title, adjust the Products per row or Products per page for the WooCommerce related products, OR you can select “Remove Section” to completely remove this section from your product pages.

]]>
Remove WooCommerce breadcrumbs from your shop https://storecustomizer.com/remove-woocommerce-breadcrumbs/ Wed, 01 Feb 2023 05:10:13 +0000 https://storecustomizer.com/?p=1724 To remove WooCommerce breadcrumbs navigation from your shop & product pages is quite simple!

In this tutorial we’ll give you 2 options to remove them… 1 using custom code that you can add to your functions.php file and another option using the StoreCustomizer plugin.

Remove WooCommerce breadcrumbs using code

To use your own code to remove WooCommerce breadcrumbs, it is advised to use a child theme of your current theme, if you’re not already, as that way when you update your theme you won’t lose any of these custom changes you’ve made.

Add the following PHP code to your child themes functions.php file and that will remove all breadcrumbs from your WooCommerce pages.

remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb' );

OR, if you’d like to remove it only from the WooCommerce Product Pages

if (is_product()) {
    remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb' );
}

Remove WooCommerce breadcrumbs using StoreCustomizer

The other option, if you’re not very comfortable jumping into the code yourself, is to use a plugin like our StoreCustomizer plugin.

StoreCustomizer offers these as built in settings within the WordPress Customizer and you can easily remove them for Shop and/or Product pages as you want.

Using StoreCustomizer, simply navigate to the WordPress Customizer -> StoreCustomizer -> WooCommerce Shop Page.

There, at the top you’ll find the setting to Remove Shop Page Breadcrumbs.

Remove WooCommerce breadcrumbs from the shop pages
Remove shop page breadcrumbs

And for the Product pages, you can navigate to Customize -> StoreCustomizer -> WooCommerce Product Page and turn on the setting to remove the breadcrumbs from the WooCommerce product pages.

Remove WooCommerce breadcrumbs from the product pages
Remove shop page breadcrumbs
]]>
2 easy ways to edit the WooCommerce my account intro text https://storecustomizer.com/edit-the-woocommerce-my-account-intro-text/ Wed, 23 Dec 2020 09:55:15 +0000 https://storecustomizer.com/?p=1109 So you’re wanting to edit the default WooCommerce my account intro text on the Dashboard tab of your account page in your WooCommerce store… We have 2 ways you can do this… Using the StoreCustomizer free plugin, or overriding the WooCommerce templates with a child theme.

Edit the WooCommerce my account intro text on your WooCommerce store

Edit the WooCommerce my account intro text using StoreCustomizer:

The easiest and quickest way to edit the WooCommerce my account intro text is to use the free StoreCustomizer plugin… Simply install StoreCustomizer from the WordPress.org directory, activate it and then navigate to Customize -> StoreCustomizer -> Account Page, go to the Account Tabs section and click to edit the Account Dashboard tab.

StoreCustomizer - Edit the WooCommerce my account intro text

You’ll have 2 options here… You can either add a simple paragraph of text by selecting the Dashboard Tab Content to display Plain Text.

Or you can choose to display Page Content… Then you can create and build a new WordPress page and select to display that page content on the account dashboard tab.

There is also the option to Remove the default dashboard text.

StoreCustomizer - Remove the default account dashboard tab text

Edit the WooCommerce my account intro text by overriding WooCommerce Templates:

Edit template files in WooCommerce requires using overrides. You’ll need to copy the template file into a directory within your child theme named /woocommerce keeping the same file structure as the templates folder in the WooCommerce plugin, but removing the /templates/ subdirectory.

To override the dashboard text to be what you need, go to wp-content/plugins/woocommerce/templates/myaccount/dashboard.php  in the WooCommerce plugin folder and copy the file to wp-content/themes/yourtheme/woocommerce/myaccount/dashboard.php.

Open the new, copied file in a code editor and fine the line(s) of text that you want to edit.

The copied file, with your added changes will now override the WooCommerce default template file, and you will not lose your changes when WooCommerce posts an update.

This method is not as easy as using the StoreCustomizer plugin, and you’ll need to understand a lot more about code to be able to build a new page for the Dashboard tab.


Hope that helps… Happy building!

]]>
WooCommerce Checkout Page Hooks – Easy Visual hook guide https://storecustomizer.com/woocommerce-checkout-page-hooks-visual-guide/ Mon, 19 Oct 2020 13:20:17 +0000 https://storecustomizer.com/?p=1014

There are a bunch of WooCommerce checkout page hooks available on the checkout page so that you can add your own functions to the theme you’re using, and easily add any needed functionality to your online stores checkout page.

Simply grab the name of one of the WooCommerce checkout page hooks from the visual guide below and scroll a bit further to read an example of how to implement it with your themes functions.php file.

Also, have a look at our free StoreCustomizer plugin which has offers a lot of extra useful features for your checkout page in WooCommerce. The StoreCustomizer plugin lets you remove certain checkout fields, customize the WooCommerce “Place Order” button, edit text and add extra text to certain checkout areas.

Visual display of the WooCommerce Checkout Page Hooks:

Checkout

woocommerce_before_checkout_form
Have a coupon? Click here to enter your code
woocommerce_checkout_before_customer_details

Billing details

woocommerce_before_checkout_billing_form
woocommerce_after_checkout_billing_form
woocommerce_before_checkout_shipping_form
woocommerce_after_checkout_shipping_form
woocommerce_before_order_notes
woocommerce_after_order_notes
woocommerce_checkout_after_customer_details

Your Order

woocommerce_checkout_before_order_review
Product
Total
woocommerce_review_order_before_cart_contents
StoreCustomizer Pro
$39.00
Elation
$21.00
Overlay
$29.00
woocommerce_review_order_after_cart_contents
SubTotal
$89.00
woocommerce_review_order_before_shipping
Shipping
woocommerce_review_order_after_shipping
woocommerce_review_order_before_order_total
Total
$89.00
woocommerce_review_order_after_order_total
woocommerce_review_order_before_payment
Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.

Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our privacy policy.

woocommerce_review_order_before_submit
woocommerce_review_order_after_submit
woocommerce_review_order_after_payment
woocommerce_checkout_after_order_review
woocommerce_after_checkout_form

Available WooCommerce Checkout Page Hooks:

All of these hooks are available on your WooCommerce Store Checkout page, the hooks are self explanatory as to where the will place your new code, but do also refer to the visual hook guide if you’re not 100% sure on where exactly they hook into on your checkout page.

If your theme is overriding the WooCommerce templates then it’s possible that these hooks could be missing, or placed in a slightly different position.

Happy Coding!

How to use a PHP hooks on your website:

To use any of these WooCommerce checkout page hooks you will need a little understanding of php code… You can add the following function to your website using by creating a child theme and then adding this code to the child themes functions.php file, or you can install our Site Customizations plugin and add the php code via the php file provided.

If you are not comfortable using code then please try out our StoreCustomizer plugin which offers a lot of useful functionality using all these hooks for you to customize your WooCommerce store… No coding knowledge needed.

/*
* My Custom Function
*/
function my_custom_function( array $params ) {
// Some Code Here
}
add_filter( 'woocommerce_after_checkout_form​', 'my_custom_function', 20 );

Our free StoreCustomizer plugin offers different functionality to add sold out banners, product sales statistics, stock amounts and lots more to your WooCommerce shop page, all from a visual interface so you don’t need to touch any code… Have a look yourself and see what all StoreCustomizer offers.

]]>
WooCommerce Cart Page Hooks – Easy visual hook guide https://storecustomizer.com/woocommerce-cart-page-hooks-easy-guide/ Fri, 16 Oct 2020 16:27:29 +0000 https://storecustomizer.com/?p=983

See below, our visual guide displaying all the WooCommerce cart page hooks which are available on your cart page in WooCommerce.

The WooCommerce cart page offers all these hooks on the cart page so that you can add your own functions to your theme files to add extra functionality to the cart page.

Simply grab the hook name from the guide below and read further down how to implement it with your functions.php file.

Have a look at our StoreCustomizer plugin which has lots of extra useful features for your cart page which you will enjoy from auto-update cart, add banners or custom text, remove the cart product links and more.

Visual display of the WooCommerce Cart Page Hooks:

WooCommerce Cart Page

woocommerce_before_cart
woocommerce_before_cart_table

Product

Price

Quantity

Total

woocommerce_before_cart_contents
StoreCustomizer Test Product

$29

1

$29

StoreCustomizer Test Product

$21

1

$21

woocommerce_cart_contents
Coupon Code
woocommerce_cart_coupon
woocommerce_after_cart_contents
woocommerce_after_cart_table
woocommerce_cart_collaterals

You may be interested in...

WooCustomizer Image Placeholder

Product Title

$18.00
WooCustomizer Image Placeholder

Product Title

$18.00
woocommerce_before_cart_totals

Cart Totals

SubTotal
$89.00
woocommerce_cart_totals_before_shipping
Shipping
woocommerce_before_shipping_calculator
woocommerce_after_shipping_calculator
woocommerce_cart_totals_after_shipping
woocommerce_cart_totals_before_order_total
Total
$89.00
woocommerce_cart_totals_after_order_total
woocommerce_proceed_to_checkout
woocommerce_after_cart_totals
woocommerce_after_cart

Available WooCommerce Cart Page Hooks:

All of these hooks are available in the WooCommerce cart page, they are pretty self explanatory in their position but do refer to the visual hook guide if you’re not 100% sure on where exactly they hook into on the WooCommerce shop page.

If your theme is overriding the WooCommerce templates then it’s possible that these hooks could be missing, or placed in a slightly different position.

Happy Coding!

How to use a PHP hooks on your website:

To use these page hooks you will need a little understanding of php code… You can add the following function to your website using by creating a child theme and then adding this code to the child themes functions.php file, or you can install our Site Customizations plugin and add the php code via the php file provided.

If you are not comfortable using code then please try out our StoreCustomizer plugin which offers a lot of useful functionality using all these hooks for you to customize your WooCommerce store… No coding knowledge needed.

/*
* My Custom Function
*/
function my_custom_function( array $params ) {
// Some Code Here
}
add_filter( 'woocommerce_after_cart_contents​', 'my_custom_function', 20 );

Our free StoreCustomizer plugin offers different functionality to add sold out banners, product sales statistics, stock amounts and lots more to your WooCommerce shop page, all from a visual interface so you don’t need to touch any code… Have a look yourself and see what all StoreCustomizer offers.

]]>
Easily remove Related Products on WooCommerce Product page https://storecustomizer.com/remove-related-products-woocommerce-products/ Tue, 14 Jan 2020 08:07:39 +0000 https://storecustomizer.com/?p=817 In this snippet we’ll show you 2 different ways to remove related products on the WooCommerce single product page for all products.

To add this code to your WordPress website, you will either need to create a Child Theme yourself, or to add a small Site Customizations plugin where you can add any type of custom code.

Remove related products using php:

Simply add the following PHP to your child theme functions.php file and that will remove the related products section on all WooCommerce products.

// Remove WooCommerce Related Products on product single page
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

Remove related products using CSS

Another way to remove related products on the WooCommerce single product page is to use a little custom CSS. This method is recommended more as a backup for the php snippet and we recommend rather using the php snippet above.

body.single-product section.related.products {
    display: none !important;
}

If you’re rather unfamiliar with adding custom code to your WordPress site and would prefer to easily remove the Related Products section by using visual settings in the WordPress Customizer, then try out our StoreCustomizer WooCommerce plugin.

Our StoreCustomizer plugin offers these code snippets all built into the WordPress Customizer to easily remove related products on your product pages in WooCommerce, the WooCustomizer plugin uses the php snippet as well as the custom CSS as a backup.

]]>
WooCommerce Product Page Hooks – Easy Visual Guide https://storecustomizer.com/woocommerce-product-page-hooks-visual-guide/ Mon, 13 Jan 2020 14:31:37 +0000 https://storecustomizer.com/?p=807

WooCommerce offers many available hooks added to the WooCommerce product single page for further customizing, you can use these hooks to add any needed functionality to your WooCommerce product pages.

Below is a visual guide of all the WooCommerce product page hooks available on the each single product, so you can easy see where each hook will show up.

Visual display of the WooCommerce Product Page Hooks:

This easy visual guide is shown on WooCommerce Variable Product but it will be similar for all product types.

You can view an example below of how to use the code on your own website and add extra elements or functionlaity to your WooCommerce product pages.

woocommerce_before_single_product
woocommerce_before_single_product_summary
WooCustomizer Image Placeholder
woocommerce_product_thumbnails

There are mentions of this hook not working after the new WooCommerce gallery since WC 3.0

woocommerce_single_product_summary

Product Title

$18.00 – $42.00

This is the product short description.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut dui id mauris laoreet pellentesque. Etiam a nunc turpis.

woocommerce_before_add_to_cart_form
woocommerce_before_variations_form

Color:Clear

Color:Clear
woocommerce_before_add_to_cart_button
woocommerce_before_single_variation
woocommerce_single_variation
$42.00
woocommerce_after_single_variation
woocommerce_after_add_to_cart_button
woocommerce_after_variations_form
woocommerce_after_add_to_cart_form
woocommerce_product_meta_start

SKU: PBTWCP
Categories: Plugins, Themes
Tags: wp, free, woocustomizer

woocommerce_product_meta_end
woocommerce_share
woocommerce_after_single_product_summary
Description

This is the product LONG description.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut dui id mauris laoreet pellentesque. Etiam a nunc turpis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut dui id mauris laoreet pellentesque. Etiam a nunc turpis. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut dui id mauris laoreet pellentesque. Etiam a nunc turpis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut dui id mauris laoreet pellentesque.

Related Products

WooCustomizer Image Placeholder

Product Title

$18.00
WooCustomizer Image Placeholder

Product Title

$18.00
WooCustomizer Image Placeholder

Product Title

$18.00
WooCustomizer Image Placeholder

Product Title

$18.00
woocommerce_after_single_product

Available WooCommerce Product Page Hooks:

How to use a PHP hook on your website:

To use these hooks you will need to understand a little bit of php code… You can add the following function to your website using by creating a child theme and then adding this code to the child themes functions.php file, or you can install our Site Customizations plugin and add the php code via the php file provided.

If you are not comfortable jumping into code then please have a look at our StoreCustomizer plugin which offers a lot of useful functionality using all these hooks for you to customize WooCommerce without any coding knowledge.

/*
* My Custom Function
*/
function my_custom_function( array $params ) {
// Some Code Here
}
add_filter( 'woocommerce_before_single_product​', 'my_custom_function', 20 );

All the hooks mentioned above are available on the WooCommerce single product pages, they are all quite self explanatory in where they will display, but do refer to the visual hook guide if you’re not 100% sure on where exactly they hook into on the Single WooCommerce Product page.

Happy Coding!

Our free StoreCustomizer plugin offers different functionality to add stock amounts, remove SKU or any other items, Add a price suffix, edit your product page tabs and lots more functionality you may want added to the WooCommerce Product page, with all settings built into the Customizer you can easily do this all without editing code… Have a look yourself and see what all StoreCustomizer offers.

]]>
WooCommerce Shop Page Hooks – Easy visual guide https://storecustomizer.com/woocommerce-shop-page-hooks-visual-guide/ Mon, 13 Jan 2020 11:29:15 +0000 https://storecustomizer.com/?p=759

WooCommerce offers multiple hooks added to the WooCommerce shop page, you can use these hooks to add functionality to your WooCommerce pages.

Below is a visual interpretation or guide of all the WooCommerce shop page hooks available, so you can easy see where each hook will show up.

These WooCommerce shop page hooks are the same for the shop page, and the category and tag archive pages too.

Visual display of the WooCommerce Shop Page Hooks:

woocommerce_before_main_content

WooCommerce Shop Page

woocommerce_archive_description
woocommerce_before_shop_loop
Showing 1–2 of 10 results
woocommerce_before_shop_loop_item
woocommerce_before_shop_loop_item_title
WooCustomizer Image Placeholder
woocommerce_shop_loop_item_title

Product Title

woocommerce_after_shop_loop_item_title
$18.00
woocommerce_after_shop_loop_item
woocommerce_before_shop_loop_item
woocommerce_before_shop_loop_item_title
WooCustomizer Image Placeholder
woocommerce_shop_loop_item_title

Product Title

woocommerce_after_shop_loop_item_title
$18.00
woocommerce_after_shop_loop_item
woocommerce_after_shop_loop
woocommerce_after_main_content

Available WooCommerce Shop Page Hooks:

How to use a PHP hook on your website:

To use these page hooks you will need a little understanding of php code… You can add the following function to your website using by creating a child theme and then adding this code to the child themes functions.php file, or you can install our Site Customizations plugin and add the php code via the php file provided.

If you are not comfortable using code then please try out our StoreCustomizer plugin which offers a lot of useful functionality using all these hooks for you to customize your WooCommerce store… No coding knowledge needed.

/*
* My Custom Function
*/
function my_custom_function( array $params ) {
// Some Code Here
}
add_filter( 'woocommerce_before_main_content​', 'my_custom_function', 20 );

All these hooks are available in the WooCommerce product list pages, they are pretty self explanatory in their position but do refer to the visual hook guide if you’re not 100% sure on where exactly they hook into on the WooCommerce shop page.

Happy Coding!

Our free StoreCustomizer plugin offers different functionality to add sold out banners, product sales statistics, stock amounts and lots more to your WooCommerce shop page, all from a visual interface so you don’t need to touch any code… Have a look yourself and see what all StoreCustomizer offers.

]]>
Easily remove the Category count number on WooCommerce pages https://storecustomizer.com/remove-the-category-count-number-woocommerce/ Wed, 08 Jan 2020 10:46:14 +0000 https://storecustomizer.com/?p=746 When setting up your WooCommerce shop page, you have the option to display only the WooCommerce products, WooCommerce categories, or products and categories on your WooCommerce shop page.

When displaying the WooCommerce categories, there is a number displayed on each category showing how many products are in each category, if your WordPress theme doesn’t style this to look better than the default then it usually displays as a number with a yellow background.

In this article we’ll show you how to remove the category count number completely, or to add some custom styling to display it better for your shop customers.

These code snippets are to be added to your child theme functions.php file, or to a Site Customizations plugin so that you do not lose your changes when you update your WordPress theme.

Remove the category count number everywhere:

To completely remove the category count number, you can simply copy the following PHP code and add it to your site.

// Remove the category count for WooCommerce categories
add_filter( 'woocommerce_subcategory_count_html', '__return_null' );

And to remove the category count for WooCommerce categories using CSS you can add the following code to Customize -> Additional CSS:

.woocommerce-loop-category__title mark.count {
    display: none;
}

Add custom CSS to style the category count to look better:

If you’re wanting the category product count to stay on the categories, but you want it to look better and not have a yellow background then you can add the following custom CSS to Customize -> Additional CSS.

If you know a little more about CSS then you can add more attributes to style it as you want, otherwise, this CSS will make it smaller and lighter so it fits most theme designs and look neater.

.woocommerce-loop-category__title mark.count {
    background: none;
    font-size: 0.8em;
    color: #000;
    opacity: 0.4;
    letter-spacing: 1px;
}

Our StoreCustomizer plugin offers these code snippets all built into the WordPress Customizer to easily remove the WooCommerce category count from the shop pages that are displaying categories.

]]>