Title: Daniel Melendro's Replies | WordPress.org

---

# Daniel Melendro

  [  ](https://wordpress.org/support/users/daniconil/)

 *   [Profile](https://wordpress.org/support/users/daniconil/)
 *   [Topics Started](https://wordpress.org/support/users/daniconil/topics/)
 *   [Replies Created](https://wordpress.org/support/users/daniconil/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/daniconil/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/daniconil/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/daniconil/engagements/)
 *   [Favorites](https://wordpress.org/support/users/daniconil/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Free Shipping Problem: acts on prices excluding VAT](https://wordpress.org/support/topic/free-shipping-problem-acts-on-prices-excluding-vat/)
 *  [Daniel Melendro](https://wordpress.org/support/users/daniconil/)
 * (@daniconil)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/free-shipping-problem-acts-on-prices-excluding-vat/#post-6695314)
 * Hi 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Free Shipping Problem: acts on prices excluding VAT](https://wordpress.org/support/topic/free-shipping-problem-acts-on-prices-excluding-vat/)
 *  [Daniel Melendro](https://wordpress.org/support/users/daniconil/)
 * (@daniconil)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/free-shipping-problem-acts-on-prices-excluding-vat/#post-6695313)
 * Hello:
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] The "From" line says "Unknown Sender"](https://wordpress.org/support/topic/the-from-line-says-unknown-sender/)
 *  [Daniel Melendro](https://wordpress.org/support/users/daniconil/)
 * (@daniconil)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/the-from-line-says-unknown-sender/#post-4605851)
 * Yeah, thanks, I’ve fixed it puttin `[your-name] <[your-email]>` in the “From”
   e-mail field.

Viewing 3 replies - 1 through 3 (of 3 total)