Daniel Melendro
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Free Shipping Problem: acts on prices excluding VATHi again:
I’ve “solved” the problem with a hack. There is a file located in:
/public_html/wp-content/plugins/woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping
In lines 163-168, you’ll have:
if ( in_array( $this->requires, array( 'min_amount', 'either', 'both' ) ) && isset( WC()->cart->cart_contents_total ) ) { if ( WC()->cart->prices_include_tax ) { $total = WC()->cart->cart_contents_total + array_sum( WC()->cart->taxes ); } else { $total = WC()->cart->cart_contents_total; }So, it means “if you don’t have the tax included in price, the minium mount will be without tax”, even if you have activated “the prices are with tax included”. I’ve done this poor hack:
if ( in_array( $this->requires, array( 'min_amount', 'either', 'both' ) ) && isset( WC()->cart->cart_contents_total ) ) { if ( WC()->cart->prices_include_tax ) { $total = WC()->cart->cart_contents_total + array_sum( WC()->cart->taxes ); } else { $total = WC()->cart->cart_contents_total + array_sum( WC()->cart->taxes ); }It means, “in both cases, prices including and excluding tax, add the tax to the minium mount”. ¿The problem? I’ve from Spain and there’s territories without tax like Canary Islands, and it will be turn back to default when the woocommerce plugin is updated.
Salud.
Note: The Woocommerce version used is 2.5.0
Forum: Plugins
In reply to: [WooCommerce] Free Shipping Problem: acts on prices excluding VATHello:
I’ve the same problem with the spanish VAT. In my case, I’ve a reduced VAT of 10% and the limit to have free shipping costs is the total price excluding VAT. I want it with the VAT included already.
Do you have the solution yet?
Salud.
Forum: Plugins
In reply to: [Contact Form 7] The "From" line says "Unknown Sender"Yeah, thanks, I’ve fixed it puttin
[your-name] <[your-email]>in the “From” e-mail field.