Skip to content

Releases: AntonyThorpe/silvershop-unleashed

PHP 8.1

03 Jul 07:14
Compare
Choose a tag to compare

Upgrade to PHP 8.1
Breaking change:

  • Changed namespace AntonyThorpe\SilvershopUnleashed to AntonyThorpe\SilverShopUnleashed.

Upgraded to Guzzle 7

28 Aug 10:06
Compare
Choose a tag to compare
Update PHPUnit to v9.5

Updated composer, tests & ci.yml

Updated folder name to comply with PSR-4 requirements

08 Sep 08:07
Compare
Choose a tag to compare
4.0.1

Update folder name to comply with PSR-4 requirements

Updated namespaces to comply with PSR-4 requirements

07 Sep 05:35
Compare
Choose a tag to compare

BugFix: Rounding Errors

13 Apr 05:55
Compare
Choose a tag to compare

Rounding errors can be created by different ways of calculating Tax. SilverShop calculates Tax based on the Sub Total, whereas, Unleashed sums the Tax on each line item of the sales order and applicable modifiers. The code has been adjusted to follow the Unleashed approach and any rounding is added to the first sales order line and also to the TaxTotal to correct. Grand total remains the same.

Added a new function setBodyTaxCode to the Order class.

Refactor code

14 Jun 02:54
Compare
Choose a tag to compare

SilverShop 3/SilverStripe 4
Additional tests
New configuration settings for tax and shipping modifiers. Example below:

SilverShop\Model\Modifiers\FlatTax:
  tax_code: OUTPUT2
AntonyThorpe\SilverShopUnleashed\Defaults:
  shipping_modifier_class_name: 'SilverShop\Model\Modifiers\Shipping\Simple'  
  # Note: the `product_code` still needs to be set against the Shipping Modifier

Bugfix: Fixed rounding issue with the SubTotal

29 May 05:53
Compare
Choose a tag to compare

Updated Order.php
Corrected tests

Bugfix: avoid call to value function on a modifier

01 Mar 04:51
Compare
Choose a tag to compare
Bugfix: avoid call to value function on modifier

$modifier->value() is expecting a parameter.  A call generates an
Uncaught ArgumentCountError: Too few arguments to function.  Use LineTotal instead.

Added Deleted/MemberCancelled status to UnleashedUpdateOrderTask

13 Dec 04:23
Compare
Choose a tag to compare
Added deleted status to UnleashedUpdateOrderTask.php

Updated tests

More complex Customer checks before creation in Unleashed

09 Aug 05:36
Compare
Choose a tag to compare
  • More complex Customer checks before creation in Unleashed
  • Simplified code and added tests
  • Only include modified items with a value in a Sales Order
  • Record when an Sales Order is posted to Unleashed to avoid potential double-ups