Are you looking for a way to modify the price of multiple products at one time? You’re here. This article shows a number of ways to change the price of woocommerce. Why did woocomerce revise the price a lot? In many cases, it is necessary to update the prices of various products in the store. However, if you sell a lot of products, the price of each product needs to be changed one by one, which is time-consuming and inefficient. This not only wastes a lot of time performing repetitive tasks, but also increases the possibility of making mistakes when entering all single prices.
Therefore, you can change the price a lot, which helps to save time and make life easier. For example, if you are performing limited promotions or offering special discounts for specific products, you may need to edit the prices of multiple products. After the sale or promotion, the price must be restored to the original price. Alternatively, to increase or decrease the overall price of a specific category, product type or store, the prices of multiple products must be updated. The more products in the store, the longer the time. As you can see, this is common in many stores. It is helpful to modify the price uniformly. Let’s see how to do it.
There are many ways to batch change woocommerce price, and there are many ways to batch edit woocommerce price. Use the woocommerce default option plug-in to export and import CSV files programmatically, and each method will be more applicable according to the situation. Let’s take a closer look at each one. 1. Woocommerce basic options store only has simple products. If you want to update the prices of multiple products, woocommerce basic options will be provided. The default option does not support variable products, grouped products, or subscriptions. Therefore, if the store only provides simple products, it is a good choice.
First, from the word press administration dashboard, go to Products > all products. Select the product to edit manually or apply the filter, select Edit from the batch drop-down menu, and then click apply. The product editing form is now displayed. Here, you can edit multiple functions of the product, such as brand, category, etc. Because you are only interested in price changes, please go to the product data section to browse price and sales options. Here, you can update the price of the product at one time. The default options of woocomerce for uniformly changing product prices are:
Price – (fixed amount or percentage) increase or decrease the existing price. You can increase or decrease the price of all products to a fixed amount or percentage. Sales – (fixed amount or percentage) increase or decrease the existing sales price. Increase or decrease the current selling price by a fixed amount or percentage. Discount – (fixed amount or percentage) set as the normal price of Discount: the selling price can be set by reducing the current price by a fixed amount or percentage. You can also use filters to apply these changes to specific categories, brands, or product types. If you like the new price, scroll down and click the update button to save your changes. That’s all! Now the price of woocommerce products has been fully updated.
As mentioned earlier, the default options apply only to simple products. If there are also variable or grouped products, subscriptions, etc., what can be done? One option depends on third-party plug-ins. 2. There are multiple plug-ins that can use a large number of third-party plug-ins to edit prices. This tutorial uses Elex woocommerce advanced batch editing of products, prices, and properties. This is an advanced tool that provides multiple functions for batch editing products and is easy to use. Note, however, that the free version of the plug-in supports only simple products.
necessary. To be used for other types of products, you must buy one of the advanced versions starting at $79. Let’s take a look at how to use this plug-in to batch update products.
2.1) first install and configure plug-ins, and then start with installing plug-ins. In the WP management panel, navigate to plug ins > new. Search for the Elex woocomerce advanced batch edit product, price, and properties plug-in, and then click Install now. After installing the plug-in, activate it. Then go to woocommerce > bulk edit products to find all the settings and functions of the plug-in. Male 2.2) select the product you want, and now it’s your turn to filter the product you want to edit. You can filter products by title, type, category, and price. You can also filter products by attributes. There are two combination methods. Group by or or and.
Using or grouping, if there are one or more attributes, you can filter products with multiple attributes by selecting products. Grouping with and allows you to filter products with multiple attributes by ensuring that the products have all the attributes selected for selection. After filtering products, click the filter product preview button in the lower right corner to go to the preview page. You can view the products selected here and verify that only the products to be updated are selected. After checking the selected product, scroll down and click \
After updating the product price, scroll down and click product update to save the new price. All product prices will be updated and a success message will be displayed on the next page. That’s all! A one-time change was made to the price of woocommerce products using the plug-in. Regardless of the type of product you update, the process is similar, so you can immediately edit variables and group prices for products. If you are looking for more tools to batch modify prices, please check this list. In addition to the default options and third-party plug-ins, prices can also be updated using CSV files. Let’s see how to do it.
3. To use the method of batch changing woocommerce price by exporting and importing CSV, you must first export all product data to CSV file. Then edit the file, finally import it into woocommerce, and update all current products with the new changes. Let’s look at this process in stages. 3.1) before exporting product data to CSV file, you must first export product data. To do this, navigate to the WP administration panel and navigate to Products > all products. Select the products you want to export and click the Export button at the top.
Male then navigate to the product export wizard. You can select the type and category of products to export here, but it is recommended to select in the previous step. Check the yes, export all custom metadata box and click Create CSV. This generates a CSV file that contains all the details of the product. For more information about this process, please check the guide of woocomerce on how to export products. 3.2) edit the CSV file, open the CSV file ed with compatible software (such as price update Microsoft Excel), and find the selling price and normal price columns. This includes the current price of each product. Just edit the desired price and save the file.
Just do it. You can use modifiers to apply fixed or percentage discounts to all products and set the same price for items in the same category. Male 3.3) import the updated CSV file, and then re import the file into woocommerce. Navigate to the WordPress administration dashboard again, navigate to Products > all products, and then click the import button to start the import process. You must select the CSV file you just updated and check the \
Search for plug-ins and click Install now. Activate after installation. After the plug-in is activated, go to snipets > add new. Paste the code snippet into the code snippet and save the changes. You can also specify labels for easy identification later. If you use the male code snippet, the plug-in handles everything, so you don’t need to create a sub theme. But it’s better to have one. Now that we know how to add code fragments to the site, let’s take a look at how to batch change the code fragments of woocommerce price. Edit woocommerce prices programmatically this section describes how to update prices using two different snipt. The first is to automatically apply coupons to specific products, and the second is to apply coupons to the entire shopping cart, regardless of the products included. Coupon code must be generated before applying discount. Create coupons in woocommerce. From the WP manager dashboard, go to marketing > coupons > Add coupons. After selecting the name, discount type, amount and other information, click issue registration coupon. Please note down the coupon code and add it to the code snippet for convenience. Male now enter the code fragment. 4.1) automatically apply coupons to specific commodities. In order to apply coupons to specific commodities, the commodity ID must be found. Navigate to the woocommerce product page, hover over the product to which you want to apply the discount, and then copy the product ID. Use your own method now. Add the following code snippet to the PHP file: add_action( ‘woocommerce_before_cart’, ‘quadlayers_coupon_individual_products’ );
Functions: quadlayers_union_person_products(){
$coupon_code = ‘quadlayers30’; \/\/ Please use coupon code between single quotation marks. \
Return if (wc() – > cart – > has_ discount ($coupon_code);
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
$automatic coupon = rank (2970)\/\/ Use the product ID in the array (ID).
if ( in_array( $cart_item[‘product_id’], $autocoupon ) ) {
WC – > shopping cart – > applicable coupons ($coupon_code);
wc_print_notices();
}
}
}Don’t forget to use coupon code and product ID in your code. Now, whenever a customer adds that particular product to the shopping cart, the coupon takes effect automatically. Now let’s take a look at how to apply coupons and update the prices of multiple products at once. 4.2) automatically apply coupons to the shopping cart, and apply discounts to the total amount of the shopping cart regardless of the products in the shopping cart. In the desired way, simply add the following fragments to the site: add_action( ‘woocommerce_before_cart’, ‘quadlayers_coupon_overall_cart’ );
Functions: quadlayers_coupon_tool_cart (){
$coupon_code = ‘quadlayers30′; \/\/ Please use coupon code between single quotation marks’ ‘.
Return if (wc() – > cart – > has_ discount ($coupon_code);
WC – > shopping cart – > applicable coupons ($coupon_code);
wc_print_notices();
}That’s all! Now, regardless of the content of the shopping cart, coupons are automatically applied to each shopping cart. Again, don’t forget to use your coupon code in snipt. Conclusion usually, the prices of multiple products need to be updated at one time. It takes a lot of time to perform this operation manually, especially when there are many projects.
Quantity may occur. Therefore, you need to find a more efficient solution. This guide provides a complete set of methods to change the price of woocommerce. Export a CSV file using a third-party plug-in using the default woocommerce option, and then import the price programmatically. Update the default option, but you can only edit the price of a single product. Alternatively, you can use dedicated plug-ins to change the prices of all types of products in large quantities, but you may have to pay a fee. If you have a basic knowledge of spreadsheets, you can export product data, update prices, and then import them back into the store. This is a good option, not as complex as it seems. Finally, you can use code snippets to programmatically change prices to automatically apply discounts to specific products or the entire shopping cart. Have you ever revised the product price at one time? What methods did you use and how was your experience? Please inform the comments section below. If this document is useful, you may be interested in the following guidelines: Method of automatically applying woocommerce coupon to hide price