at path:
ROOT
/
wp-content
/
plugins
/
tutor
/
ecommerce
/
Cart
/
BaseCart.php
run:
R
W
Run
Contracts
DIR
2026-04-14 05:34:26
R
W
Run
BaseCart.php
716 By
2026-04-14 05:34:26
R
W
Run
Delete
Rename
CartFactory.php
881 By
2026-04-14 05:34:26
R
W
Run
Delete
Rename
EddCart.php
1.95 KB
2026-04-14 05:34:26
R
W
Run
Delete
Rename
NativeCart.php
3.22 KB
2026-04-14 05:34:26
R
W
Run
Delete
Rename
WooCart.php
3.07 KB
2026-04-14 05:34:26
R
W
Run
Delete
Rename
error_log
up
📄
BaseCart.php
Save
<?php /** * Base cart for handling common functionalities * * @package Tutor\Ecommerce * @author Themeum * @link https://themeum.com * @since 3.5.0 */ namespace Tutor\Ecommerce\Cart; /** * BaseCart class */ class BaseCart { /** * Cart error * * @var string */ protected $cart_error; /** * Current user id * * @var int */ protected $user_id; /** * Initialize member variables * * @return void */ public function __construct() { $this->cart_error = __( 'Failed to add item to the cart', 'tutor' ); $this->user_id = get_current_user_id(); } /** * Get cart error * * @return string */ public function get_error(): string { return $this->cart_error; } }