diff --git a/modules/splashsync/src/Objects/Product/AttributeTrait.php b/modules/splashsync/src/Objects/Product/AttributeTrait.php index 145c5983..0307f696 100644 --- a/modules/splashsync/src/Objects/Product/AttributeTrait.php +++ b/modules/splashsync/src/Objects/Product/AttributeTrait.php @@ -18,7 +18,7 @@ use Attribute; use Combination; use Product; -use Splash\Core\SplashCore as Splash; +use Splash\Client\Splash as Splash; use Splash\Local\Services\LanguagesManager as SLM; /** @@ -66,9 +66,11 @@ public function loadAttribute($unikId) // Read Product Combinations $attrList = $this->object->getAttributesResume(SLM::getDefaultLangId()); //====================================================================// - // if Product has Combinations => Cannot Read Variant Product Without AttributeId + // If Product has Combinations => Cannot Read Variant Product Without AttributeId if (is_array($attrList) && !empty($attrList)) { - return false; + Splash::commit("Product", $this->ProductId, SPL_A_DELETE); + + return Splash::log()->err("Trying to fetch a Base Product, this is now forbideen."); } return true;