Title: Rule processing order
Last modified: October 24, 2017

---

# Rule processing order

 *  Resolved [venenifer](https://wordpress.org/support/users/venenifer/)
 * (@venenifer)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/rule-processing-order/)
 * Hi there,
    i’d like to know if there is an order in which the rules are applied.
 * i have these two rules:
    **“Shipping Price = 0” > “Shipping Price = 4”** **“Category
   = mycategoryname” > “Shipping Price = 0” **
 * But then in the feed, all shipping prices are changed to 4, including products
   in “mycategoryname”.
 * How can i handle this situation?
 * Also, “Shipping Class” is present in the fields list when creating a rule, but
   after saving, it transforms to “Shipping Price”. Isn’t there a way to really 
   get the “Shipping Class” variable in the feed?
 * kindly,
    Val

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

 *  [AdTribes.io Development Team](https://wordpress.org/support/users/jorisverwater/)
 * (@jorisverwater)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/rule-processing-order/#post-9629585)
 * [@venenifer](https://wordpress.org/support/users/venenifer/),
 * Hi Val,
 * Thanks for your comments. To answer your questions:
 * 1. You are right: the attribute ‘Shipping class’ magically renames itself to ‘
   Shipping price’ after creating a rule or filter. This is a bug. As the filters
   and rules only work on Shipping prices for now I have removed the ‘Shipping class’
   naming in the upcoming release.
    2. The shipping class name is being added to
   the feed automatically when you select the Shipping price attribute. 3. In the
   previous release we introduced the support of multiple shipping zones. Unfortunately
   that also introduced a bug in the rules and filters that are being set on the
   shipping price attribute. I have solved this bug and will release it this weekend.
   With regards to the order of execution of rules: the order you created will be
   respected. In your specific case it will set the shipping prices to 4 for all
   products that now have a shipping price of 0. After that it will reset the shipping
   price back to 0 for products that are in the category “mycategoryname”. So: just
   leave the rules as you already configured, with the next release of the plugin
   they should do exactly what you want.
 * Have a wonderful weekend.
 * Best,
    Joris
 *  [AdTribes.io Development Team](https://wordpress.org/support/users/jorisverwater/)
 * (@jorisverwater)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/rule-processing-order/#post-9633445)
 * [@venenifer](https://wordpress.org/support/users/venenifer/), I just released
   version 1.6.8 of the plugin. Amongst others this should also solve the issue 
   you are reporting in this post.
 * Let me know if you still experience issue.
 * All the best,
    Joris
 *  Thread Starter [venenifer](https://wordpress.org/support/users/venenifer/)
 * (@venenifer)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/rule-processing-order/#post-9633490)
 * Hi Joris,
    i will look into this tonight and get back to you with a feedback 
   asap.
 * Many thanks!
 * Valerio

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

The topic ‘Rule processing order’ is closed to new replies.

 * ![](https://ps.w.org/woo-product-feed-pro/assets/icon-256x256.png?rev=3111496)
 * [Product Feed PRO for WooCommerce by AdTribes – Product Feeds for WooCommerce](https://wordpress.org/plugins/woo-product-feed-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-feed-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-feed-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-feed-pro/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [venenifer](https://wordpress.org/support/users/venenifer/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/rule-processing-order/#post-9633490)
 * Status: resolved