skrillaking
Forum Replies Created
-
It is resolved I think. A cache plugin was loading an older version
Haha long day? That new code hit the nail on the head. Kudos!
Edit
After further testing it works for Firefox but not for Chrome
- This reply was modified 3 years, 4 months ago by skrillaking.
What file should I download?
Forum: Themes and Templates
In reply to: [Trusted] Product variation price not showingThanks for the reply but im really glad I didnt start deleting stuff :sweat:. I was just dropping by to say I solved this by simply adding this code to Custom CSS in the Customizer;
.woocommerce-variation-price{ display: block; }
I havn’t had any issues. I generally just fill it full of zeros. Customers can still get in contact and receive their tracking numbers.
P.S thats great your adding this feature!
- This reply was modified 4 years, 4 months ago by skrillaking.
Also this problem
I got what you need. Lost the original source to credit but use this code. Add this to your themes functions.php
add_filter( 'woocommerce_states' , 'keep_specific_country_states', 10, 1 ); function keep_specific_country_states( $states ) { // HERE define the countries where you want to keep $countries = array('US', 'AU', 'CA'); $new_country_states = array(); // Loop though all country states foreach( $states as $country_code => $country_states ){ if( ! in_array( $country_code, $countries ) ){ // Remove states from all countries except the defined ones $states[$country_code] = array(); } } return $states; }
Add countries that require a state to;
$countries = array('US', 'AU', 'CA');
- This reply was modified 4 years, 10 months ago by skrillaking.
- This reply was modified 4 years, 10 months ago by skrillaking.