Sunnysideup\EcommerceAnyPriceProduct\AnyPriceProductPageController
Synopsis
class AnyPriceProductPageController
extends ProductController
{
- // members
- private static array $allowed_actions = ;
- // methods
- public DataList Variations()
- public void AddNewPriceForm()
- public void doaddnewpriceform()
- public void setamount()
- protected float parseFloat()
- protected ProductVariation createVariationFromData()
- protected OrderItem createOrderItemFromVariation()
- protected ProductVariation updateProductVariation()
- protected OrderItem updateOrderItem()
Hierarchy
Extends
- Sunnysideup\Ecommerce\Pages\ProductController
Members
private
- $allowed_actions
Methods
protected
- createOrderItemFromVariation()
- createVariationFromData()
- parseFloat() — clean up the amount, we may improve this in the future.
- updateOrderItem() — you can add this method to a class extending AnyPriceProductPageController so that you can do something with the OrderItem
- updateProductVariation() — you can add this method to a class extending AnyPriceProductPageController so that you can do something with the Product Variation
public
- AddNewPriceForm()
- Variations() — A list of variations.
- doaddnewpriceform()
- setamount()