Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the order form supports more that 1 currency, the currency can be specified in the URL. Consider a couple examples:

DescriptionParametersURINotes
Set the currency for the order form.
  • currency The currency to use for the order
/order/main/index/label/?currency=USDIn this example, the
  • Currency is USD
Set the currency to a Specific Product
  • group_id The ID of the package group to display
  • package_id The ID of the package to select by default

    Info

    Note that this is the ID of the package as seen in the URL when editing the package.


  • currency The currency to use for the product
/order/main/index/vps/?group_id=1&package_id=5&currency=USD

In this example, the

  • Currency is USD
  • Order form label is vps
  • Package Group ID is 1
  • Package ID is 5

Linking to an Order Form to Include a Specific Language

If Blesta is configured to support more than one language, the language can be specified in the URL. Consider a couple examples:

DescriptionParametersURINotes
Set the language for the order form.
  • lang The currency to use for the order
/order/main/index/label/?lang=fr_frIn this example, the
  • Language is fr_fr

Common Issues

  • reCaptcha always returns "The captcha entered was invalid. Please try again."
    • This may be a result of allow_url_fopen being disabled in your PHP config. To confirm, check your Blesta logs for: general.WARNING: E_WARNING: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 This directive must be changed for reCaptcha to work properly.