Title: mijk's Replies | WordPress.org

---

# mijk

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 55 total)

1 [2](https://wordpress.org/support/users/mijk/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mijk/replies/page/3/?output_format=md) [4](https://wordpress.org/support/users/mijk/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/mijk/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] BUGREPORT: WooCommerce 2.1.12 is wrongly counting the taxes?!!](https://wordpress.org/support/topic/bugreport-woocommerce-2112-is-wrongly-counting-the-taxes/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bugreport-woocommerce-2112-is-wrongly-counting-the-taxes/#post-5065500)
 * Q1)
    OK, tank you for your explanation. Sorry, I forgot to lower the price of
   the VAT in the first place.
 * Q2)
    However, my second question (shipping method’s VAT not being counted to 
   the VAT totals in the checkout) still stands, thank you for your help, lorro.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] BUGREPORT: WooCommerce 2.1.12 is wrongly counting the taxes?!!](https://wordpress.org/support/topic/bugreport-woocommerce-2112-is-wrongly-counting-the-taxes/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bugreport-woocommerce-2112-is-wrongly-counting-the-taxes/#post-5065498)
 * Hello Iorro,
    thanks for your fast response, however:
 * Q1)
    Simple arithmetics tells me it’s not OK, if i’m entering prices INCL. the
   VAT, equation should be following:
 *     ```
       100 * 0.21 = 21 (VAT is 21 per cent of 100)
       100 - 21 = 79 (79 per cent of 100, price excluding the VAT)
       79 * 1.21 = 100 (total price incl. the VAT)
       ```
   
 * so the equation of 17.36 being 21% of the 100 is absolutely out of any questions
 * Q2) I’m so hopeless, the suggested code added to the constructor didn’t work 
   at all.
    I’ve pasted the complete code I use to handle my shipping in the first
   post in this thread, WooCommerce is just not adding the tax for the shipping 
   in VAT totals (see the last two pics in my previously shared gallery here: [https://imgur.com/a/0JbPb](https://imgur.com/a/0JbPb)).
 * My complete shipping plugin code is following:
 *     ```
       <?php
       /*
       Plugin Name: DHL shipping
       Plugin URI: http://woothemes.com/woocommerce
       Description: DHL shipping method plugin
       Version: 1.0.0
       Author: WooThemes
       Author URI: http://woothemes.com
       */
       /**
        * Check if WooCommerce is active
        */
       if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
   
       	function dhl_shipping_method_init() {
       		if ( ! class_exists( 'WC_DHL_Shipping_Method' ) ) {
       			class WC_DHL_Shipping_Method extends WC_Shipping_Method {
       				/**
       				 * Constructor for your shipping class
       				 *
       				 * @access public
       				 * @return void
       				 */
       				public function __construct() {
       					$this->id                 = 'dhl_shipping_method'; // Id for your shipping method. Should be uunique.
       					$this->method_title       = __( 'DHL' );  // Title shown in admin
       					$this->method_description = __( 'DHL' ); // Description shown in admin
   
       					$this->enabled            = "yes"; // This can be added as an setting but for this example its forced enabled
       					$this->title              = "DHL"; // This can be added as an setting but for this example its forced.
   
       					$this->is_taxable         = True; // tax it - LINE ADDED AFTER IORRO's SUGGESTION
   
       					$this->init();
       				}
   
       				/**
       				 * Init your settings
       				 *
       				 * @access public
       				 * @return void
       				 */
       				function init() {
       					// Load the settings API
       					$this->init_form_fields(); // This is part of the settings API. Override the method to add your own settings
       					$this->init_settings(); // This is part of the settings API. Loads settings you previously init.
   
       					// Save settings in admin if you have any defined
       					add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
       				}
   
       				/**
       				 * calculate_shipping function.
       				 *
       				 * @access public
       				 * @param mixed $package
       				 * @return void
       				 */
       				public function calculate_shipping( $package ) {
       					$rate = array(
       						'id' => $this->id,
       						'label' => $this->title,
       						'cost' => '100',
       						'calc_tax' => 'per_item'
       					);
   
       					// Register the rate
       					$this->add_rate( $rate );
       				}
       			}
       		}
       	}
   
       	add_action( 'woocommerce_shipping_init', 'dhl_shipping_method_init' );
   
       	function add_dhl_shipping_method( $methods ) {
       		$methods[] = 'WC_DHL_Shipping_Method';
       		return $methods;
       	}
   
       	add_filter( 'woocommerce_shipping_methods', 'add_dhl_shipping_method' );
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] BUGREPORT: WooCommerce 2.1.12 is wrongly counting the taxes?!!](https://wordpress.org/support/topic/bugreport-woocommerce-2112-is-wrongly-counting-the-taxes/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/bugreport-woocommerce-2112-is-wrongly-counting-the-taxes/#post-5065318)
 * sorry, I have accidently removed the gallery with settings and preview of the
   issue, here is the correct image gallery link:
 * > [WC 2.1.12 VAT COUNT ERROR](https://imgur.com/a/0JbPb)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Restrict Author Posting] Users can modify their own restricted taxonomy settings on own profile page](https://wordpress.org/support/topic/users-can-modify-their-restricted-taxonomy-settings-in-their-profile/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/users-can-modify-their-restricted-taxonomy-settings-in-their-profile/#post-4941370)
 * As I can see, you have applied my patch to the trunk so this issue is solved.
   
   Cheers.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Restrict Author Posting] Users can modify their own restricted taxonomy settings on own profile page](https://wordpress.org/support/topic/users-can-modify-their-restricted-taxonomy-settings-in-their-profile/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/users-can-modify-their-restricted-taxonomy-settings-in-their-profile/#post-4941350)
 * I’ve added a trac ticket with a patch that fixes the issue.
 * [https://plugins.trac.wordpress.org/ticket/2221](https://plugins.trac.wordpress.org/ticket/2221)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Restrict Author Posting] Users can modify their own restricted taxonomy settings on own profile page](https://wordpress.org/support/topic/users-can-modify-their-restricted-taxonomy-settings-in-their-profile/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/users-can-modify-their-restricted-taxonomy-settings-in-their-profile/#post-4941222)
 * In another words: Users taxonomy restriction settings in users profile should
   be manageable only to users with manage_users capability, don’t you think?
    Currently
   any user can change or remove his own restriction on own profile page.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Maps - Google Maps,OpenStreetMap,Mapbox,Store Locator,Listing,Directory & Filters] Center Latitude/Longitude](https://wordpress.org/support/topic/center-latitudelongitude/)
 *  [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [12 years ago](https://wordpress.org/support/topic/center-latitudelongitude/#post-4845172)
 * (in firefox)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Maps - Google Maps,OpenStreetMap,Mapbox,Store Locator,Listing,Directory & Filters] Center Latitude/Longitude](https://wordpress.org/support/topic/center-latitudelongitude/)
 *  [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [12 years ago](https://wordpress.org/support/topic/center-latitudelongitude/#post-4845169)
 * Can’t the maps center point be set to each map separately on the “Edit Maps” 
   screen?
 * Setting the *global* center for all maps doesn’t make sense too much – what if
   the locations are in different cities for each map?
 * It would be benefitial to add option to set any location as center point of its
   own map (via toggles) lets say positioned to the right from “Choose Locations*”
   selection of “Edit Map” screen?
 * There is also an issue with location tooltip sizes – they often don’t provide
   enough space to display the whole tooltip content – even if the content is composed
   just from two lines and four words (example “My Favourite Sunbathing Location”)–
   it breaks them down and user must use scrollwheel to read the rest of the tooltip…
   But not all of them… It’s kind of weird behaviour: if you create 4 locations 
   with the same tooltips (“My Favourite Sunbathing Location”) and add them all 
   into one map, each tooltip behaves differently!
 * Thanks anyway for one of the best google maps plugin in the plugin directory…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Maps - Google Maps,OpenStreetMap,Mapbox,Store Locator,Listing,Directory & Filters] Bugreport: missing linked files from bootstrap.css](https://wordpress.org/support/topic/404-errors-caused-by-missing-linked-files-from-bootstrapcss/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [12 years ago](https://wordpress.org/support/topic/404-errors-caused-by-missing-linked-files-from-bootstrapcss/#post-4827364)
 * OK then, thank you 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Maps Ready!] Issues: Markers Not Saving Markers Self-Duplication](https://wordpress.org/support/topic/issues-markers-not-saving-markers-self-duplication/)
 *  [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/issues-markers-not-saving-markers-self-duplication/#post-4780609)
 * The same is occuring to me on two of my installations…
 * The plugin seems nice on the first sight, but if you really want to use it, you
   simply cannot. It seems that it’s not saving/editing for a purpose of advertising
   the pro version…
 * But I would be glad if this was wrong assumption and author fixed it in the followup
   release…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Welcome Pack] [Plugin: Welcome Pack] Join groups while registering](https://wordpress.org/support/topic/plugin-welcome-pack-join-groups-while-registering/)
 *  [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-welcome-pack-join-groups-while-registering/#post-2431054)
 * [@oc2ps](https://wordpress.org/support/users/oc2ps/): You’re welcome. If my answer
   helped you, consider closing the topic as resolved 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Welcome Pack] [Plugin: Welcome Pack] Join groups while registering](https://wordpress.org/support/topic/plugin-welcome-pack-join-groups-while-registering/)
 *  [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-welcome-pack-join-groups-while-registering/#post-2431051)
 * > Is there a way to allow user to join groups while registering? Essentially,
   > I’d like to list all groups as checkboxes on registration page so that users
   > can select (check) groups and when they click “Register”, they automatically
   > join selected groups.
 * I think there’s a way to get exactly [what you need](http://s.wordpress.org/extend/plugins/buddypress-registration-groups-1/screenshot-1.png):
   
   [http://wordpress.org/extend/plugins/buddypress-registration-groups-1/](http://wordpress.org/extend/plugins/buddypress-registration-groups-1/)
   😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Front-end Editor] [Plugin: Front-end Editor] Table plugin issue possible inconsistency](https://wordpress.org/support/topic/plugin-front-end-editor-table-plugin-issue-possible-inconsistency/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-front-end-editor-table-plugin-issue-possible-inconsistency/#post-2413478)
 * That’s good news, thank you for a such fast response.
    Thanks, Scribu, I’m looking
   forward to the new version 😉
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [P2 1.2.3 – clicking add media opens up error page](https://wordpress.org/support/topic/p2-123-clicking-add-media-opens-up-error-page/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/p2-123-clicking-add-media-opens-up-error-page/#post-1963732)
 * [@schvenk](https://wordpress.org/support/users/schvenk/): This plugin fixed that
   issue for me, I hope it will help you as well: [http://wordpress.org/extend/plugins/aarons-no-ssl-flash-upload/](http://wordpress.org/extend/plugins/aarons-no-ssl-flash-upload/)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [P2 1.2.3 – clicking add media opens up error page](https://wordpress.org/support/topic/p2-123-clicking-add-media-opens-up-error-page/)
 *  Thread Starter [mijk](https://wordpress.org/support/users/mijk/)
 * (@mijk)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/p2-123-clicking-add-media-opens-up-error-page/#post-1963615)
 * Awesome, Matt, that’s it. I have forgotten to state, that **I am using https 
   as well on both local and production site**.
    Thanks.

Viewing 15 replies - 1 through 15 (of 55 total)

1 [2](https://wordpress.org/support/users/mijk/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/mijk/replies/page/3/?output_format=md) [4](https://wordpress.org/support/users/mijk/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/mijk/replies/page/2/?output_format=md)