CMS version 5.3.1.

Version 5.3.1 of WebBox CMS was released on 30th November 2018 with the following changes:

Notable features

  • Huge upgrades to the Stripe library for improved ease of integration.
  • Users can manage stored payment cards with Stripe in their account area.
  • Users can manage their connection with a Stripe account in their account area.

Core

  • CkEditor: Upload URLs are "about:blank" by default to stop a JS error for CkEditors with upload capability intentionally disabled.
  • Core controller: Added request function to ke in all the request content/payload regardless of the method. (This exists because Symfony has no built-in way to retrieve this for PATCH or PUT requests.)

Admin (CMS)

  • Layout:
    • Log when the "scriptsReady" event is about to be dispatched.
    • Removed translations.
  • Shared JS:
    • Fixed missing default parameters with the quick modal function.
    • Quick model button text (OK/Cancel) can now be customised with "buttonTextOk" and "buttonTextCancel" parameters.

Front

  • Shared JS:
    • Fixed missing default parameters with the quick modal function.
    • Quick model button text (OK/Cancel) can now be customised with "buttonTextOk" and "buttonTextCancel" parameters.
  • Style: Stub for calendar.

Calendar

  • Added background events to stub style.
  • Set Monday as the first day of week.

Commerce

  • Address form: Don't show user field if form is in a collection.
  • Stripe library:
    • Converted to work as a service rather than one off instances, and prepares itself from configuration. (Also a Twig global.)
    • Added function `getEnvironment()`.
    • Added function to delete a customer payment source.
    • Added function to get customer payment sources, a specific payment source, or the default payment source.
    • Added function to refund a charge.
    • Added function to set a customer's default payment source.
    • Connect URL now always comes from function `getConnectResponseUrl()`.
    • Creating a payment now has optional "set as default" after adding.
    • Creating a payment token now accepts any source class. (Bank account, card, or source.)
    • Fixed `buildErrorMessageFromException()` not detecting an instance of `\Exception` as valid.
    • Fixed a logic silly in `buildErrorMessageFromException()`. (||s should have been &&s.)
    • Fixed function to delete a coupon not checking if the delete actually worked.
    • Fixed function to delete a subscription plan not checking if the delete actually worked.
    • Fixed improper descriptor check in `createTransfer()`.
    • Fixes to `getConnectAccountHref()`.
    • Function `createCharge()` can now take in sources other than a token object.
    • Function `createCharge()` currency can be null to inherit the default currency.
    • Function `createCharge()` descriptor can be null to use the platform default.
    • Function `getAccount()` can now take in a string. -- Useful for Stripe Connect.
    • Function `getConnectAccountHref()` will assume registration is desired in preference of logging in, as most people won't have a Stripe account already.
    • Function `getConnectAccountHref()` will pre-fill more fields where possible.
    • Function `getPaymentSources()` has an odd situation when a customer has no sources.
    • Helper function `getAppClientID()` and `getAppClientId()` are now public.
    • Transfers now support taking in a custom application fee, and a source charge reference.

Email

  • Mail parser library: Improved reliability of template parsing.

Media

  • File manager controller: Removed function `readAjaxInputs()` as this has been ported to the core controller as `getRequestFields()`.

Menu

  • CMS:
    • Fixed language specific items not re-appearing in the tree.
    • Fixed primary language getting its own translated menu when it doesn't need one.

SMS

  • TextLocal SMS library: Fixed inconsistent cURL handle variable names.

User

  • Social login performance tweaks.
  • User entity:
    • Improvements to stripe add/remove account/customer functions.
    • Stripe account and customer properties can now be null.
    • Stripe account can now be connected/disconnected from the edit account page.
  • User account edit:
    • Added Stripe Dashboard button if a Stripe account is connected.
    • Interface to manage Stripe payment cards.
    • Tweaked Stripe Connect/Disconnect buttons.