Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update
  • Loading branch information
peter-mw committed Sep 9, 2021
1 parent 906b5a9 commit 76c277a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/MicroweberPackages/Cart/CartManager.php
Expand Up @@ -675,9 +675,10 @@ public function update_cart($data)

if ($content_custom_fields == false) {
$content_custom_fields = $data;
if (isset($data['price'])) {
$found_price = $data['price'];
}
// // dont allow custom price
// if (isset($data['price'])) {
// $found_price = $data['price'];
// }
} elseif (is_array($content_custom_fields)) {
foreach ($content_custom_fields as $cf) {
if (isset($cf['type']) and $cf['type'] == 'price') {
Expand Down

0 comments on commit 76c277a

Please sign in to comment.