Set Ecommerce URLDeprecated

This function enables Sitejet Commerce for all users and allows the hosting provider to set a custom URL for their payment platform, which customers can use to purchase the Sitejet Commerce upgrade.

SecurityBasicAuth
Request
query Parameters
allowEcommerce
required
integer
  • 1 - Sitejet Commerce is enabled.
  • 0 - Sitejet Commerce is disabled.
Enum: 0 1
Example: allowEcommerce=1
storeurl
string <url>

The URL for the hosting provider's payment platform. If this value is not set, the URL will default to the Sitejet Commerce store.

Example: storeurl=http://www.example-store.com/purchase
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/set_ecommerce
Request samples
whmapi1 --output=jsonpretty \
  Sitejet/set_ecommerce \
  allowEcommerce='1'
Response samples
application/json
{
  • "metadata": {
    • "command": "set_ecommerce",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}