OC WordPress Web Designer
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Tax Calculation (Shipping or Billing) For Certain StateThat thread doesn’t respond the my question. Tax is working correctly for tax based on shipping address. I want to override the shipping address tax calculation regardless of the location IF the billing address is CA.
Do you understand what i’m asking?
Forum: Plugins
In reply to: [WooCommerce] Tax Calculation (Shipping or Billing) For Certain StateUnfortunately, No.
Currently, it is set to tax based on shipping address. However specifically for CA, I need tax calculated on CA if it is the billing address no matter what.
Example, someone’s shipping address is in TX, but is billing address it CA. I need the tax for that situation to override the TX tax and apply CA.
- This reply was modified 3 years, 2 months ago by OC WordPress Web Designer.
Forum: Plugins
In reply to: [WooCommerce] Tax Calculation (Shipping or Billing) For Certain StateThat is not the answer. Customer billing address is already selected. I need to have it check if the shipping OR billing address is in a certain state, CA.
So if a customer is billing from another state, but mailing to another CA, I still need to charge CA state tax.
Forum: Plugins
In reply to: [Gravity Forms Zero Spam] All Entries Going To Spam[URL moved to the special URL field next to the initial post]
- This reply was modified 4 years ago by tobifjellner (Tor-Bjorn “Tobi” Fjellner).
Forum: Plugins
In reply to: [Gravity Forms Zero Spam] All Entries Going To Spam*
Gravity Forms – Version 2.4.23.1
Gravity Forms Zero Spam – Version:1.0.6.1Forum: Plugins
In reply to: [Caddy - Smart Side Cart for WooCommerce] HTML Showing In CartAwesome! Thanks
Forum: Plugins
In reply to: [WooCommerce] Adding Custom Field to Additional InformationHow would I add a variation custom field made from https://iconicwp.com/products/woocommerce-custom-fields-variations/ to the additional information table with a field id of: applications?
- This reply was modified 4 years, 10 months ago by OC WordPress Web Designer.
- This reply was modified 4 years, 10 months ago by OC WordPress Web Designer.
- This reply was modified 4 years, 10 months ago by OC WordPress Web Designer.
Forum: Plugins
In reply to: [WooCommerce] Exclude Product From All CouponsIt’s a plugin conflict…… I deactiavted all plugins and it went away. Now i just have to trouble shoot which one.
Thank you for your time.
Forum: Plugins
In reply to: [WooCommerce] Exclude Product From All CouponsAre you logged in when as an admin?
Technically these are “Warnings” and are only viewable that way.
Forum: Plugins
In reply to: [WooCommerce] Exclude Product From All CouponsI’m copying to a text editor in plain text and pasting in the function.php in code editor mode. The code is being validated with the correct ‘
Forum: Plugins
In reply to: [WooCommerce] Exclude Product From All CouponsOh duh, yes the issue still appears after the code is added to the default theme function.php so its not a theme conflict.
- This reply was modified 4 years, 11 months ago by OC WordPress Web Designer.
- This reply was modified 4 years, 11 months ago by OC WordPress Web Designer.
Forum: Plugins
In reply to: [WooCommerce] Exclude Product From All CouponsI have Theme X (https://themeforest.net/item/x-the-theme/5871901) active and when I deactivated it to a default theme, the issue was removed.
Appears I need to talk to theme support.
- This reply was modified 4 years, 11 months ago by OC WordPress Web Designer.
Forum: Plugins
In reply to: [WooCommerce] Exclude Product From All Coupons// Create and display the custom field in product general setting tab add_action( 'woocommerce_product_options_general_product_data', 'add_custom_field_general_product_fields' ); function add_custom_field_general_product_fields(){ global $post; echo '<div class="product_custom_field">'; // Custom Product Checkbox Field woocommerce_wp_checkbox( array( 'id' => '_disabled_for_coupons', 'label' => __('Disabled for coupons', 'woocommerce'), 'description' => __('Disable this products from coupon discounts', 'woocommerce'), 'desc_tip' => 'true', ) ); echo '</div>';; } // Save the custom field and update all excluded product Ids in option WP settings add_action( 'woocommerce_process_product_meta', 'save_custom_field_general_product_fields', 10, 1 ); function save_custom_field_general_product_fields( $post_id ){ $current_disabled = isset( $_POST['_disabled_for_coupons'] ) ? 'yes' : 'no'; $disabled_products = get_option( '_products_disabled_for_coupons' ); if( empty($disabled_products) ) { if( $current_disabled == 'yes' ) $disabled_products = array( $post_id ); } else { if( $current_disabled == 'yes' ) { $disabled_products[] = $post_id; $disabled_products = array_unique( $disabled_products ); } else { if ( ( $key = array_search( $post_id, $disabled_products ) ) !== false ) unset( $disabled_products[$key] ); } } update_post_meta( $post_id, '_disabled_for_coupons', $current_disabled ); update_option( '_products_disabled_for_coupons', $disabled_products ); } // Make coupons invalid at product level add_filter('woocommerce_coupon_is_valid_for_product', 'set_coupon_validity_for_excluded_products', 12, 4); function set_coupon_validity_for_excluded_products($valid, $product, $coupon, $values ){ if( ! count(get_option( '_products_disabled_for_coupons' )) > 0 ) return $valid; $disabled_products = get_option( '_products_disabled_for_coupons' ); if( in_array( $product->get_id(), $disabled_products ) ) $valid = false; return $valid; } // Set the product discount amount to zero add_filter( 'woocommerce_coupon_get_discount_amount', 'zero_discount_for_excluded_products', 12, 5 ); function zero_discount_for_excluded_products($discount, $discounting_amount, $cart_item, $single, $coupon ){ if( ! count(get_option( '_products_disabled_for_coupons' )) > 0 ) return $discount; $disabled_products = get_option( '_products_disabled_for_coupons' ); if( in_array( $cart_item['product_id'], $disabled_products ) ) $discount = 0; return $discount; }
Forum: Plugins
In reply to: [WooCommerce] Exclude Product From All CouponsSame error….
Hmmmmmmm…..
Forum: Plugins
In reply to: [WooCommerce] Exclude Product From All CouponsPHP 7.4.4
Wordpress 5.4.1
Woocommerce 4.0.1