Retrieves a store variant with the provided ID.
function getStoreVariant(_id: string): Promise<GetStoreVariantResponse>;
Store variant ID. Comprised of the productId
and the variantId
, separated by a hyphen. For example, {productId}-{variantId}
.
import { products } from "@wix/stores";
async function getStoreVariant(id) {
const response = await products.getStoreVariant(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.