eeco_logo_svg Created with Sketch.

WooCommerce Smartum Gateway

WC_Smartum_Gateway_Admin
in package

class for handling the admin side of things

Table of Contents

$benefits  : mixed
valid benefits
__construct()  : mixed
bind actions
add_custom_fields()  : mixed
adds custom field to product card handles setting the Smartum Benefit Type
add_variable_custom_fields()  : mixed
Add custom fields to product variations
save_custom_field_data()  : mixed
saves the Smartum Benefit Type selection
save_variation_custom_field_data()  : mixed
Save Smartum Benefit Type for variable products
settings_init()  : mixed
register settings

Properties

Methods

add_custom_fields()

adds custom field to product card handles setting the Smartum Benefit Type

public add_custom_fields() : mixed
Return values
mixed

add_variable_custom_fields()

Add custom fields to product variations

public add_variable_custom_fields(int $loop, array<string|int, mixed> $variation_data, object $variation) : mixed
Parameters
$loop : int

Variation loop counter

$variation_data : array<string|int, mixed>

Variation data

$variation : object

Variation

Return values
mixed

save_custom_field_data()

saves the Smartum Benefit Type selection

public save_custom_field_data(int $post_id) : mixed
Parameters
$post_id : int

Id of the post to save data for

Return values
mixed

save_variation_custom_field_data()

Save Smartum Benefit Type for variable products

public save_variation_custom_field_data(int $variation_id, int $i) : mixed
Parameters
$variation_id : int

Variation ID

$i : int

Variation counter

Return values
mixed

        

Search results