How to adjust Prices based on Product class in ELEX WooCommerce Australia Post Shipping Plugin with Print Label & Tracking?

The following code snippet facilitates you to adjust prices of the service(s) for required Product classes. With this code snippet, you can adjust the price for the fixed amount that is assigned in the code snippet.

Add the following code to your functions.php of your website theme folder, or anywhere relevant.

In the above code, $adjustments array contains services, product classes and the required price(fixed) which will be added/subtracted to adjust the cost. For existing Product class, $adjusted_price is updated and it is stored in $rate_service. After adjusting the value function returns $rate_service.

 


To explore more details about the plugins, go check out ELEX WooCommerce Australia Post Shipping Plugin with Print Label & Tracking.

Read the product setting up article to understand the plugin, in detail. Or check out the product documentation section for more related articles.

You can also check out other WooCommerce and WordPress plugins in ELEX.

    Leave a Reply