PHP 인터페이스 WC_Product_Variable_Data_Store_Interface

Functions that must be defined by product variable store classes.
저자: WooThemes
파일 보기 프로젝트 열기: woocommerce/woocommerce

공개 메소드들

메소드 설명
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