To use the generalInfo API, import wixSiteBackend
from the wix-site-backend
module:
Gets the physical address of the site's business.
The getAddress()
function returns a Promise that resolves to the site's
corresponding physical address information.
The retrieved address is the address that has been entered in the General Info section of your site's Dashboard.
Gets the site business name.
The getBusinessName()
function returns a Promise that resolves to the site's
business name information.
The retrieved business name is the name that has been entered in the General Info section of your site's Dashboard.
function getBusinessName(): Promise<string>;
import { Permissions, webMethod } from "wix-web-module";
import wixSiteBackend from "wix-site-backend";
export const getBusinessName = webMethod(Permissions.Anyone, () => {
return wixSiteBackend.generalInfo.getBusinessName(); // "My Business Name"
});
Gets the business hours of the site's business.
The getBusinessSchedule()
function returns a Promise that resolves to the site's
corresponding business hours information.
The retrieved schedule is the schedule that has been entered in the General Info section of your site's Dashboard.
Gets the site category information.
The getCategories()
function returns a Promise that resolves to the site's
category information.
The retrieved category information is the information that has been entered in the General Info section of your site's Dashboard.
Gets the site description.
The getDescription()
function returns a Promise that resolves to the site's
description information.
The retrieved description is the description that has been entered in the General Info section of your site's Dashboard.
Gets the email address used for notifications of activities on your site.
The getEmail()
function returns a Promise that resolves to the site's
email information.
The retrieved email address is the address that has been entered in the General Info section of your site's Dashboard.
Gets the fax number used for notifications of activities on your site.
The getFax()
function returns a Promise that resolves to the site's
fax number information.
The retrieved fax number is the fax number that has been entered in the General Info section of your site's Dashboard.