Title: Hook to change store post code source
Last modified: January 24, 2019

---

# Hook to change store post code source

 *  Resolved [Hendra Setiawan](https://wordpress.org/support/users/hendcorp/)
 * (@hendcorp)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/hook-to-change-store-post-code-source/)
 * Hi, I’m trying to use this plugin on my multi vendor WooCommerce site.
    I need
   to know if there is any hook / function that I can use to override postcode source?
 * Basically, instead of using store’s postcode, I want to use vendor’s postcode
   as the source of the shipping cost calculation. So it can be vary based on the
   vendor (author) of each item.
 * Also, as additional information, we only allow our customer to purchase from 
   one vendor on each checkout to simplify the calculation logic.
 * Thank you!

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

 *  Plugin Author [Waseem Senjer](https://wordpress.org/support/users/waseem_senjer/)
 * (@waseem_senjer)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/hook-to-change-store-post-code-source/#post-11132206)
 * Hello Handra,
    Thanks for using our plugin.
 * The problem for this idea is that our plugin does pack multiple products in one
   package to optimize the shipping prices. Adding a hook to modify the postcode
   per product won’t work for all the plugin users unless if the plugin divide packages
   based on the vendor postcode. Please, let me know if you have an idea of how 
   that would work.
 * Best Regards,
    Waseem
 *  Thread Starter [Hendra Setiawan](https://wordpress.org/support/users/hendcorp/)
 * (@hendcorp)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/hook-to-change-store-post-code-source/#post-11137439)
 * Hi Waseem,
    thank you for your quick response. I appreciate it.
 * What is that mean by “pack multiple products in one package”?
    I thought it will
   calculate the shipping price based on the weight and dimension of each product?
 * Thank you!
 *  Plugin Author [Waseem Senjer](https://wordpress.org/support/users/waseem_senjer/)
 * (@waseem_senjer)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/hook-to-change-store-post-code-source/#post-11141200)
 * Hello Hendra,
 * > What is that mean by “pack multiple products in one package”?
   >  I thought it
   > will calculate the shipping price based on the weight and dimension of each
   > product?
 * Yes, it means if two products were in the cart, one product weight is 2kg and
   the other is 5kg. Then the plugin will send the data to Australia Post API as
   one package of the weight of 7kg. The same for the dimensions. They will be combined
   in one package.
 * Please, let me know if you have any other questions.
 * Waseem
 *  Thread Starter [Hendra Setiawan](https://wordpress.org/support/users/hendcorp/)
 * (@hendcorp)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/hook-to-change-store-post-code-source/#post-11142655)
 * Hi Waseem,
    it sounds perfect as we only allows the buyer to purchase products
   from single seller.
 * They can purchase multiple items as long as the items are from same (single) 
   seller.
 * So in this case, we only need to know if there is any hook/function to change
   the source of the postcode. We have to get it from the seller’s postcode instead
   of from store’s postcode so it can be calculated properly.
 * Thank you!
 *  Plugin Author [Waseem Senjer](https://wordpress.org/support/users/waseem_senjer/)
 * (@waseem_senjer)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hook-to-change-store-post-code-source/#post-11150501)
 * Hi Hendra,
 * There is no hook at the moment in the plugin for changing the destination postcode.
 * My concern is if we add this filter, users will assume that they can use it freely,
   but if their store allows for multi-purchase, then the hook will actually create
   a bug if it was used.
 * Best Regards,
    Waseem

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

The topic ‘Hook to change store post code source’ is closed to new replies.

 * ![](https://ps.w.org/australian-post-woocommerce-extension/assets/icon-128x128.
   png?rev=1138451)
 * [Australia Post WooCommerce Extension](https://wordpress.org/plugins/australian-post-woocommerce-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/australian-post-woocommerce-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/australian-post-woocommerce-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/australian-post-woocommerce-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/australian-post-woocommerce-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/australian-post-woocommerce-extension/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Waseem Senjer](https://wordpress.org/support/users/waseem_senjer/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/hook-to-change-store-post-code-source/#post-11150501)
 * Status: resolved