Skip to content

Commit

Permalink
Revert TargetGroup condition to EcommerceBundle - follow up to #14102
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 committed Feb 17, 2023
1 parent 288a702 commit 3dfe892
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\PersonalizationBundle\Ecommerce\PricingManager\Condition;
namespace Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Condition;

use Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\ConditionInterface;
use Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\EnvironmentInterface;
Expand Down Expand Up @@ -123,5 +123,3 @@ public function setThreshold(int $threshold): void
$this->threshold = $threshold;
}
}

class_alias(TargetGroup::class, 'Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Condition\TargetGroup');
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pimcore_ecommerce_framework:
ClientIp: \Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Condition\ClientIp
VoucherToken: \Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Condition\VoucherToken
Tenant: \Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Condition\Tenant
TargetGroup: \Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Condition\TargetGroup
actions:
ProductDiscount: \Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Action\ProductDiscount
CartDiscount: \Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Action\CartDiscount
Expand Down
5 changes: 0 additions & 5 deletions bundles/PersonalizationBundle/config/pimcore/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,3 @@ pimcore:
map:
targetGroup: Pimcore\Model\DataObject\ClassDefinition\Data\TargetGroup
targetGroupMultiselect: Pimcore\Model\DataObject\ClassDefinition\Data\TargetGroupMultiselect

pimcore_ecommerce_framework:
pricing_manager:
conditions:
TargetGroup: \Pimcore\Bundle\PersonalizationBundle\Ecommerce\PricingManager\Condition\TargetGroup

0 comments on commit 3dfe892

Please sign in to comment.