Skip to content

Commit

Permalink
fix upselling
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Jul 26, 2024
1 parent 1ae2fb4 commit efc1ede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Config/Upselling.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
'versionNum' => '100',
'description' => 'Upselling',
'author' => 'Steve',
'enabled' => true,
'enable' => true,
];
6 changes: 4 additions & 2 deletions src/Upselling.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Webkul\Checkout\Models\CartPayment;
use Webkul\Checkout\Models\CartAddress;
use Webkul\Tax\Helpers\Tax;
use Illuminate\Support\Facades\Log;

class Upselling {

Expand All @@ -32,12 +33,13 @@ public function __construct(
protected CustomerAddressRepository $customerAddressRepository
)
{
$this->cart = $this->cartRepository->getCart();
//$this->cart = $this->cartRepository->getCart();
}


public function applyUpselling($cart) {
$this->cart = $cart;
// Apply upselling logic here
var_dump($cart);
//Log::info('Upselling logic applied '.json_encode($cart));
}
}

0 comments on commit efc1ede

Please sign in to comment.