Sunnysideup\EcommerceProductVariation\Model\Buyables\ProductWithVariationDecorator::VariationsForSaleJSON
returns a list of variations for sale as JSON.
the output is as follows: VariationID: [ AttributeValueID: AttributeValueID, AttributeValueID: AttributeValueID ].
Signature
public function VariationsForSaleJSON([boolean
$showCanNotPurchaseAsWell = false] )
Parameters
$showCanNotPurchaseAsWell
— boolean- - show all variations, evens the ones that can not be purchased.
Returns
- string
- (JSON)
Line | Task |
---|---|
449 | change JS so that we dont have to add this default array element (-1 => -1) |