Skip to content

Commit

Permalink
Update Order.php
Browse files Browse the repository at this point in the history
Obtain static $reference_id_padding via Configuration API
  • Loading branch information
AntonyThorpe authored May 1, 2024
1 parent cad5c89 commit d4f437b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ public function IsCart()
*/
public function generateReference()
{
$reference = str_pad($this->ID, self::$reference_id_padding, '0', STR_PAD_LEFT);
$reference = str_pad($this->ID, static::config()->get('reference_id_padding'), '0', STR_PAD_LEFT);

$this->extend('generateReference', $reference);

Expand Down

0 comments on commit d4f437b

Please sign in to comment.