XD\Shopify\Model\Product
Class Product
- Author: Bram de Leeuw
Synopsis
class Product
extends DataObject
{
- // members
- private static string $table_name = 'ShopifyProduct';
- private static string $currency = 'EUR';
- private static array $options = ;
- private static array $db = ;
- private static string $default_sort = 'Created DESC';
- private static array $searchable_fields = ;
- private static array $data_map = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $belongs_many_many = ;
- private static array $owns = ;
- private static array $indexes = ;
- private static array $summary_fields = ;
- private static array $casting = ;
- private static array $extensions = ;
- // methods
- public void getCMSFields()
- public void getVariantWithLowestPrice()
- public DBCurrency|null getPrice()
- public DBCurrency|null getCompareAtPrice()
- public string getButtonOptions()
- public void getButtonScript()
- public void Link()
- public void AbsoluteLink()
- public void MetaTags()
- public void getOGImage()
- public static Product findOrMakeFromShopifyData()
- public static void getByShopifyID()
- public static void getByURLSegment()
- public void canView()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $belongs_many_many
- $casting
- $currency
- $data_map
- $db
- $default_sort
- $extensions
- $has_many
- $has_one
- $indexes
- $options
- $owns
- $searchable_fields
- $summary_fields
- $table_name
Methods
public
- AbsoluteLink()
- Link()
- MetaTags()
- canView()
- findOrMakeFromShopifyData() — Creates a new Shopify Product from the given data but does not publish it
- getButtonOptions() — Merge in the configured button options
- getButtonScript()
- getByShopifyID()
- getByURLSegment()
- getCMSFields()
- getCompareAtPrice()
- getOGImage()
- getPrice()
- getVariantWithLowestPrice()