{strip} {if !empty($product.skus)} {if !empty($rule_name)} {$_rule_name = $rule_name} {elseif !empty($options["rule_name"])} {$_rule_name = $options["rule_name"]} {/if} {$_locales = [ "disabled_product" => _w("Not included in the promo") ]} {function name="_render_product" _sku=[] _type="product-with-sku"} {$_price = ""} {$_compare_price = ""} {$_currency = null} {$_sku_enabled = true} {$_render_sku_id = true} {$_render_images = true} {$_render_name = true} {$_render_details = true} {$_render_prices = true} {$_render_fields = true} {$_render_delete_actions = true} {if $_type === "product"} {$_render_sku_id = false} {$_render_details = false} {$_render_prices = false} {$_render_fields = false} {elseif $_type === "sku"} {$_render_images = false} {$_render_name = false} {$_render_delete_actions = false} {/if} {if !empty($rule_product_data)} {$_currency = $rule_product_data.currency} {if !isset($rule_product_data.skus[$_sku.id])} {$_sku_enabled = false} {/if} {if !empty($rule_product_data.skus[$_sku.id])} {$_rule_sku_data = $rule_product_data.skus[$_sku.id]} {$__price = $_rule_sku_data.price} {$__compare_price = $_rule_sku_data.compare_price} {if !empty($__price) && $__price >= 0} {$_price = shop_currency($__price, $_currency, $product.currency, false)} {/if} {if !empty($__compare_price) && $__compare_price >= 0} {$_compare_price = shop_currency($__compare_price, $_currency, $product.currency, false)} {/if} {/if} {/if} {$_product_uri = "{$wa_app_url}{shopHelper::getBackendEditorUrl($product.id, 'prices')}"}