Sunnysideup\EcommerceAlsoRecommended\Modifiers\RecommendedProductsModifier
the product page / dataobject need to have a function RecommendedProductsForCart which returns an array of IDs
- Author: Nicolaas [at] sunnysideup.co.nz
Synopsis
class RecommendedProductsModifier
extends OrderModifier
{
- // members
- protected $recommendedBuyables;
- private static string $singular_name = 'Recommended Product';
- private static string $plural_name = 'Recommended Products';
- // methods
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void ShowForm()
- public void ShowFormInEditableOrderTable()
- public void getModifierForm()
- public void ShowInTable()
- public void CanRemove()
- public void Name()
- protected void LiveCalculatedTotal()
- protected void LiveTableValue()
- protected void LiveName()
Hierarchy
Extends
- Sunnysideup\Ecommerce\Model\OrderModifier
Members
private
- $plural_name
- $singular_name
protected
- $recommendedBuyables
Methods
protected
public
- CanRemove()
- Name()
- ShowForm() — standard Modifier Method.
- ShowFormInEditableOrderTable() — Should the form be included in the editable form on the checkout page?
- ShowInTable()
- getModifierForm()
- i18n_plural_name()
- i18n_singular_name()