From 2817d213042e456b997ed03ace3c38006dcc310c Mon Sep 17 00:00:00 2001 From: Kavinda Harshana Date: Tue, 22 Oct 2024 15:56:47 +0530 Subject: [PATCH] fix issues --- src/Model/Variation/OrderItem.php | 2 +- src/Page/Product.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Variation/OrderItem.php b/src/Model/Variation/OrderItem.php index 1a8881906..e9778e978 100644 --- a/src/Model/Variation/OrderItem.php +++ b/src/Model/Variation/OrderItem.php @@ -46,7 +46,7 @@ public function ProductVariation($forcecurrent = false) } return null; } - + public function onPlacement() { parent::onPlacement(); diff --git a/src/Page/Product.php b/src/Page/Product.php index 2b6afb5cf..68ee8b5c1 100644 --- a/src/Page/Product.php +++ b/src/Page/Product.php @@ -321,7 +321,7 @@ public function getCategories() * @return boolean */ public function canPurchase($member = null, $quantity = 1) - {die('aaaaaa'); + { $global = self::config()->global_allow_purchase; if (!$global || !$this->AllowPurchase) {