Get detailed information about the SKU (stock keeping unit) of a specified product, including specifications, price, inventory, wholesale rules, and more.This interface is suitable for scenarios that require displaying product specifications and purchase options.
Usage:{% archiveSku ๅ้ๅ with id=1 %}If the variable is defined as tags{% archiveSku productSku with id=1 %}...{% endarchiveSku %}
The parameters supported by tagList are:
- Document ID
id
idIf not specified, the ID of the current product will be read by default, or it can be manually specified to read the SKU information of the specified product.
- Site ID
siteId
siteIdGenerally, it is not necessary to fill in, if you use the multi-site management on the backend to create multiple sites and want to call data from other sites, you can specifysiteIdTo call the data of the specified site.
The productSku is an object, including fields such as:
| Field name |
Type |
Description |
| Id |
int |
Product ID |
| Title |
string |
Product Title |
| Currency |
string |
Currency Name |
| Currency Symbol |
string |
Currency Symbol |
| Price |
Float |
Product Price |
| Min Price |
Float |
Product Lowest Price |
| MaxPrice |
Float |
Product Highest Price |
| User Limit |
int |
Quantity Limit for Users |
| QuotaUsed |
int |
PurchasedQuantity |
| OrderCount |
int |
Sales |
| Stock |
int |
Inventory Quantity |
| Options |
object[] |
Product Specification Attribute Name |
| Skus |
object[] |
Product SKU Information |
| Wholesale Rules |
object[] |
Product Wholesale Rules |
Option Product Specification Attribute Name
| Field name |
Type |
Description |
| Id |
int |
Attribute ID |
| Title |
string |
Property Name |
| Values |
object[] |
Property value list |
Property value
| Field name |
Type |
Description |
| Id |
int |
Category ID |
| OptionId |
int |
Property ID |
| Option Title |
string |
Property Name |
| Title |
string |
Property Value Name |
| Logo |
string |
Logo |
| Color |
string |
Color value |
| Price |
Float |
Price |
SKU product information
| Field name |
Type |
Description |
| Id |
int |
Category ID |
| Title |
string |
SKU name |
| Symbol |
string |
Specification attribute value ID link symbol |
| Values |
object[] |
Property value list |
| Sku |
string |
Sku link symbol |
| Barcode |
string |
Barcode |
| HS Code |
string |
Customs Code |
| Logo |
string |
Logo |
| Thumb |
string |
Thumbnail |
| Stock |
int |
Inventory Quantity |
| Price |
int |
Price |
| Original Price |
int |
Price |
| Weight |
int |
weight |
| Weight unit |
string |
Weight unit |
| Sold count |
int |
Sales |
WholesaleRules Product Wholesale Rules
| Field name |
Type |
Description |
| Id |
int |
Rule ID |
| Archive ID |
int |
Document ID |
| Minimum Quantity |
int |
Minimum Quantity |
| MaxQuantity |
int |
Maximum Quantity |
| SkuId |
int |
SKU ID |
| Discount Rate |
int |
Discount rate, 0-100 |
| Created Time |
int |
Creation time |
| Updated Time |
int |
Update time |
Example Code
<div>
{% archiveSku productSku %}
<div>ไปทๆ ผ๏ผ{{productSku.MinPrice/100}} ~ {{productSku.MaxPrice/100}}</div>
...
{% endarchiveSku %}
</div>