Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected $cartHelper;
- public function __construct(
- MagentoCheckoutHelperCart $cartHelper
- ) {
- $this->cartHelper = $cartHelper;
- }
- if ($this->cartHelper->getItemsCount() === 0) {
- //add your logic
- }
Add Comment
Please, Sign In to add comment