Bulk_Variations implements Registerable

Integrates with the Bulk Variations plugin.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable

Table of Contents

disable_bulk_variations_for_volume_bundle_products()  : bool
Disable bulk variations for products that have Volume Bundle discounts.
override_bulk_variations_in_quick_view()  : void
Override Bulk Variations behavior in Quick View Pro when Volume Bundle discounts exist.
register()  : mixed
render_discounts_list()  : void
Render the discount and bulk table for the product in the grid.

Methods

disable_bulk_variations_for_volume_bundle_products()

Disable bulk variations for products that have Volume Bundle discounts.

public disable_bulk_variations_for_volume_bundle_products(bool $enable, WC_Product $product, mixed $user) : bool
Parameters
$enable : bool

Whether to enable bulk variations.

$product : WC_Product

The product object.

$user : mixed

The user object (unused).

Return values
bool

Whether to enable bulk variations.

override_bulk_variations_in_quick_view()

Override Bulk Variations behavior in Quick View Pro when Volume Bundle discounts exist.

public override_bulk_variations_in_quick_view() : void

This ensures the bundle table is shown instead of the bulk variations table.

Return values
void

register()

public register() : mixed
Tags
inheritdoc
Return values
mixed

render_discounts_list()

Render the discount and bulk table for the product in the grid.

public render_discounts_list(int $product_id, Grid $grid) : void

But only if the discount is set to display before the add to cart form.

Parameters
$product_id : int

The product ID.

$grid : Grid

The grid object.

Return values
void

Search results