Skip to content

Commit e8ed25e

Browse files
committed
Fix virtual column error
1 parent 457245c commit e8ed25e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Config/module.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<descriptive locale="fr_FR">
88
<title>Famille de clients et prix d'achat</title>
99
</descriptive>
10-
<version>3.1.2</version>
10+
<version>3.1.3</version>
1111
<author>
1212
<name>Guillaume Barral / Etienne Perriere</name>
1313
<email>gbarral@openstudio.fr / eperriere@openstudio.fr</email>

LoopExtend/CustomerFamilyPriceListener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private function changeProductPrice(
299299
? $product->getVirtualColumn('CUSTOMER_FAMILY_PRODUCT_PROMO')
300300
: null;
301301

302-
if (empty($isPromo)) {
302+
if (empty($isPromo) && $product->hasVirtualColumn('is_promo')) {
303303
$isPromo = $product->getVirtualColumn('is_promo');
304304
}
305305

0 commit comments

Comments
 (0)