Skip to content

Instantly share code, notes, and snippets.

View imakarov's full-sized avatar

Ilya Makarov imakarov

  • CS-Cart.com
  • Ulyanovsk
View GitHub Profile
diff --git a/design/themes/responsive/templates/views/products/components/product_options.tpl b/design/themes/responsive/templates/views/products/components/product_options.tpl
index c9ed1e5..4678269 100644
--- a/design/themes/responsive/templates/views/products/components/product_options.tpl
+++ b/design/themes/responsive/templates/views/products/components/product_options.tpl
@@ -33,7 +33,7 @@
{assign var="selected_variant" value=""}
<div class="ty-control-group ty-product-options__item{if !$capture_options_vs_qty} product-list-field{/if} clearfix" id="opt_{$obj_prefix}{$id}_{$po.option_id}">
{if !("SRC"|strpos:$po.option_type !== false && !$po.variants && $po.missing_variants_handling == "H")}
- <label id="option_description_{$id}_{$po.option_id}" {if $po.option_type !== "R" && $po.option_type !== "F"}for="option_{$obj_prefix}{$id}_{$po.option_id}"{/if} class="ty-control-group__label ty-product-options__item-label{if $po.required == "Y"} cm-required{/if}{if $po
diff --git a/design/themes/responsive/templates/views/products/components/product_options.tpl b/design/themes/responsive/templates/views/products/components/product_options.tpl
index 4678269..c9ed1e5 100644
--- a/design/themes/responsive/templates/views/products/components/product_options.tpl
+++ b/design/themes/responsive/templates/views/products/components/product_options.tpl
@@ -33,7 +33,7 @@
{assign var="selected_variant" value=""}
<div class="ty-control-group ty-product-options__item{if !$capture_options_vs_qty} product-list-field{/if} clearfix" id="opt_{$obj_prefix}{$id}_{$po.option_id}">
{if !("SRC"|strpos:$po.option_type !== false && !$po.variants && $po.missing_variants_handling == "H")}
- <label id="option_description_{$id}_{$po.option_id}" {if $po.option_type !== "F"}for="option_{$obj_prefix}{$id}_{$po.option_id}"{/if} class="ty-control-group__label ty-product-options__item-label{if $po.required == "Y"} cm-required{/if}{if $po.regexp} cm-regexp{/if}" {i
diff --git a/app/functions/fn.promotions.php b/app/functions/fn.promotions.php
index a934b0c..be160fe 100644
--- a/app/functions/fn.promotions.php
+++ b/app/functions/fn.promotions.php
@@ -1346,18 +1346,17 @@ function fn_promotion_validate_product($promotion, $product, $cart_products)
if (!empty($cart_products)) { // cart promotion validated
foreach ($promotion['value'] as $p_v) {
- if ($p_v['product_id'] == $product['product_id'] && empty($p_v['product_options']) && $p_v['amount'] > 1) {
- $_amount = 0;