Product Classes Price Coefficients
For merchants wishing to apply a different price coefficient to specific product classes (eg. Premium items for certain territories), the respective product class code can be indicated in the data-pc data attribute for these products. The actual coefficient rate should be defined in the Global‑e system for the respective product classes in the required countries. The Bespoke script will take the specified product class into consideration, combined with the associated configuration (if a coefficient rate applies to the respective shipping country) when calculating the price for the customer.
Below is an example of how the product class data attribute should appear on the website:
<div data-pc="extra-charge">...</div>
The HTML attribute can be positioned on the DOM without country considerations as long as the Bespoke script establishes if the coefficient is applicable to the country.
In addition to setting the data-pc HTML attribute, product class code should be returned in
The ProductClass attribute for the respective Product in GetCheckoutCartInfo API.
If needed, the applicable coefficients and associated countries can be recovered from Global‑e by calling the CountryCoefficients API mentioned in the separate “Global‑e API” document.