blocks
4 years ago
options
4 years ago
template
4 years ago
google.php
4 years ago
index.php
4 years ago
options.php
4 years ago
process.php
4 years ago
success_page.php
4 years ago
template.php
4 years ago
variation_options.php
4 years ago
variation_options_common.php
4 years ago
variation_options_common.php
42 lines
| 1 | <script type="text/javascript"> |
| 2 | (function ($) { |
| 3 | $(function () { |
| 4 | |
| 5 | function updateCheckSelect() { |
| 6 | var exportVariations = $('#export_variations').val(); |
| 7 | var exportVariationsTitle = $('#export_variations_title').val(); |
| 8 | |
| 9 | $('.sub-options-' + exportVariations).css('display', 'block'); |
| 10 | } |
| 11 | |
| 12 | $('.export_variations').change(function () { |
| 13 | |
| 14 | var inputName = $(this).attr('name'); |
| 15 | $('.sub-options').slideUp('fast'); |
| 16 | var value = $('input[name='+inputName+']:checked').val(); |
| 17 | var $thisInput = $('input.export_variations[value='+value +']'); |
| 18 | $thisInput.prop('checked', 'checked'); |
| 19 | $('#export_variations').val(value); |
| 20 | if (value <= 2) { |
| 21 | $thisInput.parent().parent().find('.sub-options').slideDown('fast'); |
| 22 | $thisInput.parent().parent().find('.sub-options').find('input').eq(0).attr('checked', 'checked'); |
| 23 | } |
| 24 | }); |
| 25 | |
| 26 | $('.export_variations_title').change(function(event){ |
| 27 | |
| 28 | var inputName = $(this).attr('name'); |
| 29 | var value = $('input[name='+inputName +']:checked').val(); |
| 30 | var $thisInput = $('.export_variations_title[value='+value +']'); |
| 31 | $thisInput.prop('checked', 'checked'); |
| 32 | |
| 33 | $('#export_variations_title').val(value); |
| 34 | }); |
| 35 | |
| 36 | updateCheckSelect(); |
| 37 | }); |
| 38 | })(jQuery); |
| 39 | </script> |
| 40 | |
| 41 | <input type="hidden" id="export_variations" name="export_variations" value="<?php echo XmlExportEngine::getProductVariationMode();?>" /> |
| 42 | <input type="hidden" id="export_variations_title" name="export_variations_title" value="<?php echo XmlExportEngine::getProductVariationTitleMode();?>" /> |