How to Edit Product Prices in Bulk in WooCommerce?

I’m almost certain that during one of those Black Friday deals all you needed to do was to apply a mass rebate to your WooCommerce items without creating a coupon code.

We should not overlook that regardless of coupons are identifiable and you can evaluate your advertising endeavors with their use insights, requiring the client to make one extra stride at checkout (entering the right coupon code) diminishes your business transformation rate (the equivalent applies with futile checkout fields incidentally – less work to do, higher change rate).

In the present post, we’ll see what are the 3 choices I prescribe so as to apply mass store limits. It essentially relies upon your item types (straightforward versus variable for instance) and whether you need to do this by means of the settings or with a tad of PHP.

Product Price Bulk Editing (WP Dashboard)

  1. Go to the “Product” admin page
  2. Tick every one of the items you need to alter the deal cost for
  3. Snap on Bulk Actions > Edit
  4. Select “Change Sale Price to:”
  5. Pick “Rate off of normal cost
  6. Enter for example 50%
  7. Update

this strategy works for straightforward products, and it won’t change the evaluating of variable, assembled or any product with value ranges (min – max).

Product Pricing Bulk Editing with Plugin

On the off chance that your store has numerous variable product (for instance, a design WooCommerce store – where every item comes in various sizes, hues, styles… ), then the above technique won’t work for you.

Fortunately, there are plugins for that. Of course, I’ve picked WooCommerce plugin vendoprs dependent on commercial center notoriety, devoted help quality, code neatness, long haul dependability and – most likely nearly as significantly – where the “individuals behind” the module are dynamic supporters of the WordPress environment.

a. Bulk Table Editor for WooCommerce

Bulk Table Editor is an augmentation that makes it quick and simple to do bulk updates of your products. The editorial manager has a high spotlight on cost ,
deals and stock qualities. On the off chance that you have center around deals, costs and coordinations this expansion will make your item upkeep simpler.
Bulk Table Editor is advanced to set up deals in your WooCommerce shop and it causes you take care of business – quick and simple!

Expansion include

Bulk capacities for:

  • Stock
  • Cost
  • Sale cost
  • Sale begin and end dates
  • A simple method to set up deals in your WooCommerce store
  • One catch for sparing all progressions
  • Consequently computes stock qualities and sums
  • A simple method to unselect items you would prefer not to spare
  • Work with single item esteems in a table
  • Search work
  • Paging capacity
  • Sort and request of segments

b. YITH WooCommerce Bulk Product Editing

Editing a lot of things can be very irritating: you need to choose them individually, picking the worth you need. With YITH WooCommerce Bulk Product Editing,you will be allowed to apply cost alterations to an extraordinary amount of things, applying mass activities to increment or decline the worth,or setting another cost for each chosen thing. A straightforward and direct approach to satisfy a long and unpleasant activity with hardly any snaps.

Programmatically Apply a Coupon

For this situation, the coupon will be consequently applied to the truck once a client goes to the WooCommerce Cart page.

In the first place, you have to make the coupon from WordPress Dashboard > WooCommerce > Coupons. Try to set the coupon code with a general % cart markdown (and not a fixed sum), at that point record the coupon code as you will require it for the PHP scrap.

  1. Make a coupon code that you need to apply once a specific product is added to cart.
  2. Recognize your item ID (go to WordPress/Products and drift onto the item you need to utilize the coupon with. Whatever ID appears in the URL bar, take a note. In our model, we will target item ID = “123”)

[php]

add_action( ‘woocommerce_before_cart’, ‘wbdesign_apply_matched_coupons’ );

function wbdesign_apply_matched_coupons() {

$coupon_code = ‘freeweek’;

if ( WC()->cart->has_discount( $coupon_code ) ) return;

foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {

// this is your product ID
$autocoupon = array( 123 );

if ( in_array( $cart_item[‘product_id’], $autocoupon ) )

{

WC()->cart->add_discount( $coupon_code );
wc_print_notices();
}
}
}

[/php]

Coupon Programmatically for ALL Items

[php]</pre>
add_action( ‘woocommerce_before_cart’, ‘wbcomdesign_apply_coupon’ );

function wbcomdesign_apply_coupon() {
$coupon_code = ‘freweek’;
if ( WC()->cart->has_discount( $coupon_code ) ) return;
WC()->cart->add_discount( $coupon_code );
wc_print_notices();
}
<pre>[/php]

 

Leave a Reply

Your email address will not be published. Required fields are marked *