Unverified

Name

Hide if Local Pickup is not selected, change Address (CSS version)

About

This CSS should be used with the: https://codesnippets.cloud/snippet/Unkillhank/Hide-users-Address-if-Local-Pickup-is-not-selected-(PHP-version) This is the CSS combination to display a unique address, if the "other" shipping options are selected. I'm using the plugin “WooCommerce Advanced Shipping” by “Jeroen Sormani”

Language

CSS

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

Copy the code, into your awesome snippets tool ;) Use the CSS option and save. Change the css ID's to yours. Look for #shipping_method_0_97676:checked + label:after And change “#shipping_method_0_97676” to yours. This is the matching PHP code for the css: https://codesnippets.cloud/snippet/Unkillhank/Hide-users-Address-if-Local-Pickup-is-not-selected-(PHP-version)

Codevault

Unkillhank

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

21/01/2023

Important Note

This snippet has the following status:

Unverified

This snippet has not been verified, use with caution and at your own risk. See details provided by author in sidebar and click below to find out more.

Hide if Local Pickup is not selected, change Address (CSS version)

 
                    
1/*THE PHP VERSION for this CSS*/
2/*https://codesnippets.cloud/snippet/Unkillhank/Hide-users-Address-if-Local-Pickup-is-not-selected-(PHP-version)*/
3 
4/* change this to your css ID's, Find them somewhere in the "li" list in the "input type" of your cartpage */
5#shipping_method_0_97676:checked + label:after {
6 content: "Your Address 709279, Your Address method 709279";
7 display: block;
8 color: red;
9 font-size: 1.3rem;
10 width: 100%;
11}
12#shipping_method_0_709279:checked + label:after {
13 content: "Your Address 709279, Your Address method 709279";
14 display: block;
15 color: red;
16 font-size: 1.3rem;
17 width: 100%;
18}
19#shipping_method_0_97838:checked + label:after {
20 content: "Your Address 709279, Your Address method 709279";
21 display: block;
22 color: red;
23 font-size: 1.3rem;
24 width: 100%;
25}

0

Comments

  • M
    Max

    1 year ago

    I love this snippet! Commenting on my snippet is no different than you taking selfies, LOL eat it!

Related Snippets

Please see some snippets below related to this snippet..

WooCommerce

AI Verified

0

Ensure cart contents update when products are added to the cart via AJAX

Added: 2 years ago

Last Updated: 1 year ago

It can happen that the shopping cart does not update immediately when you add products. This is due to the transmission of the products to the shopping cart via Ajax. So that this happens safely, ther...

WooCommerce

AI Verified

1

Woo-Commerce Change Place-Order Button-Text

Added: 1 year ago

Last Updated: 1 year ago

In this article, we will learn to change the place order button text with our own custom text.

WooCommerce

AI Verified

0

WooCommerce Show Custom Content Above Product Meta

Added: 1 year ago

Last Updated: 1 year ago

This snippet allows you to display custom content above the product meta. Product meta being the SKU, categories and tags the product belongs to. You may wish to output more important meta data using...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WooCommerce

AI Verified

0

Hide users Address if Local Pickup is not selected (PHP version)

Added: 1 year ago

Last Updated: 1 year ago

This is to “Hide the user's Address if Local Pickup is not selected” I'm using the plugin “WooCommerce Advanced Shipping” by “Jeroen Sormani”, but it doesn't seem to matter. It's currently working wit...

WooCommerce

Unverified

0

Hide if Local Pickup is not selected, change Address (CSS version)

Added: 1 year ago

Last Updated: 1 year ago

This CSS should be used with the: https://codesnippets.cloud/snippet/Unkillhank/Hide-users-Address-if-Local-Pickup-is-not-selected-(PHP-version) This is the CSS combination to display a unique add...