Search...
removeOverrideCheckoutUrl( )
Developer Preview
Removes the overrideCheckoutUrl
from a specified checkout.
Description
When overrideCheckoutUrl
is removed, the checkoutUrl
will be set to the default, standard
Wix checkout page URL.
Syntax
function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOverrideCheckoutUrlResponse>
removeOverrideCheckoutUrl Parameters
NAME
TYPE
DESCRIPTION
_id
string
ID of the checkout to remove the override checkout url from.
Returns
Return Type:
Promise<
RemoveOverrideCheckoutUrlResponse
>NAME
TYPE
DESCRIPTION
checkout
Checkout
Updated checkout after removal of override checkout url.
Was this helpful?
removeOverrideCheckoutUrl example
Copy Code
1import { checkout } from 'wix-ecom-backend';23 async function removeOverrideCheckoutUrl(id) {4 try {5 const result = await checkout.removeOverrideCheckoutUrl(id);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13