Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function clearPrimary(): Promise<void>;
import { plans } from "wix-pricing-plans.v2";
export async function myClearPrimaryFunction() {
try {
const clearedPrimary = await plans.clearPrimary();
return;
} catch (error) {
console.error(error);
// Handle the error
}
}
/* Promise resolves to void */
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.