Advertisement
Guest User

Untitled

a guest
Oct 26th, 2019
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. {if $services}
  2. <!-- services -->
  3. <div class="services">
  4. {foreach $services as $s}
  5. <div class="service-{$s.id}">
  6. <label>
  7. <input data-price="{shop_currency($s.price, $s.currency, null, 0)}" {if !$product_available}disabled="disabled"{/if} type="checkbox" name="services[]" value="{$s.id}"> {$s.name|escape} {if $s.price && !isset($s.variants)}(+<span class="service-price">{shop_currency_html($s.price, $s.currency)}</span>){/if}
  8. </label>
  9. {if isset($s.variants)}
  10. <select data-variant-id="{$s.variant_id}" class="service-variants" name="service_variant[{$s.id}]" disabled>
  11. {foreach $s.variants as $v}
  12. <option {if $s.variant_id == $v.id}selected{/if} data-price="{shop_currency($v.price, $s.currency, null, 0)}" value="{$v.id}">{$v.name|escape} (+{shop_currency($v.price, $s.currency)})</option>
  13. {/foreach}
  14. </select>
  15. {else}
  16. <input type="hidden" name="service_variant[{$s.id}]" value="{$s.variant_id}">
  17. {/if}
  18. </div>
  19. {/foreach}
  20. {if $product.type_id eq 1}
  21. <a class="necktypes showmepopup" href="#ournecktypes">Что такое окантовка, V-горло и сетка?</a>
  22. {/if}
  23. </div>
  24. {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement