Product¶
The Product object represents a single product in the storefront.
classDiagram
direction LR
Product --> ProductBundle
Product --> Tax
Product --> Producer
Product --> Unit
Product --> Currency
Product --> Category
Product --> ProductImage
Product --> ProductAvailability
Product --> ProductDelivery
Product --> ProductVariant
Product --> ProductAttributeGroupsList
Product --> ProductBundlesList
Product --> CollectionsList
Product --> ProductFilesList
Product --> CategoriesList
Product --> ProductCommentsList
Product --> ProductsList
Product --> ProductImagesList
Product --> ProductVariantsList
Product --> ProductOptionsList
Product --> ProductUrl
Product --> Price
Product --> DateTime
Product --> VariantSpecialOffer
Product --> LoyaltyProductUrl
Product --> GpsrImporter
Product --> GpsrProducer
Product --> GpsrResponsible
Product --> GpsrCertificatesList
ProductAttributeGroupsList "1" --o "*" ProductAttributeGroup
ProductBundlesList "1" --o "*" ProductBundle
CollectionsList "1" --o "*" Collection
ProductFilesList "1" --o "*" ProductFile
CategoriesList "1" --o "*" Category
ProductCommentsList "1" --o "*" ProductComment
ProductImagesList "1" --o "*" ProductImage
ProductsList "1" --o "*" Product
ProductVariantsList "1" --o "*" ProductVariant
ProductOptionsList "1" --o "*" ProductOption
GpsrCertificatesList "1" --o "*" GpsrCertificate
class ProductBundle{
}
class Tax{
}
class Price{
}
class Producer{
}
class Unit{
}
class Currency{
}
class Category{
}
class ProductImage{
}
class ProductAvailability{
}
class ProductDelivery{
}
class ProductVariant{
}
class ProductAttributeGroupsList{
}
class ProductBundlesList{
}
class CollectionsList{
}
class ProductFilesList{
}
class CategoriesList{
}
class ProductCommentsList{
}
class ProductsList{
}
class ProductImagesList{
}
class ProductVariantsList{
}
class ProductOptionsList{
}
class ProductAttributeGroup{
}
class Collection{
}
class ProductFile{
}
class ProductComment{
}
class ProductOption{
}
class ProductUrl{
}
class DateTime{
}
class LoyaltyProductUrl{
}
class GpsrImporter{
}
class GpsrProducer{
}
class GpsrResponsible{
}
class GpsrCertificatesList{
}
class Product{
int id
ProductUrl url
string name
string code
string ean
string sku
string gtin
string isbn
string kgo
string bloz7
string bloz12
string producerCode
string pkwiu
string code39
string gtu
string description
string shortDescription
bool isBundle
bool isAvailable
bool isBestseller
bool isProductOfTheDay
bool isNew
bool isUsedInLoyaltyProgram
bool hasDifferentCurrency
bool hasVariablePrice
bool hasSpecialOffer
bool hasOnlyDefaultVariant
bool hasUnitPriceCalculation
float width
float height
float length
float volumentricWeight
float rate
int rateCount
float packageQuantity
Price otherPrice
Price price
Price basePrice
Price specialOfferPrice
?VariantSpecialOffer specialOffer
Price unitPrice
Price specialOfferUnitPrice
Price maxPrice
Price minPrice
ProductAttributeGroupsList attributeGroups
?ProductBundle bundle
ProductBundlesList bundles
Tax tax
Producer producer
CollectionsList collections
ProductFilesList files
Unit unit
Unit unitPriceCalculationUnit
Currency currency
?Category category
CategoriesList additionalCategories
ProductCommentsList comments
ProductsList relatedProducts
ProductImagesList images
ProductImage featuredImage
ProductImage promotingImage
ProductAvailability availability
?ProductDelivery delivery
ProductVariant variant
ProductVariantsList variants
ProductOptionsList options
Metafields metafields
DateTime createdAt
DateTime modifiedAt
?LoyaltyProductUrl loyaltyUrl
GpsrCertificatesList gpsrCertificates
?GpsrImporter gpsrImporter
?GpsrProducer gpsrProducer
?GpsrResponsible gpsrResponsible
}
click Category href "/object-api/objects/categories/category/"
Properties¶
Attribute name | Type | Description |
---|---|---|
id | int |
The unique identifier of the product. |
url | ProductUrl |
The ProductUrl object that represents the url for product. |
name | string |
The name of the product. |
code | string |
The product code/SKU. |
ean | string |
The EAN code of the product. |
sku | string |
The product code/SKU. |
gtin | string |
The GTIN code of the product. |
isbn | string |
The ISBN code of the product. |
kgo | string |
The KGO code of the product. |
bloz7 | string |
The BLOZ7 code of the product. |
bloz12 | string |
The BLOZ12 code of the product. |
producerCode | string |
The producer code of the product. |
pkwiu | string |
The PKWIU code of the product. |
code39 | string |
The code39 code of the product. |
gtu | string |
The GTU classification category of the product. |
description | string |
The description of the product. |
shortDescription | string |
The short description of the product. |
isBundle | bool |
Returns true if product is a bundle. |
isAvailable | bool |
Returns true if product is available. |
isBestseller | bool |
Returns true if product is a bestseller. |
isProductOfTheDay | bool |
Returns true if product is marked as product of the day. |
isNew | bool |
Returns true if product is marked as new. |
isUsedInLoyaltyProgram | bool |
Returns true if product is used in loyalty program. |
hasDifferentCurrency | bool |
Returns true if product's price is set in different currency than the shop's default one. |
hasVariablePrice | bool |
Returns true if product has variable price based on different options. |
hasSpecialOffer | bool |
Returns true if product has special offer. |
hasOnlyDefaultVariant | bool |
Returns true if product has only a default variant. |
hasUnitPriceCalculation | bool |
Returns true if product has turned on unit price calculation. |
width | float |
The width of the product. |
height | float |
The height of the product. |
length | float |
The length of the product. |
volumetricWeight | float |
The volumetric weight of the product. |
rate | float |
The mean product rating. |
rateCount | int |
Number of votes for product rating. |
packageQuantity | float |
The quantity of the product in a single package. |
specialOffer | null | VariantSpecialOffer |
The VariantSpecialOffer object representing the special offer of the variant. |
otherPrice | Price |
The Price object representing the price of the product in different stores. |
price | Price |
The Price object representing the current price of the product. |
basePrice | Price |
The Price object representing the base price of the product (without special offer discount). |
specialOfferPrice | Price |
The Price object representing the special offer price of the product. |
unitPrice | Price |
The Price object representing the base unit price of the product |
specialOfferUnitPrice | Price |
The Price object representing the special offer unit price of the product. |
maxPrice | Price |
The Price object representing the maximum price of a variant of the product. |
minPrice | Price |
The Price object representing the minimum price of a variant of the product. |
attributeGroups | ProductAttributeGroupsList |
Reference to the ProductAttributeGroupsList object that represents the attributes group list of ProductAttributeGroup objects associated with the product. |
bundle | null | ProductBundle |
If product is bundle, returns the ProductBundle object that represents the bundle information of the product. |
bundles | ProductBundlesList |
Reference to the ProductBundlesList object that represents the bundles list of ProductBundle objects in which this product is part of the bundle. |
tax | Tax |
The Tax object representing product tax rate information. |
producer | Producer |
The Producer object that represents the producer of a product. |
collections | CollectionsList |
Reference to the CollectionsList object that represents the list of Collection objects associated with this product. |
files | ProductFilesList |
Reference to the ProductFilesList object that represents the files list of ProductFile objects associated with product. |
unit | Unit |
The Unit object representing information about a unit to measure the quantity of a product. |
unitPriceCalculationUnit | Unit |
The Unit object representing information about a unit to measure quantity of a product in unit price calculation. |
currency | Currency |
The Currency object representing information about a currency that has been manually set for the product. If it is null, the product uses the current shop currency. |
category | null | Category |
The Category object that represents main category of a product if product has active main category. |
additionalCategories | CategoriesList |
Reference to the CategoriesList object that represents the additional categories list of Category objects associated with product. |
comments | ProductCommentsList |
Reference to the ProductCommentsList object that represents the comments list of ProductComment objects associated with product. |
relatedProducts | ProductsList |
Reference to the ProductsList object that represents related products list of Product objects associated with product. |
images | ProductImagesList |
Reference to the ProductImagesList object that represents the images list of ProductImage objects associated with the product. |
featuredImage | ProductImage |
The ProductImage object that represents the main image of the product. If product doesn't have any image, placeholder will be provided. |
promotingImage | ProductImage |
The ProductImage object that represents the promoting image of the product. That is image of default variant if is in special offer, or product's featured image otherwise. |
availability | ProductAvailability |
The ProductAvailability object that represents the availability of the product. |
delivery | null | ProductDelivery |
The ProductDelivery object that represents the delivery information of the product. |
variant | ProductVariant |
The ProductVariant object that represents the default variant of the product. |
variants | ProductVariantsList |
Reference to the ProductVariantsList object that represents the variants list of ProductVariant objects associated with the product. |
options | ProductOptionsList |
Reference to the ProductOptionsList object that represents the options list of ProductOption objects associated with the product. |
metafields | Metafields |
Reference to the Metafields object that provides access to the namespaced containers for key - value pairs of data. |
createdAt | DateTime |
The DateTime object representing the date the product was created. |
modifiedAt | DateTime |
The DateTime object representing the date the product was modified. |
loyaltyUrl | LoyaltyProductUrl |
The LoyaltyProductUrl object that represents the url for product if product is available in Loyalty Program. |
gpsrImporter | null | GpsrImporter |
Reference to the GpsrImporter object that represents the importer of the product according to General Product Safety Regulation. |
gpsrProducer | null | GpsrProducer |
Reference to the GpsrProducer object that represents the producer of the product according to General Product Safety Regulation. |
gpsrResponsible | null | GpsrResponsible |
Reference to the GpsrResponsible object that represents the responsible entity of the product according to General Product Safety Regulation. |
gpsrCertificates | GpsrCertificatesList |
Reference to the GpsrCertificatesList object that represents the list of certificates of the product according to General Product Safety Regulation. |
Examples¶
id
property¶
url
property¶
name
property¶
code
property¶
ean
property¶
sku
property¶
gtin
property¶
isbn
property¶
kgo
property¶
bloz7
property¶
bloz12
property¶
producerCode
property¶
pkwiu
property¶
code39
property¶
gtu
property¶
description
property¶
shortDescription
property¶
isBundle
property¶
isAvailable
property¶
isBestseller
property¶
isProductOfTheDay
property¶
isNew
property¶
isUsedInLoyaltyProgram
property¶
hasDifferentCurrency
property¶
hasVariablePrice
property¶
hasSpecialOffer
property¶
hasOnlyDefaultVariant
property¶
hasUnitPriceCalculation
property¶
width
property¶
height
property¶
length
property¶
volumetricWeight
property¶
rate
property¶
rateCount
property¶
packageQuantity
property¶
specialOffer
property¶
otherPrice
property¶
price
property¶
basePrice
property¶
specialOfferPrice
property¶
unitPrice
property¶
specialOfferUnitPrice
property¶
maxPrice
property¶
minPrice
property¶
attributeGroups
property¶
bundle
property¶
bundles
property¶
tax
property¶
producer
property¶
collections
property¶
files
property¶
<b>Label</b>
<p>More information about ingredients</p>
<a href="https://example.com/en/p/file/1/leaflet.pdf" title="leaflet.pdf">Download file</a>
<br>
<b>Booklet</b>
<p>Check out our other products!</p>
<a href="https://example.com/en/p/file/1/booklet-mini-set.pdf" title="booklet-mini-set.pdf">Download file</a>
<br>
unit
property¶
unitPriceCalculationUnit
property¶
currency
property¶
category
property¶
additionalCategories
property¶
comments
property¶
relatedProducts
property¶
images
property¶
featuredImage
property¶
promotingImage
property¶
availability
property¶
delivery
property¶
variant
property¶
variants
property¶
options
property¶
{% for option in product.options %}
{{ option.name }}:
{% if option.isRadio %}
<div class="option_radio {% if option.isRequired %}option_required{% endif %}">
{% for value in option.values %}
<input type="radio" id="option_{{ option.id }}_{{ value.id }}" name="option_{{ option.id }}" value="{{ value.id }}" {% if option.isStockOption and not value.isAvailable %}data-unavailable{% endif %}/>
<label for="option_{{ option.id }}_{{ value.id }}">{{ value.name }}</label>
{% endfor %}
</div>
{% endif %}
{% endfor %}
example radio:
<div class="option_radio">
<input type="radio" id="option_1_1" name="option_1" value="1" />
<label for="option_1_2">example radio 1</label>
<input type="radio" id="option_1_2" name="option_1" value="2" />
<label for="option_1_2">example radio 2</label>
<input type="radio" id="option_1_3" name="option_1" value="3" />
<label for="option_1_3">example radio 3</label>
</div>
example radio 2:
<div class="option_radio">
<input type="radio" id="option_2_1" name="option_2" value="1" />
<label for="option_2_1">example radio 1</label>
<input type="radio" id="option_2_2" name="option_2" value="2" />
<label for="option_2_2">example radio 2</label>
<input type="radio" id="option_2_3" name="option_2" value="3" />
<label for="option_2_3">example radio 3</label>
</div>