PHP Интерфейс WC_Product_Variable_Data_Store_Interface

Functions that must be defined by product variable store classes.
Автор: WooThemes
Показать файл Открыть проект

Открытые методы

Метод Описание
child_has_dimensions ( $product ) : boolean Does a child have dimensions set?
child_has_weight ( $product ) : boolean Does a child have a weight set?
child_is_in_stock ( $product ) : boolean Is a child in stock?
sync_managed_variation_stock_status ( &$product ) Stock managed at the parent level - update children being managed by this product.
sync_price ( WC_Product | integer &$product ) Sync variable product prices with children.

Описание методов

child_has_dimensions() публичный Метод

Does a child have dimensions set?
public child_has_dimensions ( $product ) : boolean
Результат boolean

child_has_weight() публичный Метод

Does a child have a weight set?
public child_has_weight ( $product ) : boolean
Результат boolean

child_is_in_stock() публичный Метод

Is a child in stock?
public child_is_in_stock ( $product ) : boolean
Результат boolean

sync_managed_variation_stock_status() публичный Метод

This sync function syncs downwards (from parent to child) when the variable product is saved.

sync_price() публичный Метод

Sync variable product prices with children.
public sync_price ( WC_Product | integer &$product )
$product WC_Product | integer