{"id":828,"date":"2021-05-04T13:28:57","date_gmt":"2021-05-04T13:28:57","guid":{"rendered":"https:\/\/ithemelandco.com\/docs\/woocommerce-bulk-orders-editing\/?p=828"},"modified":"2024-04-22T07:06:22","modified_gmt":"2024-04-22T07:06:22","slug":"bulk-edit-cart-discount-of-woocommerce-orders","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/docs\/woocommerce-bulk-orders-editing\/bulk-edit-cart-discount-of-woocommerce-orders\/","title":{"rendered":"How to bulk edit cart discount of WooCommerce orders?"},"content":{"rendered":"\n
Bulk edit cart discount of WooCommerce orders can be quickly done by using WooCommerce bulk orders editing plugin<\/a>.<\/p>\n\n\n\n All store managers can benefit from our plugin for bulk editing any data related to the orders. There are a lot of useful and effective forms in our plugin to help the store managers filter their preferred orders and then bulk edit the related values just by one click.<\/p>\n\n\n\n In this tutorial, we are going to show you how to filter the orders and then bulk edit the value of \u201cCart discount<\/strong>\u201d by two methods: \u201cBulk Edit<\/strong>\u201d and \u201cBind Edit<\/strong>\u201d.<\/p>\n\n\n\n Follow us to discover more about our plugin.<\/p>\n\n\n\n To filter orders, you can use our well-organized \u201cFilter Form<\/strong>\u201d provided for you in different categories to cover all fields related to the WooCommerce Orders.<\/p>\n\n\n\n As we described in “How to filter orders in WooCommerce bulk orders editing plugin?<\/a>“, you can set a condition and get those orders you need to be bulk edited.<\/p>\n\n\n\n For example, let\u2019s try to filter those orders that their \u201cShipping Company<\/strong>\u201d is not “Air<\/strong>“:<\/p>\n\n\n\n That’s it. By clicking on \u201cApply to table<\/strong>\u201d, those orders will be filtered.<\/p>\n\n\n\n To exactly observe what is going on, we recommend you to add the appropriate columns to the order table.<\/p>\n\n\n\n In this tutorial, we decided to add “Shipping Company<\/strong>” column to see if our filtration has been done correctly and also “Cart Discount<\/strong>” column to trace the result of our bulk edit actions.<\/p>\n\n\n\n We completely explained how to add columns to the order table by using \u201cColumn Profile<\/strong>\u201d form in the previous tutorial, so you can refer to it, if you need more help. <\/p>\n\n\n\n To bulk edit \u201cCart discount<\/strong>\u201d of WooCommerce orders, you need to open the \u201cBulk Edit<\/strong>\u201d form by pressing the \u201cBulk Edit<\/strong>\u201d button in the main page of our plugin.<\/p>\n\n\n\n In this tab, you can Bulk Edit \u201cCart Discount<\/strong>\u201d of WooCommerce orders by using two boxes designed in front of this field:<\/p>\n\n\n\n In the Condition box<\/strong>, some default items were listed and you can choose one of them to instruct plugin apply it to the value typed in the Textbox<\/strong>. These items include:<\/p>\n\n\n\n Now, let\u2019s try to use these conditions in the below examples:<\/p>\n\n\n\n By choosing \u201cSet New<\/strong>\u201d in the condition box, any value you type in the opposite text box will be assigned to the \u201cCart Discount<\/strong>\u201d of those filtered orders.<\/p>\n\n\n\n For example, we typed \u201c20<\/strong>” in the Textbox and after choosing \u201cSet New<\/strong>\u201d, clicked on \u201cDo bulk edit<\/strong>\u201d:<\/p>\n\n\n\n As illustrated below, all values of \u201cCart Discount<\/strong>\u201d would be replaced by \u201c20<\/strong>“:<\/p>\n\n\n\n Formula<\/strong> is one of the amazing features of our plugin for assigning a new value to the \u201cCart Discount<\/strong>\u201d based on the current value.<\/p>\n\n\n\n When you want to use Formula<\/strong> for bulk editing any value in our plugin, you have to consider below points:<\/p>\n\n\n\n So, if we choose Formula<\/strong> from the Condition box<\/strong> and type the below equation in the textbox:<\/p>\n\n\n\n (X+20)\/5<\/em><\/strong><\/p>\n\n\n\n It means we want to increase the current value by “20<\/strong>” then divide the result value by “5″<\/strong>:<\/p>\n\n\n\n By considering this fact the current value of \u201cCart Discount<\/strong>\u201d is “20<\/strong>” as we assigned in the previous step, we expected to see the below result in the table after clicking on \u201cDo bulk edit<\/strong>\u201d:<\/p>\n\n\n\n (X+20)\/5 = 40\/5 = 8<\/strong><\/p>\n\n\n\n By choosing “Clear Value<\/strong>” from the dropdown list of Condition box<\/strong>, all values assigned to the \u201cCart Discount<\/strong>\u201d of the filtered orders will be removed:<\/p>\n\n\n\n As shown below, all values were set to \u201c0<\/strong>\u201d:<\/p>\n\n\n\n If you want to Increase or decrease \u201cCart Discount<\/strong>\u201d amount by a specified value, you just need to:<\/p>\n\n\n\n For example, when we selected \u201cIncrease by value<\/strong>\u201d, then typed \u201c20<\/strong>\u201d, all \u201cCart Discount<\/strong>\u201d amount were set to \u201c20<\/strong>\u201d as the result because the initial value was \u201c0<\/strong>\u201d:<\/p>\n\n\n\n Increase or Decrease Cart Discount amount by % is almost like the previous example, the only difference is that the current value will be increased or decreased by the percent of the new value typed in the Text box.<\/p>\n\n\n\n For example, if we choose \u201cIncrease by %\u201d<\/strong> from the dropdown list of Condition box<\/strong> and type \u201c20<\/strong>\u201d in the text box:<\/p>\n\n\n\n We expected to all \u201cCart Discount<\/strong>\u201d amounts increased by \u201c20%<\/strong>\u201d, which means:<\/p>\n\n\n\n Current value: 20<\/em><\/strong><\/p>\n\n\n\n Increased value by 20% = 20 \u00d7 20\/100 = 4<\/em><\/strong><\/p>\n\n\n\n Current Value + 20% = 20 + 4 = 24<\/em><\/strong><\/p>\n\n\n\n The result displayed in the Order table after clicking on \u201cDo bulk edit<\/strong>\u201d is exactly the same as the amount we have calculated:<\/p>\n\n\n\n \u201cBind Edit<\/strong>\u201d option is another powerful tool designed in our plugin to allow you to Bulk Edit \u201cCart Discount<\/strong>\u201d of WooCommerce orders directly from the table.<\/p>\n\n\n\n This option is only available for the columns displaying in the order table, so, if you want to bulk edit \u201cCart Discount<\/strong>\u201d of WooCommerce orders by \u201cBind Edit<\/strong>\u201d, you have to add this column to the table as we described at the beginning of this tutorial.<\/p>\n\n\n\n After adding the \u201cCart Discount<\/strong>\u201d column, follow the below instructions to \u201cBind Edit<\/strong>\u201d their values:<\/p>\n\n\n\n To change the values by \u201cInline Edit<\/strong>\u201d:<\/p>\n\n\n\n Click on the cell and type a number, for example we typed 15<\/strong> then press enter on the keyboard<\/p>\n\n\n\n As illustrated below, the plugin changed the value of all selected orders:<\/p>\n\n\n\n To use Calculator, click on \u201cCalculator<\/strong>\u201d icon to see the calculator pop up page<\/p>\n\n\n\n There are two boxes in the calculator page:<\/p>\n\n\n\n In the condition box, you can select one of the below actions:<\/p>\n\n\n\n In the text box, you can type the value that the chosen condition must apply to it.<\/p>\n\n\n\n By clicking on \u201cApply Changes<\/strong>\u201d, all values of those selected WooCommerce orders will be changed at the same time.<\/p>\n\n\n\n For example, we selected \u201c-“, then typed \u201c7<\/strong>\u201d and finally, clicked on \u201cApply change<\/strong>s\u201d:<\/p>\n\n\n\n Remember that we have changed the value to \u201c15<\/strong>\u201d at the previous step, so we expected the plugin show \u201c8<\/strong>\u201d as the new value of those selected orders, because:<\/p>\n\n\n\nFilter orders<\/strong><\/h2>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
Add columns to the order table <\/strong><\/h2>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Bulk edit cart discount of WooCommerce orders<\/strong><\/h2>\n\n\n\n
\n
\n
<\/a><\/figure>\n\n\n\n
Set a new value for cart discount<\/strong><\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Use formula to bulk edit cart discount value<\/strong><\/h3>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Clear all values of cart discount<\/strong><\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Increase cart discount amount by 20<\/strong><\/h3>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
Increase \/ Decrease cart discount amount by percentage <\/strong><\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Bulk edit cart discount of WooCommerce orders by bind edit<\/strong><\/h2>\n\n\n\n
\n
bulk edit cart discount by inline edit<\/strong><\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
bulk edit cart discount by using calculator<\/strong><\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n