
# BardCommerce Module Change Log

## [TODO]

- Fix: Shop slugs aren't checked against existing ones when creating a shop.
- Fix: Publishing date on new products might be being set as date and not datetime.
- Fix: "Commerce Products List" widget doesn't seem to be working on single product pages.
- Missing: Implement virtual downloadable products functionality.
- Missing: Implement alerting treshold.
- Missing: All shops browser for sysadmins.
- Implement bitcoin fees fetcher from [Earn Bitcoin](https://bitcoinfees.earn.com/api/v1/fees/recommended).

## [1.2.53] - 2026-05-26

- Removed duplicate headers from the categories exporter.

## [1.2.52] - 2026-02-18

- Fixed wrong item shown on the giveaway dialog at the single product page.

## [1.2.51] - 2026-01-21

- Added URL externalization on the JSON products browser.
- Added extension points on storefront and landing scripts.
- Other minor adjustments.

## [1.2.50] - 2026-01-16

- Added formatted regular price to the JSON browser.
- Added missing fields to new order messages when injected programmatically.

## [1.2.49] - 2026-01-02

- Added sale dates on shop admin records browser.

## [1.2.48] - 2025-12-14

- Added support for multi-shop only through the JSON API browser.
- Added shop inclusion limitation removal support for browsing specific shops.
- Tuned payment gateways list for shops on the dashboard.

## [1.2.47] - 2025-10-29

- Sanitized product search input.

## [1.2.46] - 2025-04-19

- Added total (order cash value) and page sum to the orders table.
- Added filter by date / date range to the orders table.

## [1.2.45] - 2025-03-19

- Fixed error thrown in the product composer related/upsells/cross-sells linking area.

## [1.2.44] - 2025-02-25

- Added PoliCromix GPs to supported currencies.

## [1.2.43] - 2024-12-22

- Removed unneeded elements from the checkout page.
- Tuned products section on the single order page.

## [1.2.42] - 2024-12-04

- Right sidebar listing widget tuning.

## [1.2.41] - 2024-11-22

- Added sorting by category to the storefront product browser.
- Added short description to shops on the dashboard.
- Fixed display issue of the warning about missing shipping methods for physical products
  on the product composer.
- Minor fixes.
- Added shop listing/unlisting on the dashboard (only for sysadmins).

## [1.2.40] - 2024-09-28

- Fixed wrong display order of the product giveaway user selector.

## [1.2.39] - 2024-09-27

- Added option to copy products across shops of the same owner.

## [1.2.38] - 2024-08-20

- Added extension points on the categories exporter.
- Added extension point on the items browser.

## [1.2.37] - 2024-08-16

- Added Access Control header on the XML categories exporter.

## [1.2.36] - 2024-08-16

- Added shop details to the JSON items exporter.
- Sanitized control vars in the JSON items exporter.

## [1.2.35] - 2024-08-11

- Removed payment gateway requirement from product giveaways and set it as cash/check.
- Added support for VIP product giveaways.
- Fixed issues with PayPal.
- Added filtering on entry descriptions to avoid breaking them in PayPal and BCF forms.

## [1.2.34] - 2024-03-23

- Tuned sale ending/product expiration captions.

## [1.2.33] - 2024-03-19

- Added missing output handling case when browsing the catalog as JSON and no records were found.

## [1.2.32] - 2024-03-16

- Added support for marking orders as 'received' when they include virtual products only.
- Added metas to the single shop landing page based on the shop details.
- Added customizable metas to the base landing page.

## [1.2.31] - 2024-02-21

- Fixed issue that shown disabled payment gateways in the order payment page.
- Minor additions.

## [1.12.30] - 2024-01-05

- Added PoliCromix SPs to supported currencies.
- Fixed image glitch on the product page.
- Added check for fixer.io on the single order page to prevent error being thrown.
- Tuned payment gateway notes on the open order page.
- Fixed issues on default settings on module installation.

## [1.2.29] - 2023-09-07

- Tuned product browser.

## [1.2.28] - 2023-07-27

- Added doc hintings on the products data section of the single order page.
- Added fix to the featured image on the product page.
- Added checks on the order payment section to prevent overselling products.

## [1.2.27] - 2023-07-22

- Added product giveaways for shop coadmins.

## [1.2.26] - 2023-07-01

- Added account user level based discounts on products.

## [1.2.25] - 2023-04-10

- Removed overdue sale/expiration captions on product boxes.
- Improved JSON browser.

## [1.2.24] - 2022-11-07

- Refactored available products filter to:
  - Show products with offers (previously hidden when offers were defined but expired).
  - Always show products with no stock (systemwide setting).
- Removed "add to cart" button from product listings when products out of stock are shown.

## [1.2.23] - 2022-11-05

- Allowed deletion of products on dormant orders.

## [1.2.22] - 2022-10-31

- Tuned user semaphore extender.

## [1.2.21] - 2022-10-26

- Added extension point on the product record class.

## [1.2.20] - 2022-10-25

- Added extension point on the single product page.

## [1.2.19] - 2022-10-25

- Added option to relocate the ShareThis bar on the single product page.

## [1.2.18] - 2022-09-22

- Added logic to go straight to payment when only one order is confirmed on checkout.

## [1.2.17] - 2022-09-14

- Added post-description from meta in the product page.

## [1.2.16] - 2022-09-13

- Fixed empty message registered on an order when virtual products aren't sent.
- Added meta getter to the product record.
- Fixed issue in expiration date check when saving a product.
- Added extension point at the top of the product composer.
- Added extension point after preloading in the product saving script.
- Added extension point on the shop products maintenance browser.
- Added `publish` method to the products repository.
- Some style tunings.
- Added checks on the cart to disable setting out of inventory existence amounts.

## [1.2.15] - 2022-09-11

- Added enforcement of visible attributes when no variants are defined on the single product page. 

## [1.2.14] - 2022-09-03

- Added debug info for empty messages saved on an order.
- Added extender for modifying log entries in the orders repository.

## [1.2.13] - 2022-08-29

- Added option on the abstract payment gateway interface to skip product deduction.
- Fixed wrong check on product price on the product record class.
- Fixed URL issue on the shop record class.
- Added identifier on the invoice data form on the single order page.
- Added missing definition on the `set_order_as.php` helper that threw a fatal error.

## [1.2.12] - 2022-08-22

- Added check to allow immediate usage of payment gateways that don't require metadata.
- Minor markup additions.

## [1.2.11] - 2022-03-16

- Refactored IP Geolocation functions.

## [1.2.10] - 2021-12-27

- Added cookie sanity check.

## [1.2.9] - 2021-12-17

- Input sanitization in multiple points.

## [1.2.8] - 2021-10-25

- Fixed name of Phillippine peso.

# [1.2.7] - 2021-09-22

- Fixed selector for offers scroller.

## [1.2.6] - 2021-08-19

- Added support for the User Semaphores module.

## [1.2.5] - 2021-08-01

- Rearranged call to styles and scripts.
- Removed injected sections on the home when navigating the posts index.

## [1.2.4] - 2021-07-20

- Fixed issue in selecting products for sale in the products repository.
- Fixed issue in displaying formatted price on discounted products.
- Added sale ending time on the product page for products that have a sales ending date defined.
- Replaced main menu entry with submenu for users with shops.
- Fixed errors caused by deleted products on order listings.
- Added extendable method to the repository.
- Added extension points.

## [1.2.3] - 2021-07-06

- Added support for sharethis on the product page.
- Allowed public visibility of product sale stats.
- Added CSS identifiers to action buttons on order detail sections.
- Added missing SEO tags on single product pages.
- Tuned the `is_purchasable` method in the product record class.
- Disabled the "add to cart" button on the product page when there are no units left for sale.

## [1.2.2] - 2021-07-05

- Added filter for disabled payment gateways on the shops composer.
- Added methods to the shops repository.
- Tuned product record methods.
- Added extension points on the product record class.
- Added inventory availability on the product page.
- Added "processer" param to the `change_state` method on the orders repository.
- Added support for virtual products management by extensions.
- Added extension point on the product saving script.
- Added extension point on the BCF payment processing gateway.
- Added extension areas info on the module information file.
- Fixed CSS typos in the products browser.
- Added setting to limit the amount of products a shop can feature.
- Fixed unit display price issue.
- Added a setting to always show a link to the full browser on multiple shops.
- Some cleanup.

## [1.2.1] - 2021-04-20

- Fixed issue with great total calculation/displaying.

## [1.2.0] - 2020-05-19

- Added exportable category lists:
  - All categories: `/<base>/all-categories-list.xml`
  - Categories in shop: `/<base>/<shop_slug>/categories-list.xml`
- Added encoding fallback to the RSS feed generators.
- Added JSON exportable browsing mode for shops:
  - `/<base>/<shop_slug>/?mode=browse&limit=n&offset=n&order=[n]&search_category=string&search_for=string`
  - `order=16` ~ Order by relevance (default)
  - `order=2` ~ Order by newest
  - `order=8` ~ Order by popularity
  - `order=19` ~ Order by price (low to high)
  - `order=20` ~ Order by price (high to low)
  - `order=3` ~ Order by name
  - `search_category=string` ~ Search in category id.
  - `search_for=string` ~ Search by product id, sku, custom id, parent id, main category, title, slug, short description, long description.

## [1.1.0] - 2020-04-26

- Improved right sidebar categories list.
- Added RSS feeds on the landing page, category listings and shop listings.

## [1.0.4] - 2020-04-11

- Added maintenance script (requires cron job).
- Adjusted CLI launchers to use the maintenance script.

## [1.0.3] - 2020-04-11

- Implemented exporting of products to CSV.
- Added multi-product deletion.
- Implemented importing products from CSV.

## [1.0.2] - 2020-04-04

- Hidden backorders info from the products composer - not yet implemented.
- Added registration of product adds/removes from cart/wishlists.
- Added removal of empty metadata on orders.
- Added product sales/existence counter updates.

## [1.0.1] - 2020-04-04

- Version bump.

## [1.0.0] - 2020-04-04

- Initial release.
