PHP 클래스 ProductVariation, silvershop-core

Provides a means for specifying many variations on a product. Used in combination with ProductAttributes, such as color, size. A variation will specify one particular combination, such as red, and large.
상속: extends DataObject, implements Buyable
파일 보기 프로젝트 열기: burnbright/silverstripe-shop 1 사용 예제들

공개 메소드들

메소드 설명
IsInCart ( ) * Returns if the product variation is already in the shopping cart.
Item ( ) * Returns the order item which contains the product variation
addLink ( )
canPurchase ( $member = null, $quantity = 1 )
createItem ( $quantity = 1, $filter = [] )
getCMSFields ( )
getCategories ( )
getCategoryIDs ( )
getTitle ( )
onBeforeWrite ( ) Save selected attributes - somewhat of a hack.
sellingPrice ( )

메소드 상세

IsInCart() 공개 메소드

* Returns if the product variation is already in the shopping cart.
public IsInCart ( )

Item() 공개 메소드

* Returns the order item which contains the product variation
public Item ( )

canPurchase() 공개 메소드

public canPurchase ( $member = null, $quantity = 1 )

createItem() 공개 메소드

public createItem ( $quantity = 1, $filter = [] )

getCMSFields() 공개 메소드

public getCMSFields ( )

getCategories() 공개 메소드

public getCategories ( )

getCategoryIDs() 공개 메소드

public getCategoryIDs ( )

getTitle() 공개 메소드

public getTitle ( )

onBeforeWrite() 공개 메소드

Save selected attributes - somewhat of a hack.
public onBeforeWrite ( )

sellingPrice() 공개 메소드

public sellingPrice ( )