phpDocumentor

ProductVariantsUpdater Uses WeightAndPriceTypeValidator

Class ProductVariantsUpdater

Table of Contents

$connection  : Connection
__construct()  : mixed
ProductVariantsUpdater constructor.
indexCombiAndOptions()  : void
storeProductVariants()  : void
getDatabaseTypeFieldValue()  : string
updateProductVariant()  : void
updateProductVariantImageList()  : void
updateVariantCombinations()  : void

Properties

Methods

__construct()

ProductVariantsUpdater constructor.

public __construct(Connection $connection) : mixed
Parameters
$connection : Connection
Return values
mixed

indexCombiAndOptions()

public indexCombiAndOptions(array<string|int, int> ...$variantIds) : void
Parameters
$variantIds : array<string|int, int>
Tags
description

all necessary information about each option and optionValue must be inserted into the table products_properties_index. The information is already available in different tables related to properties. It must be copied for the current version of GambioAdmin to be able to see & edit the combis

throws
Exception
throws
Exception
Return values
void

getDatabaseTypeFieldValue()

private getDatabaseTypeFieldValue(string $type) : string
Parameters
$type : string
Return values
string

Search results