1. Home
  2. Docs
  3. Doc of Bulk price Editor ...
  4. Shortcodes
  5. Shortcodes Guide

Shortcodes Guide

Price Update: Bulk Pricing Editor for WooCommerce – Shortcodes Guide

This plugin allows you to bulk edit product prices in your WooCommerce store, saving time and reducing errors. The shortcodes are categorized into Free and Pro versions to help you better understand their functionalities.


Free Version Shortcodes

  1. [bulk_price_editor_update_all]
    • Description: Applies bulk price changes across all products in your WooCommerce store. This shortcode can set a fixed price, add a fixed amount, or multiply current prices for all products.
    • Parameters:
      • operation: Define the type of price change (fixed, add, multiply).
      • value: The value to apply in the operation (e.g., 20 for fixed price, 10 for add, 1.2 for multiply).
    • Example Usage: [bulk_price_editor_update_all operation="multiply" value="0.8"]
    • Use Case: Apply a 20% discount across all products by multiplying prices by 0.8.
  2. [bulk_price_editor_category]
    • Description: Applies bulk price changes to products within a specific category. This allows targeted price updates for selected product groups.
    • Parameters:
      • category_id: The ID of the product category to update.
      • operation: Define the type of price change (fixed, add, multiply).
      • value: The value to apply in the operation.
    • Example Usage: [bulk_price_editor_category category_id="12" operation="add" value="5"]
    • Use Case: Increase prices by $5 for all products in the specified category.
  3. [bulk_price_editor_sale]
    • Description: Enables bulk editing of sale prices only, allowing for the modification of promotional prices without affecting regular prices.
    • Parameters:
      • operation: Define the type of sale price change (fixed, add, multiply).
      • value: The value to apply in the operation.
    • Example Usage: [bulk_price_editor_sale operation="fixed" value="19.99"]
    • Use Case: Set all sale prices to a fixed amount of $19.99.

Pro Version Shortcodes

  1. [bulk_price_editor_tag]
    • Description: Allows bulk price changes based on product tags. This provides flexibility to target specific product groups tagged with relevant keywords.
    • Parameters:
      • tag_id: The ID of the product tag to update.
      • operation: Define the type of price change (fixed, add, multiply).
      • value: The value to apply in the operation.
    • Example Usage: [bulk_price_editor_tag tag_id="5" operation="multiply" value="1.1"]
    • Use Case: Increase prices by 10% for all products with the specified tag.
  2. [bulk_price_editor_attribute]
    • Description: Applies bulk price changes based on product attributes, allowing for detailed and attribute-specific price adjustments.
    • Parameters:
      • attribute: The product attribute to base the price change on.
      • operation: Define the type of price change (fixed, add, multiply).
      • value: The value to apply in the operation.
    • Example Usage: [bulk_price_editor_attribute attribute="color" operation="add" value="3"]
    • Use Case: Add $3 to the price of all products with a specific color attribute.
  3. [bulk_price_editor_round]
    • Description: Automatically rounds the final prices after applying bulk updates. This shortcode supports different rounding strategies such as ceiling, floor, or no rounding.
    • Parameters:
      • method: The rounding method (ceil, floor, none).
      • decimals: Number of decimal places to round to.
    • Example Usage: [bulk_price_editor_round method="ceil" decimals="2"]
    • Use Case: Round up all prices to the nearest cent after applying price changes.
  4. [bulk_price_editor_charm_pricing]
    • Description: Implements charm pricing, allowing you to set prices that end in .99 or other common psychological pricing schemes.
    • Parameters:
      • ending: The desired price ending (e.g., .99, .95).
    • Example Usage: [bulk_price_editor_charm_pricing ending=".99"]
    • Use Case: Ensure all product prices end in .99 for a more appealing pricing strategy.

These shortcodes provide powerful tools for managing and updating prices across your WooCommerce store. The Free version covers essential needs, while the Pro version offers advanced options for more precise control over your pricing strategy, including attribute-based updates, charm pricing, and rounding functions.