Public Backlog

WebinOne announcements, releases, updates and achievements

v 5.9.5 Release date: 22 Apr, 2021

Full Release Notes

v5.9.5

BACKLOG

Default list layout for favorites list

Added default list layout for favorites (list of all items added to favorites).

Default layout will render: Name, description and URL to item.

New layout file created `list.layout` at `/cms-assets/layouts/favorites/` (https://prnt.sc/10v7n7j)

Admin Component Manager:

  • Rename `CRM > Favorites` to `CRM > Add to Favorites Button`
  • Add `itemId` param. Add item search to this field if `source` selected (preset with `{{this.id}}`)
  • Remove limit param from this area (it only makes sense for favorites list)
  • Add CRM > Favorites list
  • Preset list layout with path to new layout file `/cms-assets/layouts/favorites/list.layout` (https://prnt.sc/10vbu8z).

BACKLOG

Shopping cart Javascript events and triggers

Added the ability to customise the ecommerce javascript functionality.
A set of Javascript events for various eCommerce functions have been added for “Before”, “After” and “Trigger” events.

These events have now been documented here:

https://docs.webinone.com/ecommerce/shopping-cart-javascript#secShopEvents

------------------------------------------------

Added ability to rewrite ecommerce alert messages.

This has now been documented here:

https://docs.webinone.com/ecommerce/shopping-cart-javascript#secOverrideAlerts

BACKLOG

Improve Stripe payment error messages and payment form `onsubmit`

Submit flow for payment forms and/or recaptcha v3 forms has been reworked.

Backend:


`formSubmissionData
` object (for both JSON response and Liquid) now will always have `FormRedirectLink` property.

Value will be either:

  • system thank you page for the form
  • custom redirect link (from redirectURL hidden field for that the form)
  • or redirect URL for Payment_Method==Paypal or bamboraEU (redirect) payment gateway

NOTE: `FormRedirectLink` will be set even if there are errors in the `ErrorMessages` property. If you go to the link without checking for errors – they will be set to `formSubmissionData` Liquid object on that page as well, but only for the first page load.

Frontend:

Improve reCaptcha v3 and payment JS.

Added new custom event that will be triggered after all reCaptcha v3 validations (instead of the regular `submit` event)

These events allows you to:
-
Add any additional validation actions and stop the form submit via `event.preventDefault();` function.
-
Perform AJAX submit of the form (with already validated recaptcha token and payment data)

See documentation for these events and example here:
https://docs.webinone.com/ecommerce/shopping-cart-javascript#secPaymentFormEvents

BACKLOG

Add Release date to Add/edit item forms

Add `prop_ReleaseDate` to the add and edit module item HTML forms, retrieved via the Component Manager/Toolbox.

Add ability to use `prop_Enable` to add/edit module item controllers.
On ADD form
; if `prop_Enable` is specified in form submission - apply its value only if there is no admin approval required rules in place for the module.

BACKLOG

Liquid improvement: Ability to use variables in {% for %} tag

Ability to use `limit` and `offset` param value via variables (not just via pure numbers).

Example:

{% assign array = "1,2,3,4,5,6,7,8,9" | split: "," %}

{% assign lim = 3 %}

{% assign off  = 3 %}

{% for item in array limit: lim offset: off reversed %}

{{item}}<br>

{% endfor %}

Ability to use
from and to param value via variables (not just via pure numbers).

Example:

{% assign from = 1 %}

{% assign to = 5 %}

{% for item in (from..to) %}

{{item}}<br>

{% endfor %}

Before update, such code caused:
Liquid Error: Object reference not set to an instance of an object.

BUG

Fix secure zone assignment via forms with  Payment Method == Cash

Now, secure zone should be assigned once payment is added to the order and its status changed to paid.

BUG

Volume Discount applying fix

Now, volume discount applies based on SUM of quantities of all product variations instead of applying per variation only.

Show more less
New Feature

Shopping cart JS events and triggers

"Before" Callbacks

"Before" callbacks could be used for additional custom js logic and could interrupt event process.
Process could be interupted via event.preventDefault(); function.

Syntax

document.addEventListener("CMS_BeforeExample", function(event)
{
var data = event.data;
//custom code here
});

List of callbacks (see release notes)

"After" Callbacks

"After" callbacks could be used in order to retrieve data that...

  • Ecommerce
New Feature

Template MAX

One big universal template with all the features and functionalities that Treepl offers: TEMPLATE MAX
  • Templates
Improvement

Ability to use variables in for tag

Ability to use limit and offset param value via variables.
Not only via pure numbers.
Example:

{% assign array = "1,2,3,4,5,6,7,8,9" | split: "," %}
{% assign lim = 3 %}
{% assign offset  = 3 %}

{% for item in array limit:lim offset: offset  reversed %}
    //{{item}}
{% endfor %}
Ability to use from and...
  • Liquid
Improvement

Add ReleaseDate and Enabled properties to add/edit module item form for logged in users

Add prop_ReleaseDate to add and edit module item HTML forms, retrieved via toolbox.
Add ability to use prop_Enable in add and edit module item HTML forms.
- On ADD form - if prop_Enable specified in form submission - apply it's value only if there is no admin verification required for the module
  • Custom Modules
Improvement

Default list layout for favorites list

Add default list layout for favorites (list of all items added to favorites) and insert in to blank.
Use output of Name, description and url only

Rename CRM > Favorites to CRM > Add to Favorites Button
- Add itemId param. Add item search to the field if source selected.
-- preset by {{this.id}} (similar to how it works on...
  • General
Improvement

Improve Stripe payment error messages and payment form onsubmit

Add CMS_CustomSubmit event that will be triggered for all payment forms including forms with reCaptcha v3
Add CMS_triggerHandlePayment trigger that will allow to finalize payment process if form will be sent via ajax inside CMS_CustomSubmit event handler.
Add CMS_AfterFormPaymentHandled event that will be triggered once all payment processes are made.
See release notes for more details.
  • Ecommerce