This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Removes the overrideCheckoutUrl
from a specified checkout.
When overrideCheckoutUrl
is removed, the checkoutUrl
will be set to the default, standard
Wix checkout page URL.
function removeOverrideCheckoutUrl(
_id: string,
): Promise<RemoveOverrideCheckoutUrlResponse>;
ID of the checkout to remove the override checkout url from.
import { checkout } from "wix-ecom-backend";
async function removeOverrideCheckoutUrl(id) {
try {
const result = await checkout.removeOverrideCheckoutUrl(id);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.