View Categories

Shortcodes for Price by Quantity plugin

[alg_wc_wholesale_pricing_table]

Displays global (i.e. not per product) wholesale pricing table.

Attributes:

  • heading_format – sets format for the table headings. Replaced values: %level_min_qty% and %level_max_qty%.
    Default value:
    from %level_min_qty% pcs.
  • before_level_max_qty – used only if %level_max_qty% is included in heading_format.
    Default value:
    -
  • last_level_max_qty – used only if %level_max_qty% is included in heading_format.
    Default value:
    +
  • hide_if_zero_quantity – hides table row (yes) if level quantity is set to zero.
    Default value:
    no
  • table_format – can be horizontal or vertical.
    Default value:
    horizontal

Example

[alg_wc_wholesale_pricing_table heading_format="%level_min_qty%%level_max_qty% pcs."]

Output

Wholesale Pricing for WooCommerce - Shortcodes - Global Wholesale Pricing Table Example

[alg_wc_product_wholesale_pricing_table]

Displays product’s wholesale pricing table.

Attributes

  • heading_format – sets the format for the table headings. Replaced values: %level_min_qty% and %level_max_qty%.
    Default value:
    from %level_min_qty% pcs.
  • before_level_max_qty – used only if %level_max_qty% is included in heading_format.
    Default value:
    -
  • last_level_max_qty – used only if %level_max_qty% is included in heading_format.
    Default value:
    +
  • hide_if_zero_quantity – hides table row (yes) if level quantity is set to zero.
    Default value:
    no
  • table_format – can be horizontal or vertical.
    Default value:
    horizontal
  • hide_currency – hides currency symbol (yes).
    Default value:
    no
  • add_price_row – adds price row to the table.
    Default value:
    yes
  • price_row_format – used only if add_price_row is set to yes.
    Default value:
    <del>%old_price%</del> %price%
  • add_percent_row – adds percent row to the table (yes). Ignored unless “Discount type” is set to “Percent”.
    Default value:
    no
  • add_discount_row – adds discount row to the table (yes). Ignored unless “Discount type” is set to “Fixed”.
    Default value:
    no
  • columns_styles – cells HTML style attribute.
    Default value:
    text-align: center;
  • table_class – table HTML class attribute.
    Default value:
    None
  • product_id – optional product ID. If not set – will use the current product.
    Default value:
    Current product's ID

Example

[alg_wc_product_wholesale_pricing_table add_percent_row="yes"]

Output

Wholesale Pricing for WooCommerce - Shortcodes - Product Wholesale Pricing Table Example

[alg_wc_wholesale_pricing_data]

Displays global (i.e. not per product) wholesale pricing data.

Attributes

  • field – can be discount or quantity.
    Default value:
    discount
  • level_num – can be last or actual level number.
    Default value:
    last

Example

Best deal: [alg_wc_wholesale_pricing_data level_num="last" field="discount"]% discount for [alg_wc_wholesale_pricing_data level_num="last" field="quantity"]+ pieces!

Output

[alg_wc_product_wholesale_pricing_data]

Displays product’s wholesale pricing data.

Attributes

  • field – can be price, discount or quantity.
    Default value:
    price
  • price_format – used only if the field is set to price.
    Default value:
    <del>%old_price%</del> %price%
  • hide_currency – hides currency symbol (yes). Used only if the field is set to price.
    Default value:
    no
  • level_num – can be last or actual level number.
    Default value:
    last
  • product_id – optional product ID. If not set – will use the current product.
    Default value:
    Current product's ID

Example

Lowest price: [alg_wc_product_wholesale_pricing_data field="price" price_format="%price%" level_num="last"] for [alg_wc_product_wholesale_pricing_data field="quantity" level_num="last"] pcs.

Output

Lowest price: €98.01 for 30 pcs.