AI Verified
Hide users Address if Local Pickup is not selected (PHP version)
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 with the default “store pickup” as well. The original code did not have the array. It could be my set-up, I'm not sure. Give a go and see what happens. There is also a CSS combination to display a unique address, if the other options are selected. https://codesnippets.cloud/snippet/Unkillhank/CSS-version
PHP
Voted: 0 by 0 user(s)
Copy the code, into your awesome snippets tool ;) Use the PHP option and save. Change the ID's to yours. Look for '555', '97838', '709279', '97676'. The numbers in the array are all my ID's from the “WooCommerce Advanced Shipping” tool. Yours will be different. (WordPress ID's, not CSS ID's) P.S. The optional CSS is using the matching CSS IDs, and they happen to be the same numbers, so heads up. https://codesnippets.cloud/snippet/Unkillhank/CSS-version
Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: 6.1
Our AI bot has checked this snippet is compatable up to wordpress version: 6.1
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.
Last modified:
22/01/2023
This snippet has the following status:
AI Verified
This snippet has been tested by our AI bot, see any comments below.
AI Bot Comments:
Found 0 vulnerabilities
0
1 year ago
I love this snippet! Commenting on my snippet is no different than you taking selfies, LOL eat it!
Please see some snippets below related to this snippet..
WooCommerce
AI Verified
Added: 1 year ago
Last Updated: 2 months ago
If you do not have the facility to take payments other than cash for in-person shipping methods like local pickup, you may wish to disable the appropriate payment gateways and force the customer to pa...
WooCommerce
AI Verified
Added: 9 months ago
Last Updated: 9 months ago
How long is the discounted price of one of your products valid? This code checks if the product is being viewed on a single page and has a sale end date. If true, it adds a message indicating the offe...
WooCommerce
Unverified
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...
These are some popular snippets from this users codevault..
WooCommerce
AI Verified
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
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...
Category
Snippet Status