Workarea 3.0.27
Persist and validate ability to ship when updating checkout addresses
Iterate through all shipping records related to the checkout and save/validate their information. Although out-of-box we only support a single shipping record, this allows plugins like split-shipping to work without diving too far into checkout decoration.
Issues
Pull Requests
Commits
Split cookie data on the correct delimiter to create key/value pairs
The WORKAREA.cookie.read()
method takes a given key and returns the value of that key in the document.cookie
string. This string, which delimits key/value pairs with a semicolon and the difference between a key & value with an equals sign, is at some point split on the character =
, which in a URL could in theory exist within query string parameters. Instead of splitting on every occurrence of =
, we're now only splitting on its first occurrence and preserving the rest of the string as its value.
Issues
Pull Requests
Commits
Generate contents of first release in changelog generator Rake task
When generating a new plugin, the changelog
task now considers all changes, from the initial commit to the current, as the initial release. This addresses an issue wherein if no tags were ever created on the plugin's Git repo, the initial changelog entry would be blank.
Issues
Pull Requests
Commits
New action for rendering product details asynchronously
Previous versions of the platform rendered a different template on the storefront/products#show
action when requested asynchronously using XmlHttpRequest. Rather than overload the show action by returning out of it prematurely, causing issues downstream when other plugins wish to decorate the action, we're displaying the product details partial for a given template in its own action, called storefront/products#details
which is requested asynchronously instead of the original show action for products. This is aimed to reduce complexity in other product template plugins, as well as address a number of issues with quickview, package products, and other plugins that modify (or build on top of) product templates.
Issues
Pull Requests
Fix configuration for sending emails in a background job
ActionMailer uses ActiveJob to send emails in the background, and out-of-box we were not configuring it to use Sidekiq. We're now setting ActiveJob's queue_adapter in the platform, so ActiveJob always uses Sidekiq by default rather than the "async" adapter.
Issues
Pull Requests
Add append point to alt images on generic product template
Add the storefront.product_details_alt_images
append point to the end of the generic product template, and within the .product-details__alt-images
element. This will be used by the product videos plugin to append videos as a thumbnail.
Issues
Pull Requests
Commits
Add class modifier for block type to .content-block
The .content-block
block now includes a modifier class for determining the content block type. For example, the block type class for a "rich text" content block might be .content-block--rich-text
.