getAddress( )


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.

Method Declaration
Copy
function getAddress(): Promise<GeneralInfoAddress>;
Request
This method does not take any parameters
Returns
Return Type:Promise<GeneralInfoAddress>
Get site's corresponding physical address information
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getAddress = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getAddress(); }); /* * { * "street": "235 W 23rd St", * "city": "New York", * "country": "USA", * "state": "NY", * "zip": "10011", * "hint": { * "text": "green building", * "placement": "BEFORE" * }, * "isPhysical": true, * "googleFormattedAddress": "235 W 23rd St, New York, NY, 10011", * "streetNumber": "235", * "apartmentNumber": "12", * "coordinates": { * "latitude": "40.744869", * "longitude": "-73.996736" * } * } */
Did this help?

getBusinessName( )


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.

Method Declaration
Copy
function getBusinessName(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the site business name
JavaScript
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" });
Did this help?

getBusinessSchedule( )


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.

Method Declaration
Copy
function getBusinessSchedule(): Promise<GeneralInfoSchedule>;
Request
This method does not take any parameters
Returns
Return Type:Promise<GeneralInfoSchedule>
Get site business hours
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getBusinessSchedule = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getBusinessSchedule(); }); /* * { * "periods": [ * { * "openDay": "MONDAY", * "openTime": "08:00", * "closeDay": "MONDAY", * "closeTime": "17:00" * }, * { * "openDay": "THURSDAY", * "openTime": "09:00", * "closeDay": "THURSDAY", * "closeTime": "18:00" * } * ], * "specialHourPeriod": [ * { * "startDate": "31-12-2018", * "endDate": "01-01-2019", * "isClosed": true, * "comment": "new year eve" * } * ] * } */
Did this help?

getCategories( )


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.

Method Declaration
Copy
function getCategories(): Promise<GeneralInfoCategories>;
Request
This method does not take any parameters
Returns
Return Type:Promise<GeneralInfoCategories>
Get site category information
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getCategories = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getCategories(); }); /* * { * "primary": "business", * "secondary": ["technology-apps"] * } */
Did this help?

getDescription( )


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.

Method Declaration
Copy
function getDescription(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the site description
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getDescription = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getDescription(); // "Description text." });
Did this help?

getEmail( )


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.

Method Declaration
Copy
function getEmail(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the email address used for notifications of activities on your site
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getEmail = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getEmail(); // "some@email.com" });
Did this help?

getFax( )


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.

Method Declaration
Copy
function getFax(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the fax number used for notifications of activities on your site
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getFax = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getFax(); // "+ 555-55-5556" });
Did this help?

getLanguage( )


Gets site language information.

The getLanguage() function returns a Promise that resolves to the site's language information.

The retrieved language information is the information that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
function getLanguage(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get site language information
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getLanguage = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getLanguage(); // "en" });
Did this help?

getLocale( )


Gets site locale information.

The getLocale() function returns a Promise that resolves to the site's locale information.

The retrieved locale information is the information that has been entered in the General Info section of your site's Dashboard.

Method Declaration
Copy
function getLocale(): Promise<GeneralInfoLocale>;
Request
This method does not take any parameters
Returns
Return Type:Promise<GeneralInfoLocale>
Get site locale information
JavaScript
import { Permissions, webMethod } from "wix-web-module"; import wixSiteBackend from "wix-site-backend"; export const getLocale = webMethod(Permissions.Anyone, () => { return wixSiteBackend.generalInfo.getLocale(); }); /* * { * "country": "US", * "languageCode": "en" * } */
Did this help?