Changeset 2756088
- Timestamp:
- 07/13/2022 10:21:12 PM (4 years ago)
- Location:
- quasar-variable-attributes
- Files:
-
- 22 edited
-
tags/1.4/admin.php (modified) (5 diffs)
-
tags/1.4/assets/css/admin-all.css (modified) (1 diff)
-
tags/1.4/assets/css/admin.css (modified) (1 diff)
-
tags/1.4/assets/js/admin-all.js (modified) (1 diff)
-
tags/1.4/assets/js/admin.js (modified) (15 diffs)
-
tags/1.4/assets/js/frontend.js (modified) (8 diffs)
-
tags/1.4/lang/quasar-attr-variable-ru_RU.mo (modified) (previous)
-
tags/1.4/lang/quasar-attr-variable-ru_RU.po (modified) (28 diffs)
-
tags/1.4/lang/quasar-attr-variable.pot (modified) (4 diffs)
-
tags/1.4/quasar-variable-attributes-main.php (modified) (35 diffs)
-
tags/1.4/readme.txt (modified) (2 diffs)
-
trunk/admin.php (modified) (5 diffs)
-
trunk/assets/css/admin-all.css (modified) (1 diff)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/assets/js/admin-all.js (modified) (1 diff)
-
trunk/assets/js/admin.js (modified) (15 diffs)
-
trunk/assets/js/frontend.js (modified) (8 diffs)
-
trunk/lang/quasar-attr-variable-ru_RU.mo (modified) (previous)
-
trunk/lang/quasar-attr-variable-ru_RU.po (modified) (28 diffs)
-
trunk/lang/quasar-attr-variable.pot (modified) (4 diffs)
-
trunk/quasar-variable-attributes-main.php (modified) (35 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quasar-variable-attributes/tags/1.4/admin.php
r2751270 r2756088 10 10 <div class='swap-logo-header-q'> 11 11 <div class='logo-header-q'> 12 <div class='version-q-form'><span class='name-plugin-q'>Quasar Variable Attributes</span> <?php esc_html_e('Version','quasar-attr-variable');?> <span>1. 4</span></div>12 <div class='version-q-form'><span class='name-plugin-q'>Quasar Variable Attributes</span> <?php esc_html_e('Version','quasar-attr-variable');?> <span>1.5</span></div> 13 13 </div> 14 14 </div> … … 87 87 //color 88 88 if ( $array_option[$key]['style']['data-style'] == 'color' ){ 89 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-color="'.esc_ attr( $value_2['color-val'] ).'">'.esc_html( $key_2 ).'</div>';89 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-color="'.esc_html( $value_2['color-val'] ).'">'.esc_html( $key_2 ).'</div>'; 90 90 } 91 91 //html 92 92 if ( $array_option[$key]['style']['data-style'] == 'html' ){ 93 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-html="'.esc_ attr( $value_2['html-val'] ).'">'.esc_html( $key_2 ).'</div>';93 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-html="'.esc_html( $value_2['html-val'] ).'">'.esc_html( $key_2 ).'</div>'; 94 94 } 95 95 //img 96 96 if ( $array_option[$key]['style']['data-style'] == 'checkboximg' ){ 97 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-img="'.esc_ attr( $value_2['img-val'] ).'">'.esc_html( $key_2 ).'</div>';97 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-img="'.esc_html( $value_2['img-val'] ).'">'.esc_html( $key_2 ).'</div>'; 98 98 } 99 99 } … … 103 103 echo ' 104 104 <div class="element-attr-use-q" data-style="'.esc_attr( $array_option[$key]['style']['data-style'] ).'" 105 data-label ="'.esc_attr( $ array_option[$key]['style']['label']).'"105 data-label ="'.esc_attr( $key ).'" 106 106 data-font-size="'.esc_attr( $array_option[$key]['style']['font-size'] ).'" 107 107 data-font-color="'.esc_attr( $array_option[$key]['style']['font-color'] ).'" … … 124 124 data-width-c = "'.esc_attr( $array_option[$key]['style']['width-c'] ).'" 125 125 data-height-c = "'.esc_attr( $array_option[$key]['style']['height-c'] ).'"> 126 <span>'.esc_html( $ key).'</span>126 <span>'.esc_html( $array_option[$key]['style']['name'] ).'</span> 127 127 '.$string_value.' 128 128 <div class="remove-at-q"><i class="fa fa-timesq"></i></div> … … 155 155 <div class='wrap-value-customization'></div> 156 156 </div> 157 158 <div class='text-help-attr-add'><?php echo esc_html__('Note. If an attribute or attribute value is not in the product published on the site, then this attribute or value may not be in the plugin.','quasar-attr-variable') ?></div> 159 <div class='text-help-attr-add'><?php echo esc_html__('If you have changed the attribute name, then in order for its name to change on the site, you need to click the "save" button in the plugin.','quasar-attr-variable') ?></div> 160 <div class='text-help-attr-add'><?php echo esc_html__('If you have changed the attribute slug, then this attribute must be removed from the plugin and re-added.','quasar-attr-variable') ?></div> 157 161 158 162 </div> -
quasar-variable-attributes/tags/1.4/assets/css/admin-all.css
r2751270 r2756088 163 163 margin-right: 20px; 164 164 } 165 166 .text-for-pro-v {167 font-weight: 600;168 }169 165 -
quasar-variable-attributes/tags/1.4/assets/css/admin.css
r2751270 r2756088 1558 1558 } 1559 1559 1560 .only-pro-option { 1561 color: #c80b0b; 1562 } 1563 1564 1560 1561 .wrap-text-s-block-q { 1562 display:flex; 1563 1564 } 1565 .wrap-text-s-block-q .yes-a { 1566 white-space:nowrap; 1567 } 1568 1569 .wrap-text-s-block-q .not-a { 1570 white-space:nowrap; 1571 } -
quasar-variable-attributes/tags/1.4/assets/js/admin-all.js
r2751270 r2756088 43 43 jQuery('.variable-attr-block-q').find('.wrap-section-attr-q').each(function(){ 44 44 //name attr 45 let name = jQuery(this).find('.name-attr-q'). html();45 let name = jQuery(this).find('.name-attr-q').next().attr('data-label'); 46 46 //array value 47 47 var array_val = {}; 48 48 jQuery(this).find('.img-attr-val-q').each(function(){ 49 49 let img = jQuery(this).attr('data-img'); 50 let name_value = jQuery(this).prev('.name-attr-val-q'). html();50 let name_value = jQuery(this).prev('.name-attr-val-q').attr('data-label'); 51 51 array_val[name_value] = {img}; 52 52 }); -
quasar-variable-attributes/tags/1.4/assets/js/admin.js
r2751270 r2756088 143 143 let valAttr = object.attr('data-label'); 144 144 let arrayVal = []; 145 let number = 0; 145 146 $('.wrap-dop-customization').css('display', 'none'); 146 147 … … 165 166 166 167 //style checkbox -- 167 if ( object.attr('data-style') =='checkbox' ){ 168 168 if ( object.attr('data-style') =='checkbox' || object.attr('data-style') =='checkboximg' ){ 169 169 $.each(arrayVal,function(index,value){ 170 170 let padding = object.attr('data-padding').split(';'); 171 //design block 172 stringDesign = stringDesign + '<div class="attr-element-product checkbox-style-q" data-background-activ="'+object.attr('data-background-color-a')+'" data-color-activ="'+object.attr('data-color-activ')+'" data-background-defoult="'+object.attr('data-background-color')+'" data-color-defoult="'+object.attr('data-font-color')+'" data-border-color="'+object.attr('data-border-color')+'" data-border-color-a="'+object.attr('data-border-color-a')+'" style="font-size:'+object.attr('data-font-size')+'; color:'+object.attr('data-font-color')+'; background-color:'+object.attr('data-background-color')+'; border-width:'+object.attr('data-border-width')+'; border-color:'+object.attr('data-border-color')+'; border-radius:'+object.attr('data-border-radius')+'; padding-top:'+padding[0]+'; padding-left:'+padding[1]+'; padding-right:'+padding[2]+'; padding-bottom:'+padding[3]+';">'+value+'</div>'; 171 number++; 172 if ( number < 7 ){ 173 //design block 174 stringDesign = stringDesign + '<div class="attr-element-product checkbox-style-q" data-background-activ="'+object.attr('data-background-color-a')+'" data-color-activ="'+object.attr('data-color-activ')+'" data-background-defoult="'+object.attr('data-background-color')+'" data-color-defoult="'+object.attr('data-font-color')+'" data-border-color="'+object.attr('data-border-color')+'" data-border-color-a="'+object.attr('data-border-color-a')+'" style="font-size:'+object.attr('data-font-size')+'; color:'+object.attr('data-font-color')+'; background-color:'+object.attr('data-background-color')+'; border-width:'+object.attr('data-border-width')+'; border-color:'+object.attr('data-border-color')+'; border-radius:'+object.attr('data-border-radius')+'; padding-top:'+padding[0]+'; padding-left:'+padding[1]+'; padding-right:'+padding[2]+'; padding-bottom:'+padding[3]+';">'+value+'</div>'; 175 } 173 176 }); 174 177 stringDesign = stringDesign + '</div></div>'; … … 204 207 if ( $(this).find('.name-attr-t').html() == value ){ color = $(this).find('input').val() ; } 205 208 }); 209 206 210 207 211 //design block … … 220 224 221 225 $.each(arrayVal,function(index,value){ 222 //design block 223 stringDesign = stringDesign + '<option style="font-size:'+object.attr('data-font-size')+'; line-height:'+object.attr('data-font-size')+'; color:'+object.attr('data-font-color')+';">'+value+'</div>'; 226 number++; 227 if ( number < 7 ){ 228 //design block 229 stringDesign = stringDesign + '<option style="font-size:'+object.attr('data-font-size')+'; line-height:'+object.attr('data-font-size')+'; color:'+object.attr('data-font-color')+';">'+value+'</div>'; 230 } 224 231 }); 225 232 … … 259 266 }); 260 267 261 268 number++; 262 269 //design block 263 270 stringDesign = stringDesign + '<div class="attr-element-product html-attr-q" data-background-activ="'+object.attr('data-background-color-a')+'" data-color-activ="'+object.attr('data-color-activ')+'" data-background-defoult="'+object.attr('data-background-color')+'" data-color-defoult="'+object.attr('data-font-color')+'"><div class="html-val-q" data-name="'+value+'">'+html_text+'</div></div>'; … … 267 274 } 268 275 269 //style checkbox img ------------------------- 270 if ( object.attr('data-style') =='checkboximg' ){ 271 $('#style-attr').find('option').each(function(){ 272 if ( $(this).attr('data-val') == 'checkbox' ){ 273 $('.active-edit-q').attr('data-style', 'checkbox'); 274 $(this).prop('selected', true); 275 } 276 }); 277 278 } 276 279 277 280 278 $('.wrap-design-attr').append( stringDesign ); … … 327 325 let coordinat = $('.modalbox-admin-panel').attr('position'); 328 326 $('.modalbox-admin-panel').css({'display' : 'flex', 'top' : coordinat }); 327 } 328 //free disable img 329 if ( attr.attr('data-style') =='checkboximg' ){ 330 attr.attr('data-style','checkbox'); 329 331 } 330 332 … … 400 402 } 401 403 402 403 404 404 405 createdElement = "<div class='setting-field-q'><span class='heding-field-q'>"+$('#text-border-raius').html()+"</span><input id='font-border-radius-c' value='"+attr.attr('data-border-radius')+"'></div>"; … … 444 445 $('.column-1-q').append(createdElement); 445 446 446 447 447 448 448 449 //filter setting design for HTML … … 463 464 $('#font-size-c').closest('.setting-field-q').css('display', 'none'); 464 465 $('#font-size-categoty').closest('.setting-field-q').css('display', 'none'); 465 466 466 } 467 467 … … 503 503 'data-padding-c' : $('#admpaddingleft-c').val() +';'+$('#admpaddingright-c').val() +';'+ $('#admpaddingtop-c').val() +';'+ $('#admpaddingbottom-c').val(), 504 504 }); 505 506 507 505 508 506 509 //edit style real time … … 572 575 'data-size' : '28px', 573 576 'data-border-color-a' : '#3674ff', 577 'data-padding-c' : '3px' +';'+'3px' +';'+ '3px'+';'+ '3px', 574 578 }); 575 579 } … … 1076 1080 $('.wrap-use-attribute').find('.element-attr-use-q').each(function(){ 1077 1081 let name = $(this).find('span').html(); 1078 let attr = $(this); 1082 let label = $(this).attr('data-label'); 1083 let attr = $(this); 1079 1084 1080 1085 //val array … … 1109 1114 }); 1110 1115 } 1111 1116 //img 1117 if ( attr.attr('data-style') =='checkboximg' ){ 1118 $(this).find('.value-elem-q').each(function(){ 1119 let nameVal = $(this).html(); 1120 arrayValue[nameVal] = { 1121 'tooltip' : $(this).attr('data-tooltip'), 1122 'img-val' : decodeURI( $(this).attr('data-img') ), 1123 }; 1124 }); 1125 } 1112 1126 //array attr setting 1113 arraySave[ name] = {1127 arraySave[label] = { 1114 1128 'style' : { 1115 1129 'data-style' : $(this).attr('data-style'), 1116 ' label' : $(this).attr('data-label'),1130 'name' : name, 1117 1131 'font-size' : $(this).attr('data-font-size'), 1118 1132 'font-color' : $(this).attr('data-font-color'), … … 1202 1216 'show-quantity' : $('#show-quantity-q').find('option:selected').attr('data-val'), 1203 1217 'change-img' : $('#change-img-q').find('option:selected').attr('data-val'), 1218 'class-change-img' : $('#class-img-q').val(), 1204 1219 'responsive-category' : $('#responsive-category').find('option:selected').attr('data-val'), 1205 1220 'responsive-cart' : $('#responsive-cart').find('option:selected').attr('data-val'), -
quasar-variable-attributes/tags/1.4/assets/js/frontend.js
r2751270 r2756088 8 8 }); 9 9 10 //for addon by one cl ock10 //for addon by one click 11 11 $('.form-main-element').on('change','.wrap-section-attr-q input', function(){ 12 12 change_checkbox_attr( $(this),1 ); … … 68 68 if ( y === 0 ){ 69 69 all_update_original(); 70 $('.cart-product-quasar-attribute-q').removeClass('stop-clear'); 70 71 } 71 72 … … 76 77 $('.cart-product-quasar-attribute-q .variable-attr-block-q').on('change','select', function(){ 77 78 all_update_original(); 79 $('.cart-product-quasar-attribute-q').removeClass('stop-clear'); 78 80 }); 79 81 80 82 81 83 function all_update_original(){ 82 //clear select original variable all 83 $('.variations_form .variations').find('select').each(function(){ 84 $(this).find('option').each(function(){ 85 if ( $(this).attr('value') === '' ){ $(this).prop("selected", true).trigger('change');} 86 }); 87 }); 84 let num_2 = 0; 88 85 //re selected original 89 86 $('.cart-product-quasar-attribute-q').find('.wrap-section-attr-q').each(function(){ … … 91 88 let select = block_this_attr.find('select'); 92 89 let attr = block_this_attr.find('.name-attr-q').html(); 90 93 91 //select 94 92 if ( select.length > 0 ){ … … 97 95 $('.variations_form .variations').find('label').each(function(){ 98 96 if ( $(this).html() == attr ){ 97 let number = 0; 99 98 $(this).closest('tr').find('select').find('option').each(function(){ 100 if ( $(this).html() == val ){ $(this).prop("selected", true) .trigger('change');}99 if ( $(this).html() == val ){ $(this).prop("selected", true); number++; } 101 100 }); 101 if ( number === 0 ){ 102 num_2 = 1; 103 } 102 104 } 103 105 }); 106 104 107 } 105 108 //checkbox … … 115 118 $('.variations_form .variations').find('label').each(function(){ 116 119 if ( $(this).html() == attr ){ 120 let number = 0; 117 121 $(this).closest('tr').find('select').find('option').each(function(){ 118 if ( $(this).html() == val ){ $(this).prop("selected", true) .trigger('change');}122 if ( $(this).html() == val ){ $(this).prop("selected", true); number++;} 119 123 }); 124 if ( number === 0 ){ 125 num_2 = 1; 126 } 120 127 } 121 128 }); … … 124 131 125 132 } 126 127 133 }); 128 134 135 136 137 138 //recalculate variable original activ 139 $('.variations_form .variations').find('select:first').find('option:first').trigger('change'); 140 141 //zapolneni all variable 142 let num = 0; 143 $('.cart-product-quasar-attribute-q').find('.wrap-section-attr-q').each(function(){ 144 if ( $(this).find('select').length > 0 ){ 145 if ( $(this).find('option:selected').hasClass('defoult-op') ){num++;} 146 } 147 else { 148 if ( $(this).find('input:checked').length === 0 ){num++;} 149 } 150 }); 151 if ( num === 0 ){ 152 //clear original value and restart 153 if ( num_2 === 1 ){ 154 if ( !$('.cart-product-quasar-attribute-q').hasClass('stop-clear') ){ 155 $('.cart-product-quasar-attribute-q').addClass('stop-clear'); 156 clear_originl_variable_val(1); 157 } 158 } 159 160 //show text not variable for cart page 161 num = 0; 162 let text_block = $('.cart-product-quasar-attribute-q').find('.variable-not-found'); 163 $('.variations_form .variations').find('select').find('option:selected').each(function(){ 164 if ( $(this).attr('value') === '' ){ 165 num++; 166 } 167 }); 168 if ( num > 0 ){ 169 text_block.html( text_block.attr('data-text') ).css('display', 'flex'); 170 } 171 else { 172 text_block.html( text_block.attr('data-text') ).css('display', 'none'); 173 } 174 } 175 176 177 178 179 129 180 } 130 181 182 function clear_originl_variable_val(q=0){ 183 //clear select original variable all 184 $('.variations_form .variations').find('select').each(function(){ 185 $(this).find('option').each(function(){ 186 if ( $(this).attr('value') === '' ){ $(this).prop("selected", true);} 187 }); 188 }); 189 $('.variations_form .variations').find('select:first').find('option:first').trigger('change'); 190 if (q == 1 ){ 191 all_update_original(); 192 } 193 } 131 194 132 195 $('.variable-attr-block-q label').hover( … … 208 271 if ( $(this).prop("nodeName") == 'INPUT' ){ 209 272 if ( $(this).prop('checked') ){ 210 valString = valString + '&attribute_'+$(this).closest('.wrap-element-attr-q').attr('data-original-name')+'='+encodeURI( $(this).next('label').attr('data-val ') ).replace(/\(/g, '%28').replace(/\)/g, '%29');273 valString = valString + '&attribute_'+$(this).closest('.wrap-element-attr-q').attr('data-original-name')+'='+encodeURI( $(this).next('label').attr('data-val-name') ).replace(/\(/g, '%28').replace(/\)/g, '%29'); 211 274 } 212 275 } 213 276 if ( $(this).prop("nodeName") == 'OPTION' ){ 214 277 if ( $(this).prop('selected') ){ 215 valString = valString + '&attribute_'+$(this).closest('.wrap-element-attr-q').attr('data-original-name')+'='+encodeURI( $(this). html() ).replace(/\(/g, '%28').replace(/\)/g, '%29');278 valString = valString + '&attribute_'+$(this).closest('.wrap-element-attr-q').attr('data-original-name')+'='+encodeURI( $(this).attr('data-val-name') ).replace(/\(/g, '%28').replace(/\)/g, '%29'); 216 279 } 217 280 } -
quasar-variable-attributes/tags/1.4/lang/quasar-attr-variable-ru_RU.po
r2751270 r2756088 36 36 msgstr "Дизайн" 37 37 38 #: admin.php:22 admin.php:9 5638 #: admin.php:22 admin.php:960 39 39 msgid "Localization" 40 40 msgstr "Локализация" … … 44 44 msgstr "Импорт/экспорт настроек" 45 45 46 #: admin.php:29 admin.php:4 48 admin.php:449 admin.php:504 admin.php:50547 #: admin.php:59 1 admin.php:592 admin.php:655 admin.php:656 admin.php:75648 #: admin.php:7 57 admin.php:791 admin.php:792 admin.php:805 admin.php:80649 #: admin.php:8 19 admin.php:820 admin.php:843 admin.php:844 admin.php:85750 #: admin.php:8 58 admin.php:105746 #: admin.php:29 admin.php:452 admin.php:453 admin.php:508 admin.php:509 47 #: admin.php:595 admin.php:596 admin.php:659 admin.php:660 admin.php:760 48 #: admin.php:761 admin.php:795 admin.php:796 admin.php:809 admin.php:810 49 #: admin.php:823 admin.php:824 admin.php:847 admin.php:848 admin.php:861 50 #: admin.php:862 admin.php:1061 51 51 msgid "Yes" 52 52 msgstr "Да" 53 53 54 #: admin.php:30 admin.php:45 0 admin.php:451 admin.php:506 admin.php:50755 #: admin.php:59 3 admin.php:594 admin.php:657 admin.php:658 admin.php:75956 #: admin.php:76 0 admin.php:793 admin.php:794 admin.php:807 admin.php:80857 #: admin.php:82 1 admin.php:822 admin.php:845 admin.php:846 admin.php:85958 #: admin.php:86 0 admin.php:105854 #: admin.php:30 admin.php:454 admin.php:455 admin.php:510 admin.php:511 55 #: admin.php:597 admin.php:598 admin.php:661 admin.php:662 admin.php:763 56 #: admin.php:764 admin.php:797 admin.php:798 admin.php:811 admin.php:812 57 #: admin.php:825 admin.php:826 admin.php:849 admin.php:850 admin.php:863 58 #: admin.php:864 admin.php:1062 59 59 msgid "No" 60 60 msgstr "Нет" … … 84 84 msgstr "Всплывающая подсказка атрибута:" 85 85 86 #: admin.php:171 86 #: admin.php:158 87 msgid "" 88 "Note. If an attribute or attribute value is not in the product published on " 89 "the site, then this attribute or value may not be in the plugin." 90 msgstr "" 91 "Важно. Если атрибута или значения атрибута нет в продукте, опубликованном на " 92 "сайте, то этого атрибута или значения может не быть в плагине." 93 94 #: admin.php:159 95 msgid "" 96 "If you have changed the attribute name, then in order for its name to change " 97 "on the site, you need to click the \"save\" button in the plugin." 98 msgstr "" 99 "Если вы изменили название атрибута, то чтобы название изменилось на сайте, " 100 "вам нужно нажать кнопку «сохранить» в плагине." 101 102 #: admin.php:160 103 msgid "" 104 "If you have changed the attribute slug, then this attribute must be removed " 105 "from the plugin and re-added." 106 msgstr "" 107 "Если вы изменили слаг атрибута, то этот атрибут необходимо удалить из " 108 "плагина и добавить заново." 109 110 #: admin.php:175 87 111 msgid "Block design with variations in the product card:" 88 112 msgstr "Дизайн блока с вариациями в карточке продукта:" 89 113 90 #: admin.php:17 2114 #: admin.php:176 91 115 msgid "" 92 116 "Attribute design is set in the \"Attributes\" section, in this section you " … … 96 120 "настраиваете дизайн блока, в котором будут отображаться атрибуты." 97 121 98 #: admin.php:1 78 admin.php:187 admin.php:196 admin.php:255 admin.php:31199 #: admin.php:32 0 admin.php:329 admin.php:399122 #: admin.php:182 admin.php:191 admin.php:200 admin.php:259 admin.php:315 123 #: admin.php:324 admin.php:333 admin.php:403 100 124 msgid "Attribute name" 101 125 msgstr "Имя атрибута" 102 126 103 #: admin.php:18 0 admin.php:189 admin.php:201 admin.php:313 admin.php:322104 #: admin.php:33 4127 #: admin.php:184 admin.php:193 admin.php:205 admin.php:317 admin.php:326 128 #: admin.php:338 105 129 msgid "Value 1" 106 130 msgstr "Значение 1" 107 131 108 #: admin.php:18 1 admin.php:190 admin.php:202 admin.php:314 admin.php:323109 #: admin.php:33 5132 #: admin.php:185 admin.php:194 admin.php:206 admin.php:318 admin.php:327 133 #: admin.php:339 110 134 msgid "Value 2" 111 135 msgstr "Значение 2" 112 136 113 #: admin.php:18 2 admin.php:191 admin.php:203 admin.php:315 admin.php:324114 #: admin.php:3 36137 #: admin.php:186 admin.php:195 admin.php:207 admin.php:319 admin.php:328 138 #: admin.php:340 115 139 msgid "Value 3" 116 140 msgstr "Значение 3" 117 141 118 #: admin.php:22 2 admin.php:369142 #: admin.php:226 admin.php:373 119 143 msgid "Style" 120 144 msgstr "Стиль" 121 145 122 #: admin.php:22 5 admin.php:226 admin.php:372 admin.php:373146 #: admin.php:229 admin.php:230 admin.php:376 admin.php:377 123 147 msgid "style-1" 124 148 msgstr "стиль 1" 125 149 126 #: admin.php:2 27 admin.php:228 admin.php:374 admin.php:375150 #: admin.php:231 admin.php:232 admin.php:378 admin.php:379 127 151 msgid "style-2" 128 152 msgstr "стиль 2" 129 153 130 #: admin.php:23 4 admin.php:382154 #: admin.php:238 admin.php:386 131 155 msgid "Spacing between attributes" 132 156 msgstr "Интервал между атрибутами" 133 157 134 #: admin.php:24 0 admin.php:388 admin.php:1053158 #: admin.php:244 admin.php:392 admin.php:1057 135 159 msgid "Padding: left, right, top, bottom" 136 160 msgstr "Отступ: слева справа вверху внизу" 137 161 138 #: admin.php:25 0162 #: admin.php:254 139 163 msgid "Maximum width" 140 164 msgstr "Максимальная ширина" 141 165 142 #: admin.php:2 59 admin.php:403166 #: admin.php:263 admin.php:407 143 167 msgid "Spacing between name and value" 144 168 msgstr "Интервал между именем и значением" 145 169 146 #: admin.php:26 4 admin.php:408170 #: admin.php:268 admin.php:412 147 171 msgid "Spacing between values" 148 172 msgstr "Интервал между значениями" 149 173 150 #: admin.php:2 69 admin.php:414 admin.php:457174 #: admin.php:273 admin.php:418 admin.php:461 151 175 msgid "Color" 152 176 msgstr "Цвет" 153 177 154 #: admin.php:27 4 admin.php:419 admin.php:462 admin.php:523 admin.php:1045178 #: admin.php:278 admin.php:423 admin.php:466 admin.php:527 admin.php:1049 155 179 msgid "Font size" 156 180 msgstr "Размер шрифта" 157 181 158 #: admin.php:2 79182 #: admin.php:283 159 183 msgid "font weight" 160 184 msgstr "толщина шрифта" 161 185 162 #: admin.php: 299186 #: admin.php:303 163 187 msgid "Output in categories is disabled in the settings" 164 188 msgstr "Вывод в категории отключен в настройках" 165 189 166 #: admin.php:30 0190 #: admin.php:304 167 191 msgid "Block design with variations in categories:" 168 192 msgstr "Дизайн блока с вариациями в категориях:" 169 193 170 #: admin.php:3 49 admin.php:960 admin.php:961171 #: quasar-variable-attributes-main.php:3 48172 #: quasar-variable-attributes-main.php:3 49194 #: admin.php:353 admin.php:964 admin.php:965 195 #: quasar-variable-attributes-main.php:350 196 #: quasar-variable-attributes-main.php:351 173 197 msgid "Add to cart" 174 198 msgstr "Добавить в корзину" 175 199 176 #: admin.php:42 4 admin.php:467 admin.php:528200 #: admin.php:428 admin.php:471 admin.php:532 177 201 msgid "Font weight" 178 202 msgstr "Толщина шрифта" 179 203 180 #: admin.php:44 1204 #: admin.php:445 181 205 msgid "Price" 182 206 msgstr "Цена" 183 207 184 #: admin.php:44 5 admin.php:501 admin.php:588208 #: admin.php:449 admin.php:505 admin.php:592 185 209 msgid "Enable design from plugin" 186 210 msgstr "Включить дизайн из плагина" 187 211 188 #: admin.php:48 3212 #: admin.php:487 189 213 msgid "Price indent" 190 214 msgstr "Отступ от цены" 191 215 192 #: admin.php:4 88216 #: admin.php:492 193 217 msgid "Price align" 194 218 msgstr "Выровнять цену" 195 219 196 #: admin.php: 497220 #: admin.php:501 197 221 msgid "Button add to cart" 198 222 msgstr "Кнопка добавить в корзину" 199 223 200 #: admin.php:51 3224 #: admin.php:517 201 225 msgid "Font color" 202 226 msgstr "Цвет текста" 203 227 204 #: admin.php:5 18 admin.php:610 admin.php:1047228 #: admin.php:522 admin.php:614 admin.php:1051 205 229 msgid "Background color" 206 230 msgstr "Цвет фона" 207 231 208 #: admin.php:54 4232 #: admin.php:548 209 233 msgid "Button indent" 210 234 msgstr "Отступ кнопки" 211 235 212 #: admin.php:5 49236 #: admin.php:553 213 237 msgid "Button align" 214 238 msgstr "Выравнивание кнопки" 215 239 216 #: admin.php:5 59240 #: admin.php:563 217 241 msgid "Button padding: left, right, top, bottom" 218 242 msgstr "Отступ: слева, справа, вверху, внизу" 219 243 220 #: admin.php:5 69 admin.php:1051244 #: admin.php:573 admin.php:1055 221 245 msgid "Border width" 222 246 msgstr "Ширина границы" 223 247 224 #: admin.php:57 4 admin.php:615 admin.php:1050248 #: admin.php:578 admin.php:619 admin.php:1054 225 249 msgid "Border color" 226 250 msgstr "Цвет границы" 227 251 228 #: admin.php:5 79 admin.php:625 admin.php:1052252 #: admin.php:583 admin.php:629 admin.php:1056 229 253 msgid "Border radius" 230 254 msgstr "Округление границы" 231 255 232 #: admin.php:58 4256 #: admin.php:588 233 257 msgid "Field quantity" 234 258 msgstr "Поле количество" 235 259 236 #: admin.php:58 4260 #: admin.php:588 237 261 msgid "Field disabled in settings" 238 262 msgstr "Поле отключено в настройках" 239 263 240 #: admin.php:60 0264 #: admin.php:604 241 265 msgid "Number color" 242 266 msgstr "Цвет цифр" 243 267 244 #: admin.php:60 5268 #: admin.php:609 245 269 msgid "Number size" 246 270 msgstr "Размер цифр" 247 271 248 #: admin.php:62 0272 #: admin.php:624 249 273 msgid "Border widh" 250 274 msgstr "Ширина границы" 251 275 252 #: admin.php:63 1276 #: admin.php:635 253 277 msgid "Quantity padding: left, right, top, bottom" 254 278 msgstr "Количество отступ: слева, справа, вверху, внизу" 255 279 256 #: admin.php:6 49280 #: admin.php:653 257 281 msgid "Main settings" 258 282 msgstr "Основные настройки" 259 283 260 #: admin.php:66 2284 #: admin.php:666 261 285 msgid "Show block of variations in categories." 262 286 msgstr "Показать блок выбора вариаций в категориях." 263 287 264 #: admin.php:66 5288 #: admin.php:669 265 289 msgid "Block location with variations" 266 290 msgstr "Расположение блока с вариациями" 267 291 268 #: admin.php:6 69292 #: admin.php:673 269 293 msgid "Product Card" 270 294 msgstr "Карточка продукта" 271 295 272 #: admin.php:67 2296 #: admin.php:676 273 297 msgid "" 274 298 "After a short description (this option will function with a product without " … … 276 300 msgstr "После краткого описания (эта опция будет работать с товаром без цены)" 277 301 278 #: admin.php:67 3302 #: admin.php:677 279 303 msgid "Above the short description" 280 304 msgstr "Над кратким описанием" 281 305 282 #: admin.php:67 5 admin.php:676 admin.php:718306 #: admin.php:679 admin.php:680 admin.php:722 283 307 msgid "After add to cart button" 284 308 msgstr "После кнопки добавить в корзину" 285 309 286 #: admin.php:6 78 admin.php:679310 #: admin.php:682 admin.php:683 287 311 msgid "Before quantity input field" 288 312 msgstr "Перед полем ввода количества" 289 313 290 #: admin.php:68 2 admin.php:683314 #: admin.php:686 admin.php:687 291 315 msgid "Product meta end" 292 316 msgstr "В конце мета данных" 293 317 294 #: admin.php:6 88 admin.php:727318 #: admin.php:692 admin.php:731 295 319 msgid "Priority" 296 320 msgstr "Приоритет" 297 321 298 #: admin.php:71 0322 #: admin.php:714 299 323 msgid "Select the position of the variable in the product card." 300 324 msgstr "Выберите позицию вариаций в карточке товара." 301 325 302 #: admin.php:71 5326 #: admin.php:719 303 327 msgid "Category" 304 328 msgstr "Категория" 305 329 306 #: admin.php:7 19330 #: admin.php:723 307 331 msgid "Before add to cart button" 308 332 msgstr "Перед кнопкой добавить в корзину" 309 333 310 #: admin.php:72 1 admin.php:722334 #: admin.php:725 admin.php:726 311 335 msgid "Before shop loop item" 312 336 msgstr "Перед циклом вывода информации о товаре" 313 337 314 #: admin.php:7 49338 #: admin.php:753 315 339 msgid "Select the position of the variable in the archive and category pages." 316 340 msgstr "Выберите положение вариаций на страницах архива и категорий." 317 341 318 #: admin.php:76 4342 #: admin.php:768 319 343 msgid "Show a block of variations in products with zero stock." 320 344 msgstr "Показывать вариации в товарах с нулевым запасом." 321 345 322 #: admin.php:7 68346 #: admin.php:772 323 347 msgid "Display settings in categories" 324 348 msgstr "Настройки отображения в категориях" 325 349 326 #: admin.php:77 4 admin.php:775350 #: admin.php:778 admin.php:779 327 351 msgid "To the left of the price" 328 352 msgstr "Слева от цены" 329 353 330 #: admin.php:7 76 admin.php:777354 #: admin.php:780 admin.php:781 331 355 msgid "To the right of the price" 332 356 msgstr "Справа от цены" 333 357 334 #: admin.php:78 1358 #: admin.php:785 335 359 msgid "Сurrency icon position." 336 360 msgstr "Позиция значка валюты." 337 361 338 #: admin.php: 798362 #: admin.php:802 339 363 msgid "Redirect to the shopping cart page after purchasing the product." 340 364 msgstr "Перенаправление на страницу корзины после покупки товара." 341 365 342 #: admin.php:81 2366 #: admin.php:816 343 367 msgid "Show quantity field in categories." 344 368 msgstr "Показывать поле количество в категориях." 345 369 346 #: admin.php:8 26370 #: admin.php:830 347 371 msgid "" 348 372 "Сhange the product image to the image of the selected variation. This option " … … 352 376 "будет работать не во всех темах." 353 377 354 #: admin.php:8 36378 #: admin.php:840 355 379 msgid "Product image class in product category." 356 380 msgstr "Класс изображения продукта в категории товаров." 357 381 358 #: admin.php:85 0382 #: admin.php:854 359 383 msgid "Show variations in related products." 360 384 msgstr "" 361 385 "Показать блок выбора вариаций в сопутствующих товарах (related products)." 362 386 363 #: admin.php:86 4387 #: admin.php:868 364 388 msgid "Show variations in upsell." 365 389 msgstr "Показать блок выбора вариаций в апсейлах (upsell)." 366 390 367 #: admin.php:8 67391 #: admin.php:871 368 392 msgid "Responsiveness settings" 369 393 msgstr "Настройки адаптивности" 370 394 371 #: admin.php:89 3395 #: admin.php:897 372 396 msgid "" 373 397 "Select the display size from which the mobile mode will be activated in the " … … 377 401 "блоке опций в категории товара." 378 402 379 #: admin.php:90 0 admin.php:901403 #: admin.php:904 admin.php:905 380 404 msgid "Do not hide variable" 381 405 msgstr "Не скрывать вариации" 382 406 383 #: admin.php:92 3407 #: admin.php:927 384 408 msgid "Hide block with variables in categories at display size." 385 409 msgstr "Скрыть блок с вариациями в категориях при размере экрана." 386 410 387 #: admin.php:95 0411 #: admin.php:954 388 412 msgid "" 389 413 "Select the display size from which the mobile mode will be activated in the " … … 393 417 "блоке опций в карточке товара." 394 418 395 #: admin.php:9 57419 #: admin.php:961 396 420 msgid "" 397 421 "This text is displayed in product categories only. Localization in the " … … 401 425 "продукта будет зависеть от вашей темы и WooCommerce." 402 426 403 #: admin.php:96 4427 #: admin.php:968 404 428 msgid "Select options (button)" 405 429 msgstr "Выберите опцию (кнопка)" 406 430 407 #: admin.php:96 5 quasar-variable-attributes-main.php:351408 #: quasar-variable-attributes-main.php:35 2431 #: admin.php:969 quasar-variable-attributes-main.php:353 432 #: quasar-variable-attributes-main.php:354 409 433 msgid "Select options" 410 434 msgstr "Выберите опцию" 411 435 412 #: admin.php:9 68 admin.php:969 quasar-variable-attributes-main.php:357413 #: quasar-variable-attributes-main.php:3 58436 #: admin.php:972 admin.php:973 quasar-variable-attributes-main.php:359 437 #: quasar-variable-attributes-main.php:360 414 438 msgid "This option is not available" 415 439 msgstr "Эта опция недоступна" 416 440 417 #: admin.php:97 2 admin.php:973 quasar-variable-attributes-main.php:360418 #: quasar-variable-attributes-main.php:36 1441 #: admin.php:976 admin.php:977 quasar-variable-attributes-main.php:362 442 #: quasar-variable-attributes-main.php:363 419 443 msgid "Choose an option" 420 444 msgstr "Выберите опцию" 421 445 422 #: admin.php:9 76 admin.php:977 quasar-variable-attributes-main.php:354423 #: quasar-variable-attributes-main.php:35 5446 #: admin.php:980 admin.php:981 quasar-variable-attributes-main.php:356 447 #: quasar-variable-attributes-main.php:357 424 448 msgid "Select a value in each option" 425 449 msgstr "Выберите значение в каждой вариации" 426 450 427 #: admin.php:9 86451 #: admin.php:990 428 452 msgid "Import/export" 429 453 msgstr "Импорт/экспорт" 430 454 431 #: admin.php:9 86455 #: admin.php:990 432 456 msgid " (you can import settings and design sections)" 433 457 msgstr " (вы можете импортировать разделы: настройки и дизайн)" 434 458 435 #: admin.php:99 4459 #: admin.php:998 436 460 msgid "Select text to export" 437 461 msgstr "Выделить текст экспорта" 438 462 439 #: admin.php: 997463 #: admin.php:1001 440 464 msgid "Export form" 441 465 msgstr "Форма экспорта" 442 466 443 #: admin.php: 998467 #: admin.php:1002 444 468 msgid "Export text" 445 469 msgstr "Текст экспорта" 446 470 447 #: admin.php:100 3471 #: admin.php:1007 448 472 msgid "Import form" 449 473 msgstr "Форма импорта" 450 474 451 #: admin.php:100 4475 #: admin.php:1008 452 476 msgid "Incorrect text of export!" 453 477 msgstr "Неверный текст экспорта!" 454 478 455 #: admin.php:100 5479 #: admin.php:1009 456 480 msgid "Import text" 457 481 msgstr "Текст импорта" 458 482 459 #: admin.php:10 07483 #: admin.php:1011 460 484 msgid "Apply import" 461 485 msgstr "Применить импорт" 462 486 463 #: admin.php:10 08 admin.php:1020487 #: admin.php:1012 admin.php:1024 464 488 msgid "Error while saving" 465 489 msgstr "Ошибка при сохранении" 466 490 467 #: admin.php:10 09 admin.php:1021491 #: admin.php:1013 admin.php:1025 468 492 msgid "Saved" 469 493 msgstr "Сохранено" 470 494 471 #: admin.php:101 1495 #: admin.php:1015 472 496 msgid "" 473 497 "If you don't copy all the text when importing or exporting, this can lead to " … … 479 503 "обновите страницу." 480 504 481 #: admin.php:10 17505 #: admin.php:1021 482 506 msgid "Save settings" 483 507 msgstr "Сохранить настройки" 484 508 485 #: admin.php:103 5509 #: admin.php:1039 486 510 msgid "Search" 487 511 msgstr "Поиск" 488 512 489 #: admin.php:10 36513 #: admin.php:1040 490 514 msgid "Attribute added" 491 515 msgstr "Атрибут добавлен" 492 516 493 #: admin.php:10 37517 #: admin.php:1041 494 518 msgid "Already added" 495 519 msgstr "Уже добавлено" 496 520 497 #: admin.php:10 38521 #: admin.php:1042 498 522 msgid "Tooltip" 499 523 msgstr "Подсказка" 500 524 501 #: admin.php:10 39525 #: admin.php:1043 502 526 msgid "Attribute style" 503 527 msgstr "Стиль атрибута" 504 528 505 #: admin.php:104 0529 #: admin.php:1044 506 530 msgid "Checkbox" 507 531 msgstr "Переключатель" 508 532 509 #: admin.php:104 1533 #: admin.php:1045 510 534 msgid "Checkbox img" 511 535 msgstr "Переключатель c изображениями" 512 536 513 #: admin.php:104 2537 #: admin.php:1046 514 538 msgid "Checkbox сolor" 515 539 msgstr "Переключатель с цветами" 516 540 517 #: admin.php:104 3541 #: admin.php:1047 518 542 msgid "Dropdown" 519 543 msgstr "Выпадающий список" 520 544 521 #: admin.php:104 4545 #: admin.php:1048 522 546 msgid "Checkbox text/HTML" 523 547 msgstr "Переключатель с текстом/HTML" 524 548 525 #: admin.php:10 46549 #: admin.php:1050 526 550 msgid "Text color" 527 551 msgstr "Цвет текста" 528 552 529 #: admin.php:10 48553 #: admin.php:1052 530 554 msgid "Active background color" 531 555 msgstr "Цвет фона при выборе" 532 556 533 #: admin.php:10 49557 #: admin.php:1053 534 558 msgid "Active text color" 535 559 msgstr "Цвет текста при выборе" 536 560 537 #: admin.php:105 4561 #: admin.php:1058 538 562 msgid "Active border color" 539 563 msgstr "Цвет границы при выборе" 540 564 541 #: admin.php:105 5565 #: admin.php:1059 542 566 msgid "Size" 543 567 msgstr "Размер" 544 568 545 #: admin.php:10 56569 #: admin.php:1060 546 570 msgid "Your HTML" 547 571 msgstr "Ваш HTML" 548 572 549 #: admin.php:10 59573 #: admin.php:1063 550 574 msgid "Disable design" 551 575 msgstr "Отключить дизайн" 552 576 553 #: admin.php:106 0577 #: admin.php:1064 554 578 msgid "Width" 555 579 msgstr "Ширина" 556 580 557 #: admin.php:106 1581 #: admin.php:1065 558 582 msgid "Height" 559 583 msgstr "Высота" 560 584 561 #: admin.php:106 2585 #: admin.php:1066 562 586 msgid "Design for category page" 563 587 msgstr "Дизайн для страницы категории" 564 588 565 #: admin.php:106 3589 #: admin.php:1067 566 590 msgid "" 567 591 "[img-attr] - this short code indicates that the image will be taken from the " … … 571 595 "вкладки настроек в товаре «Изображение для вариаций»." 572 596 573 #: admin.php:106 4597 #: admin.php:1068 574 598 msgid "" 575 599 "If you want to use one image for all products, remove the shortcode and " … … 579 603 "шорткод и вставьте ссылку на изображение." 580 604 581 #: admin.php:106 5605 #: admin.php:1069 582 606 msgid "Сopy" 583 607 msgstr "Копировать" 584 608 585 #: admin.php:10 66609 #: admin.php:1070 586 610 msgid "Paste" 587 611 msgstr "Вставить" 588 612 589 #: admin.php:10 67613 #: admin.php:1071 590 614 msgid "Copy attribute styles" 591 615 msgstr "Копировать стиль атрибута" 592 616 593 #: admin.php:107 0617 #: admin.php:1074 594 618 msgid "" 595 619 "If you want to use the design from your theme for the Add to Cart button, " … … 599 623 "корзину», отключите дизайн кнопки в плагине." 600 624 601 #: admin.php:107 1625 #: admin.php:1075 602 626 msgid "" 603 627 "If you want to use the design from your theme for the quantity field, " … … 607 631 "отключите дизайн для этого поля в плагине." 608 632 609 #: admin.php:107 2633 #: admin.php:1076 610 634 msgid "" 611 635 "If you want to use a design from your theme for the product price, disable " … … 615 639 "отключите дизайн для цены из плагине." 616 640 617 #: admin.php:107 4641 #: admin.php:1078 618 642 msgid "" 619 643 "Enable the output of a block for choosing variations in product categories." 620 644 msgstr "Включить вывод блока с выбором вариаций в категориях товаров." 621 645 622 #: admin.php:107 5646 #: admin.php:1079 623 647 msgid "" 624 648 "Note. When this setting is activated, the styles for the Add to cart button " … … 628 652 "корзину» будут загружаться из плагина." 629 653 630 #: admin.php:10 76654 #: admin.php:1080 631 655 msgid "" 632 656 "If you want to avoid this, you can disable the styles from plugin for the " … … 636 660 "кнопки «Добавить в корзину» в разделе дизайн." 637 661 638 #: admin.php:10 77662 #: admin.php:1081 639 663 msgid "help-1en.jpg" 640 664 msgstr "help-1en.jpg" 641 665 642 #: admin.php:108 0666 #: admin.php:1084 643 667 msgid "" 644 668 "If you disable the display of the quantity field, then when buying a product " … … 648 672 "страницы категории в корзину будет добавлена 1 единица товара." 649 673 650 #: admin.php:108 1674 #: admin.php:1085 651 675 msgid "help-design-3-en.jpg" 652 676 msgstr "help-design-3-en.jpg" 653 677 654 #: admin.php:108 3678 #: admin.php:1087 655 679 msgid "" 656 680 "If this option is enabled, then when you select a variation in a category, " … … 662 686 "указано изображение, ничего не произойдет." 663 687 664 #: admin.php:108 4688 #: admin.php:1088 665 689 msgid "help-design-en.jpg" 666 690 msgstr "help-design-en.jpg" 667 691 668 #: admin.php:108 5692 #: admin.php:1089 669 693 msgid "help-design-2-en.jpg" 670 694 msgstr "help-design-2-en.jpg" 671 695 672 #: admin.php:10 87696 #: admin.php:1091 673 697 msgid "" 674 698 "The screenshot shows the sections from which you can import / export " … … 678 702 "настройки." 679 703 680 #: admin.php:10 88704 #: admin.php:1092 681 705 msgid "help-import.jpg" 682 706 msgstr "help-import.jpg" 683 707 684 #: admin.php:109 1708 #: admin.php:1095 685 709 msgid "" 686 710 "Go to edit the product you need and open the tab shown in the screenshot." … … 689 713 "на скриншоте." 690 714 691 #: admin.php:109 2715 #: admin.php:1096 692 716 msgid "help-attr-en.jpg" 693 717 msgstr "help-attr-en.jpg" 694 718 695 #: admin.php:109 5719 #: admin.php:1099 696 720 msgid "You can combine shortcodes and static images for your attributes." 697 721 msgstr "" … … 699 723 "атрибутов." 700 724 701 #: admin.php:1 096725 #: admin.php:1100 702 726 msgid "help-attr-2en.jpg" 703 727 msgstr "help-attr-2en.jpg" 704 728 705 #: admin.php:1 098729 #: admin.php:1102 706 730 msgid "" 707 731 "Related products is a block of products that you can see in the product card " … … 712 736 "автоматически." 713 737 714 #: admin.php:1 099738 #: admin.php:1103 715 739 msgid "" 716 740 "Upsells are products that you have set in the \"Linked Products\" section in " … … 720 744 "настройках товара." 721 745 722 #: admin.php:110 0746 #: admin.php:1104 723 747 msgid "" 724 748 "If the updated variables in your theme are not displaying correctly, try " … … 730 754 "блок с переменными. Это отличается для разных тем." 731 755 732 #: admin.php:110 1756 #: admin.php:1105 733 757 msgid "" 734 758 "If this option is enabled after clicking the add to cart button in the " … … 771 795 msgstr "Скрыть блок с переменными в категориях при размере дисплея." 772 796 773 #: quasar-variable-attributes-main.php:25 2797 #: quasar-variable-attributes-main.php:254 774 798 msgid "" 775 799 "The attribute list for variables is currently empty. If you have already " … … 779 803 "атрибуты для вариаций, обновите страницу." 780 804 781 #: quasar-variable-attributes-main.php:26 1805 #: quasar-variable-attributes-main.php:263 782 806 msgid "In this section you assign images to your attributes." 783 807 msgstr "В этом разделе вы назначаете изображения своим атрибутам." 784 808 785 #: quasar-variable-attributes-main.php:26 2809 #: quasar-variable-attributes-main.php:264 786 810 msgid "Note." 787 811 msgstr "Обратите внимание." 788 812 789 #: quasar-variable-attributes-main.php:26 2813 #: quasar-variable-attributes-main.php:264 790 814 msgid "" 791 815 "In the plugin settings you need to add this attribute and set the display " … … 795 819 "отображения \"Переключатель c изображениями\"" 796 820 797 #: quasar-variable-attributes-main.php:26 2821 #: quasar-variable-attributes-main.php:264 798 822 msgid "/help-product.jpg" 799 823 msgstr "/help-product.jpg" 800 824 801 #: quasar-variable-attributes-main.php:27 2825 #: quasar-variable-attributes-main.php:274 802 826 msgid "You can only assign images to attributes in variable products." 803 827 msgstr "" 804 828 "Вы можете назначать изображения атрибутам только в вариативных товарах." 805 829 806 #: quasar-variable-attributes-main.php:27 6830 #: quasar-variable-attributes-main.php:278 807 831 msgid "" 808 832 "If you have already set the product type - \"variable\" refresh the page." -
quasar-variable-attributes/tags/1.4/lang/quasar-attr-variable.pot
r2751270 r2756088 35 35 msgstr "" 36 36 37 #: admin.php:22 admin.php:9 5637 #: admin.php:22 admin.php:960 38 38 msgid "Localization" 39 39 msgstr "" … … 43 43 msgstr "" 44 44 45 #: admin.php:29 admin.php:4 48 admin.php:449 admin.php:504 admin.php:50546 #: admin.php:59 1 admin.php:592 admin.php:655 admin.php:656 admin.php:75647 #: admin.php:7 57 admin.php:791 admin.php:792 admin.php:805 admin.php:80648 #: admin.php:8 19 admin.php:820 admin.php:843 admin.php:844 admin.php:85749 #: admin.php:8 58 admin.php:105745 #: admin.php:29 admin.php:452 admin.php:453 admin.php:508 admin.php:509 46 #: admin.php:595 admin.php:596 admin.php:659 admin.php:660 admin.php:760 47 #: admin.php:761 admin.php:795 admin.php:796 admin.php:809 admin.php:810 48 #: admin.php:823 admin.php:824 admin.php:847 admin.php:848 admin.php:861 49 #: admin.php:862 admin.php:1061 50 50 msgid "Yes" 51 51 msgstr "" 52 52 53 #: admin.php:30 admin.php:45 0 admin.php:451 admin.php:506 admin.php:50754 #: admin.php:59 3 admin.php:594 admin.php:657 admin.php:658 admin.php:75955 #: admin.php:76 0 admin.php:793 admin.php:794 admin.php:807 admin.php:80856 #: admin.php:82 1 admin.php:822 admin.php:845 admin.php:846 admin.php:85957 #: admin.php:86 0 admin.php:105853 #: admin.php:30 admin.php:454 admin.php:455 admin.php:510 admin.php:511 54 #: admin.php:597 admin.php:598 admin.php:661 admin.php:662 admin.php:763 55 #: admin.php:764 admin.php:797 admin.php:798 admin.php:811 admin.php:812 56 #: admin.php:825 admin.php:826 admin.php:849 admin.php:850 admin.php:863 57 #: admin.php:864 admin.php:1062 58 58 msgid "No" 59 59 msgstr "" … … 83 83 msgstr "" 84 84 85 #: admin.php:171 85 #: admin.php:158 86 msgid "Note. If an attribute or attribute value is not in the product published on the site, then this attribute or value may not be in the plugin." 87 msgstr "" 88 89 #: admin.php:159 90 msgid "If you have changed the attribute name, then in order for its name to change on the site, you need to click the \"save\" button in the plugin." 91 msgstr "" 92 93 #: admin.php:160 94 msgid "If you have changed the attribute slug, then this attribute must be removed from the plugin and re-added." 95 msgstr "" 96 97 #: admin.php:175 86 98 msgid "Block design with variations in the product card:" 87 99 msgstr "" 88 100 89 #: admin.php:17 2101 #: admin.php:176 90 102 msgid "Attribute design is set in the \"Attributes\" section, in this section you configure the design of the block in which the attributes will be displayed." 91 103 msgstr "" 92 104 93 #: admin.php:1 78 admin.php:187 admin.php:196 admin.php:255 admin.php:31194 #: admin.php:32 0 admin.php:329 admin.php:399105 #: admin.php:182 admin.php:191 admin.php:200 admin.php:259 admin.php:315 106 #: admin.php:324 admin.php:333 admin.php:403 95 107 msgid "Attribute name" 96 108 msgstr "" 97 109 98 #: admin.php:18 0 admin.php:189 admin.php:201 admin.php:313 admin.php:32299 #: admin.php:33 4110 #: admin.php:184 admin.php:193 admin.php:205 admin.php:317 admin.php:326 111 #: admin.php:338 100 112 msgid "Value 1" 101 113 msgstr "" 102 114 103 #: admin.php:18 1 admin.php:190 admin.php:202 admin.php:314 admin.php:323104 #: admin.php:33 5115 #: admin.php:185 admin.php:194 admin.php:206 admin.php:318 admin.php:327 116 #: admin.php:339 105 117 msgid "Value 2" 106 118 msgstr "" 107 119 108 #: admin.php:18 2 admin.php:191 admin.php:203 admin.php:315 admin.php:324109 #: admin.php:3 36120 #: admin.php:186 admin.php:195 admin.php:207 admin.php:319 admin.php:328 121 #: admin.php:340 110 122 msgid "Value 3" 111 123 msgstr "" 112 124 113 #: admin.php:22 2 admin.php:369125 #: admin.php:226 admin.php:373 114 126 msgid "Style" 115 127 msgstr "" 116 128 117 #: admin.php:22 5 admin.php:226 admin.php:372 admin.php:373129 #: admin.php:229 admin.php:230 admin.php:376 admin.php:377 118 130 msgid "style-1" 119 131 msgstr "" 120 132 121 #: admin.php:2 27 admin.php:228 admin.php:374 admin.php:375133 #: admin.php:231 admin.php:232 admin.php:378 admin.php:379 122 134 msgid "style-2" 123 135 msgstr "" 124 136 125 #: admin.php:23 4 admin.php:382137 #: admin.php:238 admin.php:386 126 138 msgid "Spacing between attributes" 127 139 msgstr "" 128 140 129 #: admin.php:24 0 admin.php:388 admin.php:1053141 #: admin.php:244 admin.php:392 admin.php:1057 130 142 msgid "Padding: left, right, top, bottom" 131 143 msgstr "" 132 144 133 #: admin.php:25 0145 #: admin.php:254 134 146 msgid "Maximum width" 135 147 msgstr "" 136 148 137 #: admin.php:2 59 admin.php:403149 #: admin.php:263 admin.php:407 138 150 msgid "Spacing between name and value" 139 151 msgstr "" 140 152 141 #: admin.php:26 4 admin.php:408153 #: admin.php:268 admin.php:412 142 154 msgid "Spacing between values" 143 155 msgstr "" 144 156 145 #: admin.php:2 69 admin.php:414 admin.php:457157 #: admin.php:273 admin.php:418 admin.php:461 146 158 msgid "Color" 147 159 msgstr "" 148 160 149 #: admin.php:27 4 admin.php:419 admin.php:462 admin.php:523 admin.php:1045161 #: admin.php:278 admin.php:423 admin.php:466 admin.php:527 admin.php:1049 150 162 msgid "Font size" 151 163 msgstr "" 152 164 153 #: admin.php:2 79165 #: admin.php:283 154 166 msgid "font weight" 155 167 msgstr "" 156 168 157 #: admin.php: 299169 #: admin.php:303 158 170 msgid "Output in categories is disabled in the settings" 159 171 msgstr "" 160 172 161 #: admin.php:30 0173 #: admin.php:304 162 174 msgid "Block design with variations in categories:" 163 175 msgstr "" 164 176 165 #: admin.php:3 49 admin.php:960 admin.php:961166 #: quasar-variable-attributes-main.php:3 48167 #: quasar-variable-attributes-main.php:3 49177 #: admin.php:353 admin.php:964 admin.php:965 178 #: quasar-variable-attributes-main.php:350 179 #: quasar-variable-attributes-main.php:351 168 180 msgid "Add to cart" 169 181 msgstr "" 170 182 171 #: admin.php:42 4 admin.php:467 admin.php:528183 #: admin.php:428 admin.php:471 admin.php:532 172 184 msgid "Font weight" 173 185 msgstr "" 174 186 175 #: admin.php:44 1187 #: admin.php:445 176 188 msgid "Price" 177 189 msgstr "" 178 190 179 #: admin.php:44 5 admin.php:501 admin.php:588191 #: admin.php:449 admin.php:505 admin.php:592 180 192 msgid "Enable design from plugin" 181 193 msgstr "" 182 194 183 #: admin.php:48 3195 #: admin.php:487 184 196 msgid "Price indent" 185 197 msgstr "" 186 198 187 #: admin.php:4 88199 #: admin.php:492 188 200 msgid "Price align" 189 201 msgstr "" 190 202 191 #: admin.php: 497203 #: admin.php:501 192 204 msgid "Button add to cart" 193 205 msgstr "" 194 206 195 #: admin.php:51 3207 #: admin.php:517 196 208 msgid "Font color" 197 209 msgstr "" 198 210 199 #: admin.php:5 18 admin.php:610 admin.php:1047211 #: admin.php:522 admin.php:614 admin.php:1051 200 212 msgid "Background color" 201 213 msgstr "" 202 214 203 #: admin.php:54 4215 #: admin.php:548 204 216 msgid "Button indent" 205 217 msgstr "" 206 218 207 #: admin.php:5 49219 #: admin.php:553 208 220 msgid "Button align" 209 221 msgstr "" 210 222 211 #: admin.php:5 59223 #: admin.php:563 212 224 msgid "Button padding: left, right, top, bottom" 213 225 msgstr "" 214 226 215 #: admin.php:5 69 admin.php:1051227 #: admin.php:573 admin.php:1055 216 228 msgid "Border width" 217 229 msgstr "" 218 230 219 #: admin.php:57 4 admin.php:615 admin.php:1050231 #: admin.php:578 admin.php:619 admin.php:1054 220 232 msgid "Border color" 221 233 msgstr "" 222 234 223 #: admin.php:5 79 admin.php:625 admin.php:1052235 #: admin.php:583 admin.php:629 admin.php:1056 224 236 msgid "Border radius" 225 237 msgstr "" 226 238 227 #: admin.php:58 4239 #: admin.php:588 228 240 msgid "Field quantity" 229 241 msgstr "" 230 242 231 #: admin.php:58 4243 #: admin.php:588 232 244 msgid "Field disabled in settings" 233 245 msgstr "" 234 246 235 #: admin.php:60 0247 #: admin.php:604 236 248 msgid "Number color" 237 249 msgstr "" 238 250 239 #: admin.php:60 5251 #: admin.php:609 240 252 msgid "Number size" 241 253 msgstr "" 242 254 243 #: admin.php:62 0255 #: admin.php:624 244 256 msgid "Border widh" 245 257 msgstr "" 246 258 247 #: admin.php:63 1259 #: admin.php:635 248 260 msgid "Quantity padding: left, right, top, bottom" 249 261 msgstr "" 250 262 251 #: admin.php:6 49263 #: admin.php:653 252 264 msgid "Main settings" 253 265 msgstr "" 254 266 255 #: admin.php:66 2267 #: admin.php:666 256 268 msgid "Show block of variations in categories." 257 269 msgstr "" 258 270 259 #: admin.php:66 5271 #: admin.php:669 260 272 msgid "Block location with variations" 261 273 msgstr "" 262 274 263 #: admin.php:6 69275 #: admin.php:673 264 276 msgid "Product Card" 265 277 msgstr "" 266 278 267 #: admin.php:67 2279 #: admin.php:676 268 280 msgid "After a short description (this option will function with a product without price)" 269 281 msgstr "" 270 282 271 #: admin.php:67 3283 #: admin.php:677 272 284 msgid "Above the short description" 273 285 msgstr "" 274 286 275 #: admin.php:67 5 admin.php:676 admin.php:718287 #: admin.php:679 admin.php:680 admin.php:722 276 288 msgid "After add to cart button" 277 289 msgstr "" 278 290 279 #: admin.php:6 78 admin.php:679291 #: admin.php:682 admin.php:683 280 292 msgid "Before quantity input field" 281 293 msgstr "" 282 294 283 #: admin.php:68 2 admin.php:683295 #: admin.php:686 admin.php:687 284 296 msgid "Product meta end" 285 297 msgstr "" 286 298 287 #: admin.php:6 88 admin.php:727299 #: admin.php:692 admin.php:731 288 300 msgid "Priority" 289 301 msgstr "" 290 302 291 #: admin.php:71 0303 #: admin.php:714 292 304 msgid "Select the position of the variable in the product card." 293 305 msgstr "" 294 306 295 #: admin.php:71 5307 #: admin.php:719 296 308 msgid "Category" 297 309 msgstr "" 298 310 299 #: admin.php:7 19311 #: admin.php:723 300 312 msgid "Before add to cart button" 301 313 msgstr "" 302 314 303 #: admin.php:72 1 admin.php:722315 #: admin.php:725 admin.php:726 304 316 msgid "Before shop loop item" 305 317 msgstr "" 306 318 307 #: admin.php:7 49319 #: admin.php:753 308 320 msgid "Select the position of the variable in the archive and category pages." 309 321 msgstr "" 310 322 311 #: admin.php:76 4323 #: admin.php:768 312 324 msgid "Show a block of variations in products with zero stock." 313 325 msgstr "" 314 326 315 #: admin.php:7 68327 #: admin.php:772 316 328 msgid "Display settings in categories" 317 329 msgstr "" 318 330 319 #: admin.php:77 4 admin.php:775331 #: admin.php:778 admin.php:779 320 332 msgid "To the left of the price" 321 333 msgstr "" 322 334 323 #: admin.php:7 76 admin.php:777335 #: admin.php:780 admin.php:781 324 336 msgid "To the right of the price" 325 337 msgstr "" 326 338 327 #: admin.php:78 1339 #: admin.php:785 328 340 msgid "Сurrency icon position." 329 341 msgstr "" 330 342 331 #: admin.php: 798343 #: admin.php:802 332 344 msgid "Redirect to the shopping cart page after purchasing the product." 333 345 msgstr "" 334 346 335 #: admin.php:81 2347 #: admin.php:816 336 348 msgid "Show quantity field in categories." 337 349 msgstr "" 338 350 339 #: admin.php:8 26351 #: admin.php:830 340 352 msgid "Сhange the product image to the image of the selected variation. This option will not work in all themes." 341 353 msgstr "" 342 354 343 #: admin.php:8 36355 #: admin.php:840 344 356 msgid "Product image class in product category." 345 357 msgstr "" 346 358 347 #: admin.php:85 0359 #: admin.php:854 348 360 msgid "Show variations in related products." 349 361 msgstr "" 350 362 351 #: admin.php:86 4363 #: admin.php:868 352 364 msgid "Show variations in upsell." 353 365 msgstr "" 354 366 355 #: admin.php:8 67367 #: admin.php:871 356 368 msgid "Responsiveness settings" 357 369 msgstr "" 358 370 359 #: admin.php:89 3371 #: admin.php:897 360 372 msgid "Select the display size from which the mobile mode will be activated in the options block in the product category." 361 373 msgstr "" 362 374 363 #: admin.php:90 0 admin.php:901375 #: admin.php:904 admin.php:905 364 376 msgid "Do not hide variable" 365 377 msgstr "" 366 378 367 #: admin.php:92 3379 #: admin.php:927 368 380 msgid "Hide block with variables in categories at display size." 369 381 msgstr "" 370 382 371 #: admin.php:95 0383 #: admin.php:954 372 384 msgid "Select the display size from which the mobile mode will be activated in the options block in the product card." 373 385 msgstr "" 374 386 375 #: admin.php:9 57387 #: admin.php:961 376 388 msgid "This text is displayed in product categories only. Localization in the product card will depend on your theme and WooCommerce." 377 389 msgstr "" 378 390 379 #: admin.php:96 4391 #: admin.php:968 380 392 msgid "Select options (button)" 381 393 msgstr "" 382 394 383 #: admin.php:96 5 quasar-variable-attributes-main.php:351384 #: quasar-variable-attributes-main.php:35 2395 #: admin.php:969 quasar-variable-attributes-main.php:353 396 #: quasar-variable-attributes-main.php:354 385 397 msgid "Select options" 386 398 msgstr "" 387 399 388 #: admin.php:9 68 admin.php:969 quasar-variable-attributes-main.php:357389 #: quasar-variable-attributes-main.php:3 58400 #: admin.php:972 admin.php:973 quasar-variable-attributes-main.php:359 401 #: quasar-variable-attributes-main.php:360 390 402 msgid "This option is not available" 391 403 msgstr "" 392 404 393 #: admin.php:97 2 admin.php:973 quasar-variable-attributes-main.php:360394 #: quasar-variable-attributes-main.php:36 1405 #: admin.php:976 admin.php:977 quasar-variable-attributes-main.php:362 406 #: quasar-variable-attributes-main.php:363 395 407 msgid "Choose an option" 396 408 msgstr "" 397 409 398 #: admin.php:9 76 admin.php:977 quasar-variable-attributes-main.php:354399 #: quasar-variable-attributes-main.php:35 5410 #: admin.php:980 admin.php:981 quasar-variable-attributes-main.php:356 411 #: quasar-variable-attributes-main.php:357 400 412 msgid "Select a value in each option" 401 413 msgstr "" 402 414 403 #: admin.php:9 86415 #: admin.php:990 404 416 msgid "Import/export" 405 417 msgstr "" 406 418 407 #: admin.php:9 86419 #: admin.php:990 408 420 msgid " (you can import settings and design sections)" 409 421 msgstr "" 410 422 411 #: admin.php:99 4423 #: admin.php:998 412 424 msgid "Select text to export" 413 425 msgstr "" 414 426 415 #: admin.php: 997427 #: admin.php:1001 416 428 msgid "Export form" 417 429 msgstr "" 418 430 419 #: admin.php: 998431 #: admin.php:1002 420 432 msgid "Export text" 421 433 msgstr "" 422 434 423 #: admin.php:100 3435 #: admin.php:1007 424 436 msgid "Import form" 425 437 msgstr "" 426 438 427 #: admin.php:100 4439 #: admin.php:1008 428 440 msgid "Incorrect text of export!" 429 441 msgstr "" 430 442 431 #: admin.php:100 5443 #: admin.php:1009 432 444 msgid "Import text" 433 445 msgstr "" 434 446 435 #: admin.php:10 07447 #: admin.php:1011 436 448 msgid "Apply import" 437 449 msgstr "" 438 450 439 #: admin.php:10 08 admin.php:1020451 #: admin.php:1012 admin.php:1024 440 452 msgid "Error while saving" 441 453 msgstr "" 442 454 443 #: admin.php:10 09 admin.php:1021455 #: admin.php:1013 admin.php:1025 444 456 msgid "Saved" 445 457 msgstr "" 446 458 447 #: admin.php:101 1459 #: admin.php:1015 448 460 msgid "If you don't copy all the text when importing or exporting, this can lead to errors in the plugin! To import the current version of the settings, restart the page." 449 461 msgstr "" 450 462 451 #: admin.php:10 17463 #: admin.php:1021 452 464 msgid "Save settings" 453 465 msgstr "" 454 466 455 #: admin.php:103 5467 #: admin.php:1039 456 468 msgid "Search" 457 469 msgstr "" 458 470 459 #: admin.php:10 36471 #: admin.php:1040 460 472 msgid "Attribute added" 461 473 msgstr "" 462 474 463 #: admin.php:10 37475 #: admin.php:1041 464 476 msgid "Already added" 465 477 msgstr "" 466 478 467 #: admin.php:10 38479 #: admin.php:1042 468 480 msgid "Tooltip" 469 481 msgstr "" 470 482 471 #: admin.php:10 39483 #: admin.php:1043 472 484 msgid "Attribute style" 473 485 msgstr "" 474 486 475 #: admin.php:104 0487 #: admin.php:1044 476 488 msgid "Checkbox" 477 489 msgstr "" 478 490 479 #: admin.php:104 1491 #: admin.php:1045 480 492 msgid "Checkbox img" 481 493 msgstr "" 482 494 483 #: admin.php:104 2495 #: admin.php:1046 484 496 msgid "Checkbox сolor" 485 497 msgstr "" 486 498 487 #: admin.php:104 3499 #: admin.php:1047 488 500 msgid "Dropdown" 489 501 msgstr "" 490 502 491 #: admin.php:104 4503 #: admin.php:1048 492 504 msgid "Checkbox text/HTML" 493 505 msgstr "" 494 506 495 #: admin.php:10 46507 #: admin.php:1050 496 508 msgid "Text color" 497 509 msgstr "" 498 510 499 #: admin.php:10 48511 #: admin.php:1052 500 512 msgid "Active background color" 501 513 msgstr "" 502 514 503 #: admin.php:10 49515 #: admin.php:1053 504 516 msgid "Active text color" 505 517 msgstr "" 506 518 507 #: admin.php:105 4519 #: admin.php:1058 508 520 msgid "Active border color" 509 521 msgstr "" 510 522 511 #: admin.php:105 5523 #: admin.php:1059 512 524 msgid "Size" 513 525 msgstr "" 514 526 515 #: admin.php:10 56527 #: admin.php:1060 516 528 msgid "Your HTML" 517 529 msgstr "" 518 530 519 #: admin.php:10 59531 #: admin.php:1063 520 532 msgid "Disable design" 521 533 msgstr "" 522 534 523 #: admin.php:106 0535 #: admin.php:1064 524 536 msgid "Width" 525 537 msgstr "" 526 538 527 #: admin.php:106 1539 #: admin.php:1065 528 540 msgid "Height" 529 541 msgstr "" 530 542 531 #: admin.php:106 2543 #: admin.php:1066 532 544 msgid "Design for category page" 533 545 msgstr "" 534 546 535 #: admin.php:106 3547 #: admin.php:1067 536 548 msgid "[img-attr] - this short code indicates that the image will be taken from the product settings tab \"Image for variations\"." 537 549 msgstr "" 538 550 539 #: admin.php:106 4551 #: admin.php:1068 540 552 msgid "If you want to use one image for all products, remove the shortcode and paste the link to the image." 541 553 msgstr "" 542 554 543 #: admin.php:106 5555 #: admin.php:1069 544 556 msgid "Сopy" 545 557 msgstr "" 546 558 547 #: admin.php:10 66559 #: admin.php:1070 548 560 msgid "Paste" 549 561 msgstr "" 550 562 551 #: admin.php:10 67563 #: admin.php:1071 552 564 msgid "Copy attribute styles" 553 565 msgstr "" 554 566 555 #: admin.php:107 0567 #: admin.php:1074 556 568 msgid "If you want to use the design from your theme for the Add to Cart button, disable the button design from the plugin." 557 569 msgstr "" 558 570 559 #: admin.php:107 1571 #: admin.php:1075 560 572 msgid "If you want to use the design from your theme for the quantity field, disable the design for that field in the plugin." 561 573 msgstr "" 562 574 563 #: admin.php:107 2575 #: admin.php:1076 564 576 msgid "If you want to use a design from your theme for the product price, disable design for the price in the plugin." 565 577 msgstr "" 566 578 567 #: admin.php:107 4579 #: admin.php:1078 568 580 msgid "Enable the output of a block for choosing variations in product categories." 569 581 msgstr "" 570 582 571 #: admin.php:107 5583 #: admin.php:1079 572 584 msgid "Note. When this setting is activated, the styles for the Add to cart button will be loaded from the plugin." 573 585 msgstr "" 574 586 575 #: admin.php:10 76587 #: admin.php:1080 576 588 msgid "If you want to avoid this, you can disable the styles from plugin for the Add to cart button in the design section." 577 589 msgstr "" 578 590 579 #: admin.php:10 77591 #: admin.php:1081 580 592 msgid "help-1en.jpg" 581 593 msgstr "" 582 594 583 #: admin.php:108 0595 #: admin.php:1084 584 596 msgid "If you disable the display of the quantity field, then when buying a product from the category page, 1 unit of the product will be added to the basket." 585 597 msgstr "" 586 598 587 #: admin.php:108 1599 #: admin.php:1085 588 600 msgid "help-design-3-en.jpg" 589 601 msgstr "" 590 602 591 #: admin.php:108 3603 #: admin.php:1087 592 604 msgid "If this option is enabled, then when you select a variation in a category, the product image will change to the image of this variation. If no image is specified in the variation, nothing will happen." 593 605 msgstr "" 594 606 595 #: admin.php:108 4607 #: admin.php:1088 596 608 msgid "help-design-en.jpg" 597 609 msgstr "" 598 610 599 #: admin.php:108 5611 #: admin.php:1089 600 612 msgid "help-design-2-en.jpg" 601 613 msgstr "" 602 614 603 #: admin.php:10 87615 #: admin.php:1091 604 616 msgid "The screenshot shows the sections from which you can import / export settings." 605 617 msgstr "" 606 618 607 #: admin.php:10 88619 #: admin.php:1092 608 620 msgid "help-import.jpg" 609 621 msgstr "" 610 622 611 #: admin.php:109 1623 #: admin.php:1095 612 624 msgid "Go to edit the product you need and open the tab shown in the screenshot." 613 625 msgstr "" 614 626 615 #: admin.php:109 2627 #: admin.php:1096 616 628 msgid "help-attr-en.jpg" 617 629 msgstr "" 618 630 619 #: admin.php:109 5631 #: admin.php:1099 620 632 msgid "You can combine shortcodes and static images for your attributes." 621 633 msgstr "" 622 634 623 #: admin.php:1 096635 #: admin.php:1100 624 636 msgid "help-attr-2en.jpg" 625 637 msgstr "" 626 638 627 #: admin.php:1 098639 #: admin.php:1102 628 640 msgid "Related products is a block of products that you can see in the product card under the main product. In most topics are selected automatically." 629 641 msgstr "" 630 642 631 #: admin.php:1 099643 #: admin.php:1103 632 644 msgid "Upsells are products that you have set in the \"Linked Products\" section in product settings." 633 645 msgstr "" 634 646 635 #: admin.php:110 0647 #: admin.php:1104 636 648 msgid "If the updated variables in your theme are not displaying correctly, try other priority values. The priority affects where the block with variables will be displayed. This is different for different themes." 637 649 msgstr "" 638 650 639 #: admin.php:110 1651 #: admin.php:1105 640 652 msgid "If this option is enabled after clicking the add to cart button in the product category, the user will be redirected to the cart page. Note. Some themes may ignore this option." 641 653 msgstr "" … … 669 681 msgstr "" 670 682 671 #: quasar-variable-attributes-main.php:25 2683 #: quasar-variable-attributes-main.php:254 672 684 msgid "The attribute list for variables is currently empty. If you have already added attributes for variables, refresh the page." 673 685 msgstr "" 674 686 675 #: quasar-variable-attributes-main.php:26 1687 #: quasar-variable-attributes-main.php:263 676 688 msgid "In this section you assign images to your attributes." 677 689 msgstr "" 678 690 679 #: quasar-variable-attributes-main.php:26 2691 #: quasar-variable-attributes-main.php:264 680 692 msgid "Note." 681 693 msgstr "" 682 694 683 #: quasar-variable-attributes-main.php:26 2695 #: quasar-variable-attributes-main.php:264 684 696 msgid "In the plugin settings you need to add this attribute and set the display type to \"Checkbox img\"" 685 697 msgstr "" 686 698 687 #: quasar-variable-attributes-main.php:26 2699 #: quasar-variable-attributes-main.php:264 688 700 msgid "/help-product.jpg" 689 701 msgstr "" 690 702 691 #: quasar-variable-attributes-main.php:27 2703 #: quasar-variable-attributes-main.php:274 692 704 msgid "You can only assign images to attributes in variable products." 693 705 msgstr "" 694 706 695 #: quasar-variable-attributes-main.php:27 6707 #: quasar-variable-attributes-main.php:278 696 708 msgid "If you have already set the product type - \"variable\" refresh the page." 697 709 msgstr "" -
quasar-variable-attributes/tags/1.4/quasar-variable-attributes-main.php
r2751270 r2756088 4 4 Plugin URI: https://quasar-variable-attributes.quasar-form.com 5 5 Description: Make the choice of options in your variable products beautiful and convenient 6 Version: 1. 46 Version: 1.5 7 7 Author: nucleus_genius 8 8 … … 10 10 11 11 //v 12 define( 'quasar_variable_free_attributes_version', '1. 4' );12 define( 'quasar_variable_free_attributes_version', '1.5' ); 13 13 define( 'quasar_variable_free_attributes_url', plugins_url( '/', __FILE__ ) ); 14 14 15 15 // add button admin 16 16 function quasar_variable_free_attributes_main_addpanel() { 17 add_menu_page('Quasar-attributes -pro', 'Quasar Attr', 'manage_options', 'quasar-variable-attributes/admin.php', '', plugins_url( '/assets/img/icon2.png', __FILE__ ));17 add_menu_page('Quasar-attributes', 'Quasar Attr', 'manage_options', 'quasar-variable-attributes/admin.php', '', plugins_url( '/assets/img/icon2.png', __FILE__ )); 18 18 } 19 19 add_action('admin_menu', 'quasar_variable_free_attributes_main_addpanel' ); … … 72 72 73 73 74 75 74 //add media button script all page 76 75 function quasar_variable_free_attributes_button_script() { … … 209 208 } 210 209 add_action( 'woocommerce_admin_process_product_object', 'quasar_variable_free_attributes_product_object', 10, 1 ); 210 211 211 212 212 … … 369 369 $label_attribute = ''; 370 370 $original_name_attr =''; 371 // attribute string371 ///attribute string 372 372 foreach ( $variation_attribute as $key => $value ){ 373 373 $string_val = ''; … … 376 376 if ( taxonomy_exists($key) ){ 377 377 $original_name_attr = $key; 378 $name_attribute = explode('_', $key); 379 $name_attribute = array_pop($name_attribute); 380 $label_attribute = wc_attribute_label($key); 378 379 $label_attribute = explode('_', $key); 380 $label_attribute = array_pop($label_attribute); 381 $name_attribute = ''; 381 382 } 382 383 else { … … 390 391 $type = $quasar_attr_array_option[$label_attribute]['style']['data-style']; 391 392 $style_attr = $quasar_attr_array_option[$label_attribute]['style']; 392 } 393 $name_attribute = $quasar_attr_array_option[$label_attribute]['style']['name']; 394 } 395 else { 396 $name_attribute = wc_attribute_label($key); 397 } 398 399 393 400 394 401 //defoult value attr … … 406 413 //activ defoult 407 414 $number_condition = 0; 408 if ( $name_defoult_attr == $ name_attribute ){415 if ( $name_defoult_attr == $label_attribute ){ 409 416 $number_condition++; 410 417 } … … 412 419 //for space in name custom attr 413 420 $name_defoult_attr = str_replace( '-', ' ', $name_defoult_attr ); 414 if ( $name_defoult_attr == $ name_attribute ){421 if ( $name_defoult_attr == $label_attribute ){ 415 422 $number_condition++; 416 423 } … … 433 440 $id_number++; 434 441 //validation emty attr 435 $index = mb_strtolower($ name_attribute);442 $index = mb_strtolower($label_attribute); 436 443 $number_condition = 0; 437 444 if ( isset($array_empty_attr[$index]) ){ … … 443 450 if ( isset($array_empty_attr[$index]) ){ 444 451 $number_condition++; 452 $label_attribute = $index; 445 453 } 446 454 } … … 453 461 else {$label_val = $term->name;} 454 462 $val = urldecode($val); 455 if ( !isset($array_variable_param[$ name_attribute][$val]['prise']) ){ $array_variable_param[$name_attribute][$val]['prise'] = '';}456 if ( !isset($array_variable_param[$ name_attribute][$val]['prise-regular']) ){ $array_variable_param[$name_attribute][$val]['prise-regular'] = ''; }457 if ( !isset($array_variable_param[$ name_attribute][$val]['data-id']) ){ $array_variable_param[$name_attribute][$val]['data-id'] = ''; }458 if ( !isset($array_variable_param[$ name_attribute][$val]['data-img']) ){ $array_variable_param[$name_attribute][$val]['data-img'] = ''; }459 if ( !isset($array_variable_param[$ name_attribute][$val]['zavisemost_variable']) ){ $array_variable_param[$name_attribute][$val]['zavisemost_variable'] = ''; }463 if ( !isset($array_variable_param[$label_attribute][$val]['prise']) ){ $array_variable_param[$label_attribute][$val]['prise'] = '';} 464 if ( !isset($array_variable_param[$label_attribute][$val]['prise-regular']) ){ $array_variable_param[$label_attribute][$val]['prise-regular'] = ''; } 465 if ( !isset($array_variable_param[$label_attribute][$val]['data-id']) ){ $array_variable_param[$label_attribute][$val]['data-id'] = ''; } 466 if ( !isset($array_variable_param[$label_attribute][$val]['data-img']) ){ $array_variable_param[$label_attribute][$val]['data-img'] = ''; } 467 if ( !isset($array_variable_param[$label_attribute][$val]['zavisemost_variable']) ){ $array_variable_param[$label_attribute][$val]['zavisemost_variable'] = ''; } 460 468 461 469 if ( $type == '' ){ 462 $string_val.= '<option class="el-value-list-attr-q" data-prise="'.esc_attr( $array_variable_param[$ name_attribute][$val]['prise'] ).'" data-prise-regular="'.esc_attr( $array_variable_param[$name_attribute][$val]['prise-regular'] ).'" data-id="'.esc_attr( $array_variable_param[$name_attribute][$val]['data-id'] ).'" data-img="'.esc_attr( $array_variable_param[$name_attribute][$val]['data-img'] ).'" data-addiction="'.esc_attr( $array_variable_param[$name_attribute][$val]['zavisemost_variable'] ).'" data-name="'.esc_attr( $val ).'">'.esc_html( $label_val ).'</option>';470 $string_val.= '<option class="el-value-list-attr-q" data-prise="'.esc_attr( $array_variable_param[$label_attribute][$val]['prise'] ).'" data-prise-regular="'.esc_attr( $array_variable_param[$label_attribute][$val]['prise-regular'] ).'" data-id="'.esc_attr( $array_variable_param[$label_attribute][$val]['data-id'] ).'" data-img="'.esc_attr( $array_variable_param[$label_attribute][$val]['data-img'] ).'" data-addiction="'.esc_attr( $array_variable_param[$label_attribute][$val]['zavisemost_variable'] ).'" data-name="'.esc_attr( $val ).'" data-val-name="'.esc_attr( $label_val ).'">'.esc_html( $label_val ).'</option>'; 463 471 } 464 472 if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){ 465 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr, $label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'categoty',urldecode($val), $array_variable_param[$name_attribute][$val]['prise'],$array_variable_param[$name_attribute][$val]['data-id'], $array_variable_param[$name_attribute][$val]['data-img'],$array_variable_param[$name_attribute][$val]['zavisemost_variable'],$val,$array_variable_param[$name_attribute][$val]['prise-regular'] );473 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr, $label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'categoty',urldecode($val), $array_variable_param[$label_attribute][$val]['prise'],$array_variable_param[$label_attribute][$val]['data-id'], $array_variable_param[$label_attribute][$val]['data-img'],$array_variable_param[$label_attribute][$val]['zavisemost_variable'],$val,$array_variable_param[$label_attribute][$val]['prise-regular'] ); 466 474 } 467 475 } … … 474 482 else { $label_val = $val; } 475 483 476 if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-addiction="" >'.esc_html( $label_val ).'</option>'; }484 if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-addiction="" data-val-name="'.esc_attr( $label_val ).'" >'.esc_html( $label_val ).'</option>'; } 477 485 if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){ 478 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr, $label_attribute ,$label_val,$array_img, $id_number,$id_number_2,'categoty',urldecode($val));486 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr, $label_attribute ,$label_val,$array_img, $id_number,$id_number_2,'categoty',urldecode($val)); 479 487 } 480 488 } … … 489 497 else { $label_val = $val; } 490 498 491 if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data- addiction="">'.esc_html( $label_val ).'</option>'; }499 if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-val-name="'.esc_attr( $label_val).'" data-addiction="">'.esc_html( $label_val ).'</option>'; } 492 500 if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){ 493 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr,$label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'categoty',urldecode($val));501 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr,$label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'categoty',urldecode($val)); 494 502 } 495 503 } … … 509 517 if ( $type == ''){ 510 518 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 511 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';512 $string_attribute.= '<div class="wrap-select-defoult wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'"><div class="block-select-q"><select><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>';519 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 520 $string_attribute.= '<div class="wrap-select-defoult wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'"><div class="block-select-q"><select><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>'; 513 521 $string_attribute.= '</div>'; 514 522 } … … 516 524 if ( $type == 'checkbox' ){ 517 525 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 518 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';519 $string_attribute.= '<div class="wrap-checkbox-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>';526 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 527 $string_attribute.= '<div class="wrap-checkbox-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 520 528 $string_attribute.= '</div>'; 521 529 } … … 523 531 if ( $type == 'color' ){ 524 532 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 525 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';526 $string_attribute.= '<div class="wrap-checkbox-attr-q color-style-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>';533 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 534 $string_attribute.= '<div class="wrap-checkbox-attr-q color-style-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 527 535 $string_attribute.= '</div>'; 528 536 } … … 530 538 if ( $type == 'html' ){ 531 539 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 532 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';533 $string_attribute.= '<div class="wrap-html-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>';540 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 541 $string_attribute.= '<div class="wrap-html-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 534 542 $string_attribute.= '</div>'; 535 543 } … … 537 545 if ( $type == 'checkboximg' ){ 538 546 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 539 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';540 $string_attribute.= '<div class="wrap-html-attr-q img-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>';547 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 548 $string_attribute.= '<div class="wrap-html-attr-q img-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 541 549 $string_attribute.= '</div>'; 542 550 } … … 548 556 549 557 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 550 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';551 $string_attribute.= '<div class="wrap-select-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'"><div class="block-select-q"><span class="st-for-select" style="border-color:'.esc_attr( $style_attr['font-color'] ).'"></span><select style="'.esc_attr( $style_1 ).'"><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>';558 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 559 $string_attribute.= '<div class="wrap-select-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'"><div class="block-select-q"><span class="st-for-select" style="border-color:'.esc_attr( $style_attr['font-color'] ).'"></span><select style="'.esc_attr( $style_1 ).'"><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>'; 552 560 $string_attribute.= '</div>'; 553 561 … … 686 694 foreach ( $variation_attribute as $key => $value ){ 687 695 $string_val = ''; 696 $type = ''; 697 //array 688 698 if ( taxonomy_exists($key) ){ 689 $name_attribute = explode('_', $key); 690 $name_attribute = array_pop($name_attribute); 691 $label_attribute = wc_attribute_label($key); 699 $original_name_attr = $key; 700 701 $label_attribute = explode('_', $key); 702 $label_attribute = array_pop($label_attribute); 703 $name_attribute = ''; 692 704 } 693 705 else { 694 //custom attribute695 $name_attribute = $key;706 $original_name_attr = $key; 707 $name_attribute = mb_strtolower($key); 696 708 $label_attribute = $key; 697 709 } 698 $type = '';710 if ( !isset($quasar_attr_array_option) ){$quasar_attr_array_option = [];} 699 711 //search attr from array base 700 if ( !isset($quasar_attr_array_option) ){ $quasar_attr_array_option = []; }701 712 if ( array_key_exists($label_attribute, $quasar_attr_array_option) ){ 702 713 $type = $quasar_attr_array_option[$label_attribute]['style']['data-style']; 703 714 $style_attr = $quasar_attr_array_option[$label_attribute]['style']; 704 } 715 $name_attribute = $quasar_attr_array_option[$label_attribute]['style']['name']; 716 } 717 else { 718 $name_attribute = wc_attribute_label($key); 719 } 720 705 721 706 722 //defoult value attr … … 718 734 //activ defoult 719 735 $number_condition = 0; 720 if ( $name_defoult_attr == $ name_attribute ){736 if ( $name_defoult_attr == $label_attribute ){ 721 737 $number_condition++; 722 738 } … … 724 740 //for space in name custom attr 725 741 $name_defoult_attr = str_replace( '-', ' ', $name_defoult_attr ); 726 if ( $name_defoult_attr == mb_strtolower($ name_attribute) ){742 if ( $name_defoult_attr == mb_strtolower($label_attribute) ){ 727 743 $number_condition++; 728 744 } … … 743 759 $array_img = []; 744 760 }; 761 745 762 //array attribute value 746 763 foreach ( $value as $val ){ … … 764 781 } 765 782 if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){ 766 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr,$label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'cart',urldecode($val));783 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr,$label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'cart',urldecode($val)); 767 784 } 768 785 … … 773 790 if ( $type == ''){ 774 791 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 775 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';776 $string_attribute.= '<div class="wrap-select-defoult wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'"><div class="block-select-q"><select><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>';792 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 793 $string_attribute.= '<div class="wrap-select-defoult wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'"><div class="block-select-q"><select><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>'; 777 794 $string_attribute.= '</div>'; 778 795 } … … 780 797 if ( $type == 'checkbox' ){ 781 798 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 782 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';783 $string_attribute.= '<div class="wrap-checkbox-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>';799 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 800 $string_attribute.= '<div class="wrap-checkbox-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 784 801 $string_attribute.= '</div>'; 785 802 } … … 787 804 if ( $type == 'color' ){ 788 805 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 789 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';790 $string_attribute.= '<div class="wrap-checkbox-attr-q color-style-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>';806 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 807 $string_attribute.= '<div class="wrap-checkbox-attr-q color-style-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 791 808 $string_attribute.= '</div>'; 792 809 } … … 794 811 if ( $type == 'html' ){ 795 812 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 796 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';797 $string_attribute.= '<div class="wrap-html-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>';813 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 814 $string_attribute.= '<div class="wrap-html-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 798 815 $string_attribute.= '</div>'; 799 816 } … … 801 818 if ( $type == 'checkboximg' ){ 802 819 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 803 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';804 $string_attribute.= '<div class="wrap-html-attr-q img-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>';820 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 821 $string_attribute.= '<div class="wrap-html-attr-q img-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 805 822 $string_attribute.= '</div>'; 806 823 } … … 812 829 813 830 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 814 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';815 $string_attribute.= '<div class="wrap-select-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'"><div class="block-select-q"><span class="st-for-select" style="border-color:'.esc_attr( $style_attr['font-color'] ).'"></span><select style="'.esc_attr( $style_1 ).'"><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>';831 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 832 $string_attribute.= '<div class="wrap-select-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'"><div class="block-select-q"><span class="st-for-select" style="border-color:'.esc_attr( $style_attr['font-color'] ).'"></span><select style="'.esc_attr( $style_1 ).'"><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>'; 816 833 $string_attribute.= '</div>'; 817 834 … … 830 847 $padding = explode(';', $quasar_attr_array_setting['setting']['style']['padding'] ); 831 848 //block 832 return '<div class="'.esc_attr( $class ).'" style="'.esc_attr( 'max-width:'.$quasar_attr_array_setting['setting']['style']['max-width-v-cart'].'; padding-left:'.$padding['0'].';padding-right:'.$padding['1'].';padding-top:'.$padding['2'].';padding-bottom:'. $padding['3'] ).'" data-id="'.esc_attr( $product->get_id() ).'"><div class="variable-attr-block-q">'.wp_specialchars_decode( $string_attribute ).'</div> </div>';849 return '<div class="'.esc_attr( $class ).'" style="'.esc_attr( 'max-width:'.$quasar_attr_array_setting['setting']['style']['max-width-v-cart'].'; padding-left:'.$padding['0'].';padding-right:'.$padding['1'].';padding-top:'.$padding['2'].';padding-bottom:'. $padding['3'] ).'" data-id="'.esc_attr( $product->get_id() ).'"><div class="variable-attr-block-q">'.wp_specialchars_decode( $string_attribute ).'</div> <div class="variable-not-found" data-text="'.esc_attr( $quasar_attr_array_setting['setting']['localization']['loc-option-not-available'] ).'" data></div> </div>'; 833 850 } 834 851 } … … 855 872 856 873 874 857 875 //checkbox style 858 if ( $type == 'checkbox' || $type == 'checkboximg' ){876 if ( $type == 'checkbox' || $type == 'checkboximg' ){ 859 877 860 878 if ( $target != 'categoty' ){ … … 914 932 $string_val.= '<option class="el-value-list-attr-q" data-prise="'.esc_attr( $prise ).'" data-prise-regular="'.esc_attr( $regular_price ).'" data-id="'.esc_attr( $id ).'" data-img="'.esc_attr( $img ).'" data-addiction="'.esc_attr( $zavisimost ).'" data-name="'.esc_attr( $name ).'" data-val-name="'.esc_attr( $name_val ).'" style="'.esc_attr( $style_1 ).'">'.esc_html( $label_val ).'</option>'; 915 933 } 934 916 935 917 936 return $string_val; … … 1102 1121 ); 1103 1122 } 1104 -
quasar-variable-attributes/tags/1.4/readme.txt
r2751270 r2756088 1 === Quasar form - add-on for WooCommerce===1 === Quasar Variable Attributes === 2 2 Contributors: nucleusgenius 3 Donate link: https://quasar- form.com/4 Tags: buy one click WooCommerce, WooCommerce form3 Donate link: https://quasar-variable-attributes.quasar-form.com 4 Tags: Variable Product Attributes, WooCommerce form, Improved Variable Product Attributes, WooCommerce variable, 5 5 Requires at least: 4.8 6 Tested up to: 5.97 Stable tag: 1. 06 Tested up to: 6.0 7 Stable tag: 1.4 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Allows you to use forms from the Quasar Form plugin as quick order forms in Woocommerce12 The Quasar Variable Attributes plugin will allow you to create a more complex and beautiful selection of options in a variable product. 13 13 14 14 == Description == 15 15 16 Allows you to use forms from the Quasar Form plugin as quick order forms in Woocommerce. This addon works according to the following algorithm. In the main settings. You select the form created in the Quasar Form plugin. Then you connect the fields of this form with the woccomerce order fields so that the form data appears in the order. 16 The Quasar Variable Attributes plugin will allow you to create a more complex and beautiful selection of options in a variable product. You will be able to display a selection of variations in variable products in the catalog and archives. 17 18 Individual setting of each attribute. Full control over the design, you customize the design of each individual attribute for the product card and categories. You can also customize block design with variables. 19 20 The main feature of this plugin is the ability to set unique images for variable attributes in each product. 17 21 18 22 19 23 ### Features 20 24 21 1. Responsive forms 22 2. 100% design customization 23 3. Translation-ready 25 1) 4 types of attribute display 26 2) Design customization 27 3) The ability to display a selection of variations in categories and archives 28 4) The ability to display the quantity field in categories and archives 29 5) Responsiveness settings 24 30 25 31 … … 33 39 34 40 35 -
quasar-variable-attributes/trunk/admin.php
r2751270 r2756088 10 10 <div class='swap-logo-header-q'> 11 11 <div class='logo-header-q'> 12 <div class='version-q-form'><span class='name-plugin-q'>Quasar Variable Attributes</span> <?php esc_html_e('Version','quasar-attr-variable');?> <span>1. 4</span></div>12 <div class='version-q-form'><span class='name-plugin-q'>Quasar Variable Attributes</span> <?php esc_html_e('Version','quasar-attr-variable');?> <span>1.5</span></div> 13 13 </div> 14 14 </div> … … 87 87 //color 88 88 if ( $array_option[$key]['style']['data-style'] == 'color' ){ 89 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-color="'.esc_ attr( $value_2['color-val'] ).'">'.esc_html( $key_2 ).'</div>';89 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-color="'.esc_html( $value_2['color-val'] ).'">'.esc_html( $key_2 ).'</div>'; 90 90 } 91 91 //html 92 92 if ( $array_option[$key]['style']['data-style'] == 'html' ){ 93 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-html="'.esc_ attr( $value_2['html-val'] ).'">'.esc_html( $key_2 ).'</div>';93 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-html="'.esc_html( $value_2['html-val'] ).'">'.esc_html( $key_2 ).'</div>'; 94 94 } 95 95 //img 96 96 if ( $array_option[$key]['style']['data-style'] == 'checkboximg' ){ 97 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-img="'.esc_ attr( $value_2['img-val'] ).'">'.esc_html( $key_2 ).'</div>';97 $string_value.= '<div class="value-elem-q" data-tooltip="'.esc_attr( $value_2['tooltip'] ).'" data-img="'.esc_html( $value_2['img-val'] ).'">'.esc_html( $key_2 ).'</div>'; 98 98 } 99 99 } … … 103 103 echo ' 104 104 <div class="element-attr-use-q" data-style="'.esc_attr( $array_option[$key]['style']['data-style'] ).'" 105 data-label ="'.esc_attr( $ array_option[$key]['style']['label']).'"105 data-label ="'.esc_attr( $key ).'" 106 106 data-font-size="'.esc_attr( $array_option[$key]['style']['font-size'] ).'" 107 107 data-font-color="'.esc_attr( $array_option[$key]['style']['font-color'] ).'" … … 124 124 data-width-c = "'.esc_attr( $array_option[$key]['style']['width-c'] ).'" 125 125 data-height-c = "'.esc_attr( $array_option[$key]['style']['height-c'] ).'"> 126 <span>'.esc_html( $ key).'</span>126 <span>'.esc_html( $array_option[$key]['style']['name'] ).'</span> 127 127 '.$string_value.' 128 128 <div class="remove-at-q"><i class="fa fa-timesq"></i></div> … … 155 155 <div class='wrap-value-customization'></div> 156 156 </div> 157 158 <div class='text-help-attr-add'><?php echo esc_html__('Note. If an attribute or attribute value is not in the product published on the site, then this attribute or value may not be in the plugin.','quasar-attr-variable') ?></div> 159 <div class='text-help-attr-add'><?php echo esc_html__('If you have changed the attribute name, then in order for its name to change on the site, you need to click the "save" button in the plugin.','quasar-attr-variable') ?></div> 160 <div class='text-help-attr-add'><?php echo esc_html__('If you have changed the attribute slug, then this attribute must be removed from the plugin and re-added.','quasar-attr-variable') ?></div> 157 161 158 162 </div> -
quasar-variable-attributes/trunk/assets/css/admin-all.css
r2751270 r2756088 163 163 margin-right: 20px; 164 164 } 165 166 .text-for-pro-v {167 font-weight: 600;168 }169 165 -
quasar-variable-attributes/trunk/assets/css/admin.css
r2751270 r2756088 1558 1558 } 1559 1559 1560 .only-pro-option { 1561 color: #c80b0b; 1562 } 1563 1564 1560 1561 .wrap-text-s-block-q { 1562 display:flex; 1563 1564 } 1565 .wrap-text-s-block-q .yes-a { 1566 white-space:nowrap; 1567 } 1568 1569 .wrap-text-s-block-q .not-a { 1570 white-space:nowrap; 1571 } -
quasar-variable-attributes/trunk/assets/js/admin-all.js
r2724249 r2756088 43 43 jQuery('.variable-attr-block-q').find('.wrap-section-attr-q').each(function(){ 44 44 //name attr 45 let name = jQuery(this).find('.name-attr-q'). html();45 let name = jQuery(this).find('.name-attr-q').next().attr('data-label'); 46 46 //array value 47 47 var array_val = {}; 48 48 jQuery(this).find('.img-attr-val-q').each(function(){ 49 49 let img = jQuery(this).attr('data-img'); 50 let name_value = jQuery(this).prev('.name-attr-val-q'). html();50 let name_value = jQuery(this).prev('.name-attr-val-q').attr('data-label'); 51 51 array_val[name_value] = {img}; 52 52 }); -
quasar-variable-attributes/trunk/assets/js/admin.js
r2751270 r2756088 143 143 let valAttr = object.attr('data-label'); 144 144 let arrayVal = []; 145 let number = 0; 145 146 $('.wrap-dop-customization').css('display', 'none'); 146 147 … … 165 166 166 167 //style checkbox -- 167 if ( object.attr('data-style') =='checkbox' ){ 168 168 if ( object.attr('data-style') =='checkbox' || object.attr('data-style') =='checkboximg' ){ 169 169 $.each(arrayVal,function(index,value){ 170 170 let padding = object.attr('data-padding').split(';'); 171 //design block 172 stringDesign = stringDesign + '<div class="attr-element-product checkbox-style-q" data-background-activ="'+object.attr('data-background-color-a')+'" data-color-activ="'+object.attr('data-color-activ')+'" data-background-defoult="'+object.attr('data-background-color')+'" data-color-defoult="'+object.attr('data-font-color')+'" data-border-color="'+object.attr('data-border-color')+'" data-border-color-a="'+object.attr('data-border-color-a')+'" style="font-size:'+object.attr('data-font-size')+'; color:'+object.attr('data-font-color')+'; background-color:'+object.attr('data-background-color')+'; border-width:'+object.attr('data-border-width')+'; border-color:'+object.attr('data-border-color')+'; border-radius:'+object.attr('data-border-radius')+'; padding-top:'+padding[0]+'; padding-left:'+padding[1]+'; padding-right:'+padding[2]+'; padding-bottom:'+padding[3]+';">'+value+'</div>'; 171 number++; 172 if ( number < 7 ){ 173 //design block 174 stringDesign = stringDesign + '<div class="attr-element-product checkbox-style-q" data-background-activ="'+object.attr('data-background-color-a')+'" data-color-activ="'+object.attr('data-color-activ')+'" data-background-defoult="'+object.attr('data-background-color')+'" data-color-defoult="'+object.attr('data-font-color')+'" data-border-color="'+object.attr('data-border-color')+'" data-border-color-a="'+object.attr('data-border-color-a')+'" style="font-size:'+object.attr('data-font-size')+'; color:'+object.attr('data-font-color')+'; background-color:'+object.attr('data-background-color')+'; border-width:'+object.attr('data-border-width')+'; border-color:'+object.attr('data-border-color')+'; border-radius:'+object.attr('data-border-radius')+'; padding-top:'+padding[0]+'; padding-left:'+padding[1]+'; padding-right:'+padding[2]+'; padding-bottom:'+padding[3]+';">'+value+'</div>'; 175 } 173 176 }); 174 177 stringDesign = stringDesign + '</div></div>'; … … 204 207 if ( $(this).find('.name-attr-t').html() == value ){ color = $(this).find('input').val() ; } 205 208 }); 209 206 210 207 211 //design block … … 220 224 221 225 $.each(arrayVal,function(index,value){ 222 //design block 223 stringDesign = stringDesign + '<option style="font-size:'+object.attr('data-font-size')+'; line-height:'+object.attr('data-font-size')+'; color:'+object.attr('data-font-color')+';">'+value+'</div>'; 226 number++; 227 if ( number < 7 ){ 228 //design block 229 stringDesign = stringDesign + '<option style="font-size:'+object.attr('data-font-size')+'; line-height:'+object.attr('data-font-size')+'; color:'+object.attr('data-font-color')+';">'+value+'</div>'; 230 } 224 231 }); 225 232 … … 259 266 }); 260 267 261 268 number++; 262 269 //design block 263 270 stringDesign = stringDesign + '<div class="attr-element-product html-attr-q" data-background-activ="'+object.attr('data-background-color-a')+'" data-color-activ="'+object.attr('data-color-activ')+'" data-background-defoult="'+object.attr('data-background-color')+'" data-color-defoult="'+object.attr('data-font-color')+'"><div class="html-val-q" data-name="'+value+'">'+html_text+'</div></div>'; … … 267 274 } 268 275 269 //style checkbox img ------------------------- 270 if ( object.attr('data-style') =='checkboximg' ){ 271 $('#style-attr').find('option').each(function(){ 272 if ( $(this).attr('data-val') == 'checkbox' ){ 273 $('.active-edit-q').attr('data-style', 'checkbox'); 274 $(this).prop('selected', true); 275 } 276 }); 277 278 } 276 279 277 280 278 $('.wrap-design-attr').append( stringDesign ); … … 327 325 let coordinat = $('.modalbox-admin-panel').attr('position'); 328 326 $('.modalbox-admin-panel').css({'display' : 'flex', 'top' : coordinat }); 327 } 328 //free disable img 329 if ( attr.attr('data-style') =='checkboximg' ){ 330 attr.attr('data-style','checkbox'); 329 331 } 330 332 … … 400 402 } 401 403 402 403 404 404 405 createdElement = "<div class='setting-field-q'><span class='heding-field-q'>"+$('#text-border-raius').html()+"</span><input id='font-border-radius-c' value='"+attr.attr('data-border-radius')+"'></div>"; … … 444 445 $('.column-1-q').append(createdElement); 445 446 446 447 447 448 448 449 //filter setting design for HTML … … 463 464 $('#font-size-c').closest('.setting-field-q').css('display', 'none'); 464 465 $('#font-size-categoty').closest('.setting-field-q').css('display', 'none'); 465 466 466 } 467 467 … … 503 503 'data-padding-c' : $('#admpaddingleft-c').val() +';'+$('#admpaddingright-c').val() +';'+ $('#admpaddingtop-c').val() +';'+ $('#admpaddingbottom-c').val(), 504 504 }); 505 506 507 505 508 506 509 //edit style real time … … 572 575 'data-size' : '28px', 573 576 'data-border-color-a' : '#3674ff', 577 'data-padding-c' : '3px' +';'+'3px' +';'+ '3px'+';'+ '3px', 574 578 }); 575 579 } … … 1076 1080 $('.wrap-use-attribute').find('.element-attr-use-q').each(function(){ 1077 1081 let name = $(this).find('span').html(); 1078 let attr = $(this); 1082 let label = $(this).attr('data-label'); 1083 let attr = $(this); 1079 1084 1080 1085 //val array … … 1109 1114 }); 1110 1115 } 1111 1116 //img 1117 if ( attr.attr('data-style') =='checkboximg' ){ 1118 $(this).find('.value-elem-q').each(function(){ 1119 let nameVal = $(this).html(); 1120 arrayValue[nameVal] = { 1121 'tooltip' : $(this).attr('data-tooltip'), 1122 'img-val' : decodeURI( $(this).attr('data-img') ), 1123 }; 1124 }); 1125 } 1112 1126 //array attr setting 1113 arraySave[ name] = {1127 arraySave[label] = { 1114 1128 'style' : { 1115 1129 'data-style' : $(this).attr('data-style'), 1116 ' label' : $(this).attr('data-label'),1130 'name' : name, 1117 1131 'font-size' : $(this).attr('data-font-size'), 1118 1132 'font-color' : $(this).attr('data-font-color'), … … 1202 1216 'show-quantity' : $('#show-quantity-q').find('option:selected').attr('data-val'), 1203 1217 'change-img' : $('#change-img-q').find('option:selected').attr('data-val'), 1218 'class-change-img' : $('#class-img-q').val(), 1204 1219 'responsive-category' : $('#responsive-category').find('option:selected').attr('data-val'), 1205 1220 'responsive-cart' : $('#responsive-cart').find('option:selected').attr('data-val'), -
quasar-variable-attributes/trunk/assets/js/frontend.js
r2751270 r2756088 8 8 }); 9 9 10 //for addon by one cl ock10 //for addon by one click 11 11 $('.form-main-element').on('change','.wrap-section-attr-q input', function(){ 12 12 change_checkbox_attr( $(this),1 ); … … 68 68 if ( y === 0 ){ 69 69 all_update_original(); 70 $('.cart-product-quasar-attribute-q').removeClass('stop-clear'); 70 71 } 71 72 … … 76 77 $('.cart-product-quasar-attribute-q .variable-attr-block-q').on('change','select', function(){ 77 78 all_update_original(); 79 $('.cart-product-quasar-attribute-q').removeClass('stop-clear'); 78 80 }); 79 81 80 82 81 83 function all_update_original(){ 82 //clear select original variable all 83 $('.variations_form .variations').find('select').each(function(){ 84 $(this).find('option').each(function(){ 85 if ( $(this).attr('value') === '' ){ $(this).prop("selected", true).trigger('change');} 86 }); 87 }); 84 let num_2 = 0; 88 85 //re selected original 89 86 $('.cart-product-quasar-attribute-q').find('.wrap-section-attr-q').each(function(){ … … 91 88 let select = block_this_attr.find('select'); 92 89 let attr = block_this_attr.find('.name-attr-q').html(); 90 93 91 //select 94 92 if ( select.length > 0 ){ … … 97 95 $('.variations_form .variations').find('label').each(function(){ 98 96 if ( $(this).html() == attr ){ 97 let number = 0; 99 98 $(this).closest('tr').find('select').find('option').each(function(){ 100 if ( $(this).html() == val ){ $(this).prop("selected", true) .trigger('change');}99 if ( $(this).html() == val ){ $(this).prop("selected", true); number++; } 101 100 }); 101 if ( number === 0 ){ 102 num_2 = 1; 103 } 102 104 } 103 105 }); 106 104 107 } 105 108 //checkbox … … 115 118 $('.variations_form .variations').find('label').each(function(){ 116 119 if ( $(this).html() == attr ){ 120 let number = 0; 117 121 $(this).closest('tr').find('select').find('option').each(function(){ 118 if ( $(this).html() == val ){ $(this).prop("selected", true) .trigger('change');}122 if ( $(this).html() == val ){ $(this).prop("selected", true); number++;} 119 123 }); 124 if ( number === 0 ){ 125 num_2 = 1; 126 } 120 127 } 121 128 }); … … 124 131 125 132 } 126 127 133 }); 128 134 135 136 137 138 //recalculate variable original activ 139 $('.variations_form .variations').find('select:first').find('option:first').trigger('change'); 140 141 //zapolneni all variable 142 let num = 0; 143 $('.cart-product-quasar-attribute-q').find('.wrap-section-attr-q').each(function(){ 144 if ( $(this).find('select').length > 0 ){ 145 if ( $(this).find('option:selected').hasClass('defoult-op') ){num++;} 146 } 147 else { 148 if ( $(this).find('input:checked').length === 0 ){num++;} 149 } 150 }); 151 if ( num === 0 ){ 152 //clear original value and restart 153 if ( num_2 === 1 ){ 154 if ( !$('.cart-product-quasar-attribute-q').hasClass('stop-clear') ){ 155 $('.cart-product-quasar-attribute-q').addClass('stop-clear'); 156 clear_originl_variable_val(1); 157 } 158 } 159 160 //show text not variable for cart page 161 num = 0; 162 let text_block = $('.cart-product-quasar-attribute-q').find('.variable-not-found'); 163 $('.variations_form .variations').find('select').find('option:selected').each(function(){ 164 if ( $(this).attr('value') === '' ){ 165 num++; 166 } 167 }); 168 if ( num > 0 ){ 169 text_block.html( text_block.attr('data-text') ).css('display', 'flex'); 170 } 171 else { 172 text_block.html( text_block.attr('data-text') ).css('display', 'none'); 173 } 174 } 175 176 177 178 179 129 180 } 130 181 182 function clear_originl_variable_val(q=0){ 183 //clear select original variable all 184 $('.variations_form .variations').find('select').each(function(){ 185 $(this).find('option').each(function(){ 186 if ( $(this).attr('value') === '' ){ $(this).prop("selected", true);} 187 }); 188 }); 189 $('.variations_form .variations').find('select:first').find('option:first').trigger('change'); 190 if (q == 1 ){ 191 all_update_original(); 192 } 193 } 131 194 132 195 $('.variable-attr-block-q label').hover( … … 208 271 if ( $(this).prop("nodeName") == 'INPUT' ){ 209 272 if ( $(this).prop('checked') ){ 210 valString = valString + '&attribute_'+$(this).closest('.wrap-element-attr-q').attr('data-original-name')+'='+encodeURI( $(this).next('label').attr('data-val ') ).replace(/\(/g, '%28').replace(/\)/g, '%29');273 valString = valString + '&attribute_'+$(this).closest('.wrap-element-attr-q').attr('data-original-name')+'='+encodeURI( $(this).next('label').attr('data-val-name') ).replace(/\(/g, '%28').replace(/\)/g, '%29'); 211 274 } 212 275 } 213 276 if ( $(this).prop("nodeName") == 'OPTION' ){ 214 277 if ( $(this).prop('selected') ){ 215 valString = valString + '&attribute_'+$(this).closest('.wrap-element-attr-q').attr('data-original-name')+'='+encodeURI( $(this). html() ).replace(/\(/g, '%28').replace(/\)/g, '%29');278 valString = valString + '&attribute_'+$(this).closest('.wrap-element-attr-q').attr('data-original-name')+'='+encodeURI( $(this).attr('data-val-name') ).replace(/\(/g, '%28').replace(/\)/g, '%29'); 216 279 } 217 280 } -
quasar-variable-attributes/trunk/lang/quasar-attr-variable-ru_RU.po
r2751270 r2756088 36 36 msgstr "Дизайн" 37 37 38 #: admin.php:22 admin.php:9 5638 #: admin.php:22 admin.php:960 39 39 msgid "Localization" 40 40 msgstr "Локализация" … … 44 44 msgstr "Импорт/экспорт настроек" 45 45 46 #: admin.php:29 admin.php:4 48 admin.php:449 admin.php:504 admin.php:50547 #: admin.php:59 1 admin.php:592 admin.php:655 admin.php:656 admin.php:75648 #: admin.php:7 57 admin.php:791 admin.php:792 admin.php:805 admin.php:80649 #: admin.php:8 19 admin.php:820 admin.php:843 admin.php:844 admin.php:85750 #: admin.php:8 58 admin.php:105746 #: admin.php:29 admin.php:452 admin.php:453 admin.php:508 admin.php:509 47 #: admin.php:595 admin.php:596 admin.php:659 admin.php:660 admin.php:760 48 #: admin.php:761 admin.php:795 admin.php:796 admin.php:809 admin.php:810 49 #: admin.php:823 admin.php:824 admin.php:847 admin.php:848 admin.php:861 50 #: admin.php:862 admin.php:1061 51 51 msgid "Yes" 52 52 msgstr "Да" 53 53 54 #: admin.php:30 admin.php:45 0 admin.php:451 admin.php:506 admin.php:50755 #: admin.php:59 3 admin.php:594 admin.php:657 admin.php:658 admin.php:75956 #: admin.php:76 0 admin.php:793 admin.php:794 admin.php:807 admin.php:80857 #: admin.php:82 1 admin.php:822 admin.php:845 admin.php:846 admin.php:85958 #: admin.php:86 0 admin.php:105854 #: admin.php:30 admin.php:454 admin.php:455 admin.php:510 admin.php:511 55 #: admin.php:597 admin.php:598 admin.php:661 admin.php:662 admin.php:763 56 #: admin.php:764 admin.php:797 admin.php:798 admin.php:811 admin.php:812 57 #: admin.php:825 admin.php:826 admin.php:849 admin.php:850 admin.php:863 58 #: admin.php:864 admin.php:1062 59 59 msgid "No" 60 60 msgstr "Нет" … … 84 84 msgstr "Всплывающая подсказка атрибута:" 85 85 86 #: admin.php:171 86 #: admin.php:158 87 msgid "" 88 "Note. If an attribute or attribute value is not in the product published on " 89 "the site, then this attribute or value may not be in the plugin." 90 msgstr "" 91 "Важно. Если атрибута или значения атрибута нет в продукте, опубликованном на " 92 "сайте, то этого атрибута или значения может не быть в плагине." 93 94 #: admin.php:159 95 msgid "" 96 "If you have changed the attribute name, then in order for its name to change " 97 "on the site, you need to click the \"save\" button in the plugin." 98 msgstr "" 99 "Если вы изменили название атрибута, то чтобы название изменилось на сайте, " 100 "вам нужно нажать кнопку «сохранить» в плагине." 101 102 #: admin.php:160 103 msgid "" 104 "If you have changed the attribute slug, then this attribute must be removed " 105 "from the plugin and re-added." 106 msgstr "" 107 "Если вы изменили слаг атрибута, то этот атрибут необходимо удалить из " 108 "плагина и добавить заново." 109 110 #: admin.php:175 87 111 msgid "Block design with variations in the product card:" 88 112 msgstr "Дизайн блока с вариациями в карточке продукта:" 89 113 90 #: admin.php:17 2114 #: admin.php:176 91 115 msgid "" 92 116 "Attribute design is set in the \"Attributes\" section, in this section you " … … 96 120 "настраиваете дизайн блока, в котором будут отображаться атрибуты." 97 121 98 #: admin.php:1 78 admin.php:187 admin.php:196 admin.php:255 admin.php:31199 #: admin.php:32 0 admin.php:329 admin.php:399122 #: admin.php:182 admin.php:191 admin.php:200 admin.php:259 admin.php:315 123 #: admin.php:324 admin.php:333 admin.php:403 100 124 msgid "Attribute name" 101 125 msgstr "Имя атрибута" 102 126 103 #: admin.php:18 0 admin.php:189 admin.php:201 admin.php:313 admin.php:322104 #: admin.php:33 4127 #: admin.php:184 admin.php:193 admin.php:205 admin.php:317 admin.php:326 128 #: admin.php:338 105 129 msgid "Value 1" 106 130 msgstr "Значение 1" 107 131 108 #: admin.php:18 1 admin.php:190 admin.php:202 admin.php:314 admin.php:323109 #: admin.php:33 5132 #: admin.php:185 admin.php:194 admin.php:206 admin.php:318 admin.php:327 133 #: admin.php:339 110 134 msgid "Value 2" 111 135 msgstr "Значение 2" 112 136 113 #: admin.php:18 2 admin.php:191 admin.php:203 admin.php:315 admin.php:324114 #: admin.php:3 36137 #: admin.php:186 admin.php:195 admin.php:207 admin.php:319 admin.php:328 138 #: admin.php:340 115 139 msgid "Value 3" 116 140 msgstr "Значение 3" 117 141 118 #: admin.php:22 2 admin.php:369142 #: admin.php:226 admin.php:373 119 143 msgid "Style" 120 144 msgstr "Стиль" 121 145 122 #: admin.php:22 5 admin.php:226 admin.php:372 admin.php:373146 #: admin.php:229 admin.php:230 admin.php:376 admin.php:377 123 147 msgid "style-1" 124 148 msgstr "стиль 1" 125 149 126 #: admin.php:2 27 admin.php:228 admin.php:374 admin.php:375150 #: admin.php:231 admin.php:232 admin.php:378 admin.php:379 127 151 msgid "style-2" 128 152 msgstr "стиль 2" 129 153 130 #: admin.php:23 4 admin.php:382154 #: admin.php:238 admin.php:386 131 155 msgid "Spacing between attributes" 132 156 msgstr "Интервал между атрибутами" 133 157 134 #: admin.php:24 0 admin.php:388 admin.php:1053158 #: admin.php:244 admin.php:392 admin.php:1057 135 159 msgid "Padding: left, right, top, bottom" 136 160 msgstr "Отступ: слева справа вверху внизу" 137 161 138 #: admin.php:25 0162 #: admin.php:254 139 163 msgid "Maximum width" 140 164 msgstr "Максимальная ширина" 141 165 142 #: admin.php:2 59 admin.php:403166 #: admin.php:263 admin.php:407 143 167 msgid "Spacing between name and value" 144 168 msgstr "Интервал между именем и значением" 145 169 146 #: admin.php:26 4 admin.php:408170 #: admin.php:268 admin.php:412 147 171 msgid "Spacing between values" 148 172 msgstr "Интервал между значениями" 149 173 150 #: admin.php:2 69 admin.php:414 admin.php:457174 #: admin.php:273 admin.php:418 admin.php:461 151 175 msgid "Color" 152 176 msgstr "Цвет" 153 177 154 #: admin.php:27 4 admin.php:419 admin.php:462 admin.php:523 admin.php:1045178 #: admin.php:278 admin.php:423 admin.php:466 admin.php:527 admin.php:1049 155 179 msgid "Font size" 156 180 msgstr "Размер шрифта" 157 181 158 #: admin.php:2 79182 #: admin.php:283 159 183 msgid "font weight" 160 184 msgstr "толщина шрифта" 161 185 162 #: admin.php: 299186 #: admin.php:303 163 187 msgid "Output in categories is disabled in the settings" 164 188 msgstr "Вывод в категории отключен в настройках" 165 189 166 #: admin.php:30 0190 #: admin.php:304 167 191 msgid "Block design with variations in categories:" 168 192 msgstr "Дизайн блока с вариациями в категориях:" 169 193 170 #: admin.php:3 49 admin.php:960 admin.php:961171 #: quasar-variable-attributes-main.php:3 48172 #: quasar-variable-attributes-main.php:3 49194 #: admin.php:353 admin.php:964 admin.php:965 195 #: quasar-variable-attributes-main.php:350 196 #: quasar-variable-attributes-main.php:351 173 197 msgid "Add to cart" 174 198 msgstr "Добавить в корзину" 175 199 176 #: admin.php:42 4 admin.php:467 admin.php:528200 #: admin.php:428 admin.php:471 admin.php:532 177 201 msgid "Font weight" 178 202 msgstr "Толщина шрифта" 179 203 180 #: admin.php:44 1204 #: admin.php:445 181 205 msgid "Price" 182 206 msgstr "Цена" 183 207 184 #: admin.php:44 5 admin.php:501 admin.php:588208 #: admin.php:449 admin.php:505 admin.php:592 185 209 msgid "Enable design from plugin" 186 210 msgstr "Включить дизайн из плагина" 187 211 188 #: admin.php:48 3212 #: admin.php:487 189 213 msgid "Price indent" 190 214 msgstr "Отступ от цены" 191 215 192 #: admin.php:4 88216 #: admin.php:492 193 217 msgid "Price align" 194 218 msgstr "Выровнять цену" 195 219 196 #: admin.php: 497220 #: admin.php:501 197 221 msgid "Button add to cart" 198 222 msgstr "Кнопка добавить в корзину" 199 223 200 #: admin.php:51 3224 #: admin.php:517 201 225 msgid "Font color" 202 226 msgstr "Цвет текста" 203 227 204 #: admin.php:5 18 admin.php:610 admin.php:1047228 #: admin.php:522 admin.php:614 admin.php:1051 205 229 msgid "Background color" 206 230 msgstr "Цвет фона" 207 231 208 #: admin.php:54 4232 #: admin.php:548 209 233 msgid "Button indent" 210 234 msgstr "Отступ кнопки" 211 235 212 #: admin.php:5 49236 #: admin.php:553 213 237 msgid "Button align" 214 238 msgstr "Выравнивание кнопки" 215 239 216 #: admin.php:5 59240 #: admin.php:563 217 241 msgid "Button padding: left, right, top, bottom" 218 242 msgstr "Отступ: слева, справа, вверху, внизу" 219 243 220 #: admin.php:5 69 admin.php:1051244 #: admin.php:573 admin.php:1055 221 245 msgid "Border width" 222 246 msgstr "Ширина границы" 223 247 224 #: admin.php:57 4 admin.php:615 admin.php:1050248 #: admin.php:578 admin.php:619 admin.php:1054 225 249 msgid "Border color" 226 250 msgstr "Цвет границы" 227 251 228 #: admin.php:5 79 admin.php:625 admin.php:1052252 #: admin.php:583 admin.php:629 admin.php:1056 229 253 msgid "Border radius" 230 254 msgstr "Округление границы" 231 255 232 #: admin.php:58 4256 #: admin.php:588 233 257 msgid "Field quantity" 234 258 msgstr "Поле количество" 235 259 236 #: admin.php:58 4260 #: admin.php:588 237 261 msgid "Field disabled in settings" 238 262 msgstr "Поле отключено в настройках" 239 263 240 #: admin.php:60 0264 #: admin.php:604 241 265 msgid "Number color" 242 266 msgstr "Цвет цифр" 243 267 244 #: admin.php:60 5268 #: admin.php:609 245 269 msgid "Number size" 246 270 msgstr "Размер цифр" 247 271 248 #: admin.php:62 0272 #: admin.php:624 249 273 msgid "Border widh" 250 274 msgstr "Ширина границы" 251 275 252 #: admin.php:63 1276 #: admin.php:635 253 277 msgid "Quantity padding: left, right, top, bottom" 254 278 msgstr "Количество отступ: слева, справа, вверху, внизу" 255 279 256 #: admin.php:6 49280 #: admin.php:653 257 281 msgid "Main settings" 258 282 msgstr "Основные настройки" 259 283 260 #: admin.php:66 2284 #: admin.php:666 261 285 msgid "Show block of variations in categories." 262 286 msgstr "Показать блок выбора вариаций в категориях." 263 287 264 #: admin.php:66 5288 #: admin.php:669 265 289 msgid "Block location with variations" 266 290 msgstr "Расположение блока с вариациями" 267 291 268 #: admin.php:6 69292 #: admin.php:673 269 293 msgid "Product Card" 270 294 msgstr "Карточка продукта" 271 295 272 #: admin.php:67 2296 #: admin.php:676 273 297 msgid "" 274 298 "After a short description (this option will function with a product without " … … 276 300 msgstr "После краткого описания (эта опция будет работать с товаром без цены)" 277 301 278 #: admin.php:67 3302 #: admin.php:677 279 303 msgid "Above the short description" 280 304 msgstr "Над кратким описанием" 281 305 282 #: admin.php:67 5 admin.php:676 admin.php:718306 #: admin.php:679 admin.php:680 admin.php:722 283 307 msgid "After add to cart button" 284 308 msgstr "После кнопки добавить в корзину" 285 309 286 #: admin.php:6 78 admin.php:679310 #: admin.php:682 admin.php:683 287 311 msgid "Before quantity input field" 288 312 msgstr "Перед полем ввода количества" 289 313 290 #: admin.php:68 2 admin.php:683314 #: admin.php:686 admin.php:687 291 315 msgid "Product meta end" 292 316 msgstr "В конце мета данных" 293 317 294 #: admin.php:6 88 admin.php:727318 #: admin.php:692 admin.php:731 295 319 msgid "Priority" 296 320 msgstr "Приоритет" 297 321 298 #: admin.php:71 0322 #: admin.php:714 299 323 msgid "Select the position of the variable in the product card." 300 324 msgstr "Выберите позицию вариаций в карточке товара." 301 325 302 #: admin.php:71 5326 #: admin.php:719 303 327 msgid "Category" 304 328 msgstr "Категория" 305 329 306 #: admin.php:7 19330 #: admin.php:723 307 331 msgid "Before add to cart button" 308 332 msgstr "Перед кнопкой добавить в корзину" 309 333 310 #: admin.php:72 1 admin.php:722334 #: admin.php:725 admin.php:726 311 335 msgid "Before shop loop item" 312 336 msgstr "Перед циклом вывода информации о товаре" 313 337 314 #: admin.php:7 49338 #: admin.php:753 315 339 msgid "Select the position of the variable in the archive and category pages." 316 340 msgstr "Выберите положение вариаций на страницах архива и категорий." 317 341 318 #: admin.php:76 4342 #: admin.php:768 319 343 msgid "Show a block of variations in products with zero stock." 320 344 msgstr "Показывать вариации в товарах с нулевым запасом." 321 345 322 #: admin.php:7 68346 #: admin.php:772 323 347 msgid "Display settings in categories" 324 348 msgstr "Настройки отображения в категориях" 325 349 326 #: admin.php:77 4 admin.php:775350 #: admin.php:778 admin.php:779 327 351 msgid "To the left of the price" 328 352 msgstr "Слева от цены" 329 353 330 #: admin.php:7 76 admin.php:777354 #: admin.php:780 admin.php:781 331 355 msgid "To the right of the price" 332 356 msgstr "Справа от цены" 333 357 334 #: admin.php:78 1358 #: admin.php:785 335 359 msgid "Сurrency icon position." 336 360 msgstr "Позиция значка валюты." 337 361 338 #: admin.php: 798362 #: admin.php:802 339 363 msgid "Redirect to the shopping cart page after purchasing the product." 340 364 msgstr "Перенаправление на страницу корзины после покупки товара." 341 365 342 #: admin.php:81 2366 #: admin.php:816 343 367 msgid "Show quantity field in categories." 344 368 msgstr "Показывать поле количество в категориях." 345 369 346 #: admin.php:8 26370 #: admin.php:830 347 371 msgid "" 348 372 "Сhange the product image to the image of the selected variation. This option " … … 352 376 "будет работать не во всех темах." 353 377 354 #: admin.php:8 36378 #: admin.php:840 355 379 msgid "Product image class in product category." 356 380 msgstr "Класс изображения продукта в категории товаров." 357 381 358 #: admin.php:85 0382 #: admin.php:854 359 383 msgid "Show variations in related products." 360 384 msgstr "" 361 385 "Показать блок выбора вариаций в сопутствующих товарах (related products)." 362 386 363 #: admin.php:86 4387 #: admin.php:868 364 388 msgid "Show variations in upsell." 365 389 msgstr "Показать блок выбора вариаций в апсейлах (upsell)." 366 390 367 #: admin.php:8 67391 #: admin.php:871 368 392 msgid "Responsiveness settings" 369 393 msgstr "Настройки адаптивности" 370 394 371 #: admin.php:89 3395 #: admin.php:897 372 396 msgid "" 373 397 "Select the display size from which the mobile mode will be activated in the " … … 377 401 "блоке опций в категории товара." 378 402 379 #: admin.php:90 0 admin.php:901403 #: admin.php:904 admin.php:905 380 404 msgid "Do not hide variable" 381 405 msgstr "Не скрывать вариации" 382 406 383 #: admin.php:92 3407 #: admin.php:927 384 408 msgid "Hide block with variables in categories at display size." 385 409 msgstr "Скрыть блок с вариациями в категориях при размере экрана." 386 410 387 #: admin.php:95 0411 #: admin.php:954 388 412 msgid "" 389 413 "Select the display size from which the mobile mode will be activated in the " … … 393 417 "блоке опций в карточке товара." 394 418 395 #: admin.php:9 57419 #: admin.php:961 396 420 msgid "" 397 421 "This text is displayed in product categories only. Localization in the " … … 401 425 "продукта будет зависеть от вашей темы и WooCommerce." 402 426 403 #: admin.php:96 4427 #: admin.php:968 404 428 msgid "Select options (button)" 405 429 msgstr "Выберите опцию (кнопка)" 406 430 407 #: admin.php:96 5 quasar-variable-attributes-main.php:351408 #: quasar-variable-attributes-main.php:35 2431 #: admin.php:969 quasar-variable-attributes-main.php:353 432 #: quasar-variable-attributes-main.php:354 409 433 msgid "Select options" 410 434 msgstr "Выберите опцию" 411 435 412 #: admin.php:9 68 admin.php:969 quasar-variable-attributes-main.php:357413 #: quasar-variable-attributes-main.php:3 58436 #: admin.php:972 admin.php:973 quasar-variable-attributes-main.php:359 437 #: quasar-variable-attributes-main.php:360 414 438 msgid "This option is not available" 415 439 msgstr "Эта опция недоступна" 416 440 417 #: admin.php:97 2 admin.php:973 quasar-variable-attributes-main.php:360418 #: quasar-variable-attributes-main.php:36 1441 #: admin.php:976 admin.php:977 quasar-variable-attributes-main.php:362 442 #: quasar-variable-attributes-main.php:363 419 443 msgid "Choose an option" 420 444 msgstr "Выберите опцию" 421 445 422 #: admin.php:9 76 admin.php:977 quasar-variable-attributes-main.php:354423 #: quasar-variable-attributes-main.php:35 5446 #: admin.php:980 admin.php:981 quasar-variable-attributes-main.php:356 447 #: quasar-variable-attributes-main.php:357 424 448 msgid "Select a value in each option" 425 449 msgstr "Выберите значение в каждой вариации" 426 450 427 #: admin.php:9 86451 #: admin.php:990 428 452 msgid "Import/export" 429 453 msgstr "Импорт/экспорт" 430 454 431 #: admin.php:9 86455 #: admin.php:990 432 456 msgid " (you can import settings and design sections)" 433 457 msgstr " (вы можете импортировать разделы: настройки и дизайн)" 434 458 435 #: admin.php:99 4459 #: admin.php:998 436 460 msgid "Select text to export" 437 461 msgstr "Выделить текст экспорта" 438 462 439 #: admin.php: 997463 #: admin.php:1001 440 464 msgid "Export form" 441 465 msgstr "Форма экспорта" 442 466 443 #: admin.php: 998467 #: admin.php:1002 444 468 msgid "Export text" 445 469 msgstr "Текст экспорта" 446 470 447 #: admin.php:100 3471 #: admin.php:1007 448 472 msgid "Import form" 449 473 msgstr "Форма импорта" 450 474 451 #: admin.php:100 4475 #: admin.php:1008 452 476 msgid "Incorrect text of export!" 453 477 msgstr "Неверный текст экспорта!" 454 478 455 #: admin.php:100 5479 #: admin.php:1009 456 480 msgid "Import text" 457 481 msgstr "Текст импорта" 458 482 459 #: admin.php:10 07483 #: admin.php:1011 460 484 msgid "Apply import" 461 485 msgstr "Применить импорт" 462 486 463 #: admin.php:10 08 admin.php:1020487 #: admin.php:1012 admin.php:1024 464 488 msgid "Error while saving" 465 489 msgstr "Ошибка при сохранении" 466 490 467 #: admin.php:10 09 admin.php:1021491 #: admin.php:1013 admin.php:1025 468 492 msgid "Saved" 469 493 msgstr "Сохранено" 470 494 471 #: admin.php:101 1495 #: admin.php:1015 472 496 msgid "" 473 497 "If you don't copy all the text when importing or exporting, this can lead to " … … 479 503 "обновите страницу." 480 504 481 #: admin.php:10 17505 #: admin.php:1021 482 506 msgid "Save settings" 483 507 msgstr "Сохранить настройки" 484 508 485 #: admin.php:103 5509 #: admin.php:1039 486 510 msgid "Search" 487 511 msgstr "Поиск" 488 512 489 #: admin.php:10 36513 #: admin.php:1040 490 514 msgid "Attribute added" 491 515 msgstr "Атрибут добавлен" 492 516 493 #: admin.php:10 37517 #: admin.php:1041 494 518 msgid "Already added" 495 519 msgstr "Уже добавлено" 496 520 497 #: admin.php:10 38521 #: admin.php:1042 498 522 msgid "Tooltip" 499 523 msgstr "Подсказка" 500 524 501 #: admin.php:10 39525 #: admin.php:1043 502 526 msgid "Attribute style" 503 527 msgstr "Стиль атрибута" 504 528 505 #: admin.php:104 0529 #: admin.php:1044 506 530 msgid "Checkbox" 507 531 msgstr "Переключатель" 508 532 509 #: admin.php:104 1533 #: admin.php:1045 510 534 msgid "Checkbox img" 511 535 msgstr "Переключатель c изображениями" 512 536 513 #: admin.php:104 2537 #: admin.php:1046 514 538 msgid "Checkbox сolor" 515 539 msgstr "Переключатель с цветами" 516 540 517 #: admin.php:104 3541 #: admin.php:1047 518 542 msgid "Dropdown" 519 543 msgstr "Выпадающий список" 520 544 521 #: admin.php:104 4545 #: admin.php:1048 522 546 msgid "Checkbox text/HTML" 523 547 msgstr "Переключатель с текстом/HTML" 524 548 525 #: admin.php:10 46549 #: admin.php:1050 526 550 msgid "Text color" 527 551 msgstr "Цвет текста" 528 552 529 #: admin.php:10 48553 #: admin.php:1052 530 554 msgid "Active background color" 531 555 msgstr "Цвет фона при выборе" 532 556 533 #: admin.php:10 49557 #: admin.php:1053 534 558 msgid "Active text color" 535 559 msgstr "Цвет текста при выборе" 536 560 537 #: admin.php:105 4561 #: admin.php:1058 538 562 msgid "Active border color" 539 563 msgstr "Цвет границы при выборе" 540 564 541 #: admin.php:105 5565 #: admin.php:1059 542 566 msgid "Size" 543 567 msgstr "Размер" 544 568 545 #: admin.php:10 56569 #: admin.php:1060 546 570 msgid "Your HTML" 547 571 msgstr "Ваш HTML" 548 572 549 #: admin.php:10 59573 #: admin.php:1063 550 574 msgid "Disable design" 551 575 msgstr "Отключить дизайн" 552 576 553 #: admin.php:106 0577 #: admin.php:1064 554 578 msgid "Width" 555 579 msgstr "Ширина" 556 580 557 #: admin.php:106 1581 #: admin.php:1065 558 582 msgid "Height" 559 583 msgstr "Высота" 560 584 561 #: admin.php:106 2585 #: admin.php:1066 562 586 msgid "Design for category page" 563 587 msgstr "Дизайн для страницы категории" 564 588 565 #: admin.php:106 3589 #: admin.php:1067 566 590 msgid "" 567 591 "[img-attr] - this short code indicates that the image will be taken from the " … … 571 595 "вкладки настроек в товаре «Изображение для вариаций»." 572 596 573 #: admin.php:106 4597 #: admin.php:1068 574 598 msgid "" 575 599 "If you want to use one image for all products, remove the shortcode and " … … 579 603 "шорткод и вставьте ссылку на изображение." 580 604 581 #: admin.php:106 5605 #: admin.php:1069 582 606 msgid "Сopy" 583 607 msgstr "Копировать" 584 608 585 #: admin.php:10 66609 #: admin.php:1070 586 610 msgid "Paste" 587 611 msgstr "Вставить" 588 612 589 #: admin.php:10 67613 #: admin.php:1071 590 614 msgid "Copy attribute styles" 591 615 msgstr "Копировать стиль атрибута" 592 616 593 #: admin.php:107 0617 #: admin.php:1074 594 618 msgid "" 595 619 "If you want to use the design from your theme for the Add to Cart button, " … … 599 623 "корзину», отключите дизайн кнопки в плагине." 600 624 601 #: admin.php:107 1625 #: admin.php:1075 602 626 msgid "" 603 627 "If you want to use the design from your theme for the quantity field, " … … 607 631 "отключите дизайн для этого поля в плагине." 608 632 609 #: admin.php:107 2633 #: admin.php:1076 610 634 msgid "" 611 635 "If you want to use a design from your theme for the product price, disable " … … 615 639 "отключите дизайн для цены из плагине." 616 640 617 #: admin.php:107 4641 #: admin.php:1078 618 642 msgid "" 619 643 "Enable the output of a block for choosing variations in product categories." 620 644 msgstr "Включить вывод блока с выбором вариаций в категориях товаров." 621 645 622 #: admin.php:107 5646 #: admin.php:1079 623 647 msgid "" 624 648 "Note. When this setting is activated, the styles for the Add to cart button " … … 628 652 "корзину» будут загружаться из плагина." 629 653 630 #: admin.php:10 76654 #: admin.php:1080 631 655 msgid "" 632 656 "If you want to avoid this, you can disable the styles from plugin for the " … … 636 660 "кнопки «Добавить в корзину» в разделе дизайн." 637 661 638 #: admin.php:10 77662 #: admin.php:1081 639 663 msgid "help-1en.jpg" 640 664 msgstr "help-1en.jpg" 641 665 642 #: admin.php:108 0666 #: admin.php:1084 643 667 msgid "" 644 668 "If you disable the display of the quantity field, then when buying a product " … … 648 672 "страницы категории в корзину будет добавлена 1 единица товара." 649 673 650 #: admin.php:108 1674 #: admin.php:1085 651 675 msgid "help-design-3-en.jpg" 652 676 msgstr "help-design-3-en.jpg" 653 677 654 #: admin.php:108 3678 #: admin.php:1087 655 679 msgid "" 656 680 "If this option is enabled, then when you select a variation in a category, " … … 662 686 "указано изображение, ничего не произойдет." 663 687 664 #: admin.php:108 4688 #: admin.php:1088 665 689 msgid "help-design-en.jpg" 666 690 msgstr "help-design-en.jpg" 667 691 668 #: admin.php:108 5692 #: admin.php:1089 669 693 msgid "help-design-2-en.jpg" 670 694 msgstr "help-design-2-en.jpg" 671 695 672 #: admin.php:10 87696 #: admin.php:1091 673 697 msgid "" 674 698 "The screenshot shows the sections from which you can import / export " … … 678 702 "настройки." 679 703 680 #: admin.php:10 88704 #: admin.php:1092 681 705 msgid "help-import.jpg" 682 706 msgstr "help-import.jpg" 683 707 684 #: admin.php:109 1708 #: admin.php:1095 685 709 msgid "" 686 710 "Go to edit the product you need and open the tab shown in the screenshot." … … 689 713 "на скриншоте." 690 714 691 #: admin.php:109 2715 #: admin.php:1096 692 716 msgid "help-attr-en.jpg" 693 717 msgstr "help-attr-en.jpg" 694 718 695 #: admin.php:109 5719 #: admin.php:1099 696 720 msgid "You can combine shortcodes and static images for your attributes." 697 721 msgstr "" … … 699 723 "атрибутов." 700 724 701 #: admin.php:1 096725 #: admin.php:1100 702 726 msgid "help-attr-2en.jpg" 703 727 msgstr "help-attr-2en.jpg" 704 728 705 #: admin.php:1 098729 #: admin.php:1102 706 730 msgid "" 707 731 "Related products is a block of products that you can see in the product card " … … 712 736 "автоматически." 713 737 714 #: admin.php:1 099738 #: admin.php:1103 715 739 msgid "" 716 740 "Upsells are products that you have set in the \"Linked Products\" section in " … … 720 744 "настройках товара." 721 745 722 #: admin.php:110 0746 #: admin.php:1104 723 747 msgid "" 724 748 "If the updated variables in your theme are not displaying correctly, try " … … 730 754 "блок с переменными. Это отличается для разных тем." 731 755 732 #: admin.php:110 1756 #: admin.php:1105 733 757 msgid "" 734 758 "If this option is enabled after clicking the add to cart button in the " … … 771 795 msgstr "Скрыть блок с переменными в категориях при размере дисплея." 772 796 773 #: quasar-variable-attributes-main.php:25 2797 #: quasar-variable-attributes-main.php:254 774 798 msgid "" 775 799 "The attribute list for variables is currently empty. If you have already " … … 779 803 "атрибуты для вариаций, обновите страницу." 780 804 781 #: quasar-variable-attributes-main.php:26 1805 #: quasar-variable-attributes-main.php:263 782 806 msgid "In this section you assign images to your attributes." 783 807 msgstr "В этом разделе вы назначаете изображения своим атрибутам." 784 808 785 #: quasar-variable-attributes-main.php:26 2809 #: quasar-variable-attributes-main.php:264 786 810 msgid "Note." 787 811 msgstr "Обратите внимание." 788 812 789 #: quasar-variable-attributes-main.php:26 2813 #: quasar-variable-attributes-main.php:264 790 814 msgid "" 791 815 "In the plugin settings you need to add this attribute and set the display " … … 795 819 "отображения \"Переключатель c изображениями\"" 796 820 797 #: quasar-variable-attributes-main.php:26 2821 #: quasar-variable-attributes-main.php:264 798 822 msgid "/help-product.jpg" 799 823 msgstr "/help-product.jpg" 800 824 801 #: quasar-variable-attributes-main.php:27 2825 #: quasar-variable-attributes-main.php:274 802 826 msgid "You can only assign images to attributes in variable products." 803 827 msgstr "" 804 828 "Вы можете назначать изображения атрибутам только в вариативных товарах." 805 829 806 #: quasar-variable-attributes-main.php:27 6830 #: quasar-variable-attributes-main.php:278 807 831 msgid "" 808 832 "If you have already set the product type - \"variable\" refresh the page." -
quasar-variable-attributes/trunk/lang/quasar-attr-variable.pot
r2751270 r2756088 35 35 msgstr "" 36 36 37 #: admin.php:22 admin.php:9 5637 #: admin.php:22 admin.php:960 38 38 msgid "Localization" 39 39 msgstr "" … … 43 43 msgstr "" 44 44 45 #: admin.php:29 admin.php:4 48 admin.php:449 admin.php:504 admin.php:50546 #: admin.php:59 1 admin.php:592 admin.php:655 admin.php:656 admin.php:75647 #: admin.php:7 57 admin.php:791 admin.php:792 admin.php:805 admin.php:80648 #: admin.php:8 19 admin.php:820 admin.php:843 admin.php:844 admin.php:85749 #: admin.php:8 58 admin.php:105745 #: admin.php:29 admin.php:452 admin.php:453 admin.php:508 admin.php:509 46 #: admin.php:595 admin.php:596 admin.php:659 admin.php:660 admin.php:760 47 #: admin.php:761 admin.php:795 admin.php:796 admin.php:809 admin.php:810 48 #: admin.php:823 admin.php:824 admin.php:847 admin.php:848 admin.php:861 49 #: admin.php:862 admin.php:1061 50 50 msgid "Yes" 51 51 msgstr "" 52 52 53 #: admin.php:30 admin.php:45 0 admin.php:451 admin.php:506 admin.php:50754 #: admin.php:59 3 admin.php:594 admin.php:657 admin.php:658 admin.php:75955 #: admin.php:76 0 admin.php:793 admin.php:794 admin.php:807 admin.php:80856 #: admin.php:82 1 admin.php:822 admin.php:845 admin.php:846 admin.php:85957 #: admin.php:86 0 admin.php:105853 #: admin.php:30 admin.php:454 admin.php:455 admin.php:510 admin.php:511 54 #: admin.php:597 admin.php:598 admin.php:661 admin.php:662 admin.php:763 55 #: admin.php:764 admin.php:797 admin.php:798 admin.php:811 admin.php:812 56 #: admin.php:825 admin.php:826 admin.php:849 admin.php:850 admin.php:863 57 #: admin.php:864 admin.php:1062 58 58 msgid "No" 59 59 msgstr "" … … 83 83 msgstr "" 84 84 85 #: admin.php:171 85 #: admin.php:158 86 msgid "Note. If an attribute or attribute value is not in the product published on the site, then this attribute or value may not be in the plugin." 87 msgstr "" 88 89 #: admin.php:159 90 msgid "If you have changed the attribute name, then in order for its name to change on the site, you need to click the \"save\" button in the plugin." 91 msgstr "" 92 93 #: admin.php:160 94 msgid "If you have changed the attribute slug, then this attribute must be removed from the plugin and re-added." 95 msgstr "" 96 97 #: admin.php:175 86 98 msgid "Block design with variations in the product card:" 87 99 msgstr "" 88 100 89 #: admin.php:17 2101 #: admin.php:176 90 102 msgid "Attribute design is set in the \"Attributes\" section, in this section you configure the design of the block in which the attributes will be displayed." 91 103 msgstr "" 92 104 93 #: admin.php:1 78 admin.php:187 admin.php:196 admin.php:255 admin.php:31194 #: admin.php:32 0 admin.php:329 admin.php:399105 #: admin.php:182 admin.php:191 admin.php:200 admin.php:259 admin.php:315 106 #: admin.php:324 admin.php:333 admin.php:403 95 107 msgid "Attribute name" 96 108 msgstr "" 97 109 98 #: admin.php:18 0 admin.php:189 admin.php:201 admin.php:313 admin.php:32299 #: admin.php:33 4110 #: admin.php:184 admin.php:193 admin.php:205 admin.php:317 admin.php:326 111 #: admin.php:338 100 112 msgid "Value 1" 101 113 msgstr "" 102 114 103 #: admin.php:18 1 admin.php:190 admin.php:202 admin.php:314 admin.php:323104 #: admin.php:33 5115 #: admin.php:185 admin.php:194 admin.php:206 admin.php:318 admin.php:327 116 #: admin.php:339 105 117 msgid "Value 2" 106 118 msgstr "" 107 119 108 #: admin.php:18 2 admin.php:191 admin.php:203 admin.php:315 admin.php:324109 #: admin.php:3 36120 #: admin.php:186 admin.php:195 admin.php:207 admin.php:319 admin.php:328 121 #: admin.php:340 110 122 msgid "Value 3" 111 123 msgstr "" 112 124 113 #: admin.php:22 2 admin.php:369125 #: admin.php:226 admin.php:373 114 126 msgid "Style" 115 127 msgstr "" 116 128 117 #: admin.php:22 5 admin.php:226 admin.php:372 admin.php:373129 #: admin.php:229 admin.php:230 admin.php:376 admin.php:377 118 130 msgid "style-1" 119 131 msgstr "" 120 132 121 #: admin.php:2 27 admin.php:228 admin.php:374 admin.php:375133 #: admin.php:231 admin.php:232 admin.php:378 admin.php:379 122 134 msgid "style-2" 123 135 msgstr "" 124 136 125 #: admin.php:23 4 admin.php:382137 #: admin.php:238 admin.php:386 126 138 msgid "Spacing between attributes" 127 139 msgstr "" 128 140 129 #: admin.php:24 0 admin.php:388 admin.php:1053141 #: admin.php:244 admin.php:392 admin.php:1057 130 142 msgid "Padding: left, right, top, bottom" 131 143 msgstr "" 132 144 133 #: admin.php:25 0145 #: admin.php:254 134 146 msgid "Maximum width" 135 147 msgstr "" 136 148 137 #: admin.php:2 59 admin.php:403149 #: admin.php:263 admin.php:407 138 150 msgid "Spacing between name and value" 139 151 msgstr "" 140 152 141 #: admin.php:26 4 admin.php:408153 #: admin.php:268 admin.php:412 142 154 msgid "Spacing between values" 143 155 msgstr "" 144 156 145 #: admin.php:2 69 admin.php:414 admin.php:457157 #: admin.php:273 admin.php:418 admin.php:461 146 158 msgid "Color" 147 159 msgstr "" 148 160 149 #: admin.php:27 4 admin.php:419 admin.php:462 admin.php:523 admin.php:1045161 #: admin.php:278 admin.php:423 admin.php:466 admin.php:527 admin.php:1049 150 162 msgid "Font size" 151 163 msgstr "" 152 164 153 #: admin.php:2 79165 #: admin.php:283 154 166 msgid "font weight" 155 167 msgstr "" 156 168 157 #: admin.php: 299169 #: admin.php:303 158 170 msgid "Output in categories is disabled in the settings" 159 171 msgstr "" 160 172 161 #: admin.php:30 0173 #: admin.php:304 162 174 msgid "Block design with variations in categories:" 163 175 msgstr "" 164 176 165 #: admin.php:3 49 admin.php:960 admin.php:961166 #: quasar-variable-attributes-main.php:3 48167 #: quasar-variable-attributes-main.php:3 49177 #: admin.php:353 admin.php:964 admin.php:965 178 #: quasar-variable-attributes-main.php:350 179 #: quasar-variable-attributes-main.php:351 168 180 msgid "Add to cart" 169 181 msgstr "" 170 182 171 #: admin.php:42 4 admin.php:467 admin.php:528183 #: admin.php:428 admin.php:471 admin.php:532 172 184 msgid "Font weight" 173 185 msgstr "" 174 186 175 #: admin.php:44 1187 #: admin.php:445 176 188 msgid "Price" 177 189 msgstr "" 178 190 179 #: admin.php:44 5 admin.php:501 admin.php:588191 #: admin.php:449 admin.php:505 admin.php:592 180 192 msgid "Enable design from plugin" 181 193 msgstr "" 182 194 183 #: admin.php:48 3195 #: admin.php:487 184 196 msgid "Price indent" 185 197 msgstr "" 186 198 187 #: admin.php:4 88199 #: admin.php:492 188 200 msgid "Price align" 189 201 msgstr "" 190 202 191 #: admin.php: 497203 #: admin.php:501 192 204 msgid "Button add to cart" 193 205 msgstr "" 194 206 195 #: admin.php:51 3207 #: admin.php:517 196 208 msgid "Font color" 197 209 msgstr "" 198 210 199 #: admin.php:5 18 admin.php:610 admin.php:1047211 #: admin.php:522 admin.php:614 admin.php:1051 200 212 msgid "Background color" 201 213 msgstr "" 202 214 203 #: admin.php:54 4215 #: admin.php:548 204 216 msgid "Button indent" 205 217 msgstr "" 206 218 207 #: admin.php:5 49219 #: admin.php:553 208 220 msgid "Button align" 209 221 msgstr "" 210 222 211 #: admin.php:5 59223 #: admin.php:563 212 224 msgid "Button padding: left, right, top, bottom" 213 225 msgstr "" 214 226 215 #: admin.php:5 69 admin.php:1051227 #: admin.php:573 admin.php:1055 216 228 msgid "Border width" 217 229 msgstr "" 218 230 219 #: admin.php:57 4 admin.php:615 admin.php:1050231 #: admin.php:578 admin.php:619 admin.php:1054 220 232 msgid "Border color" 221 233 msgstr "" 222 234 223 #: admin.php:5 79 admin.php:625 admin.php:1052235 #: admin.php:583 admin.php:629 admin.php:1056 224 236 msgid "Border radius" 225 237 msgstr "" 226 238 227 #: admin.php:58 4239 #: admin.php:588 228 240 msgid "Field quantity" 229 241 msgstr "" 230 242 231 #: admin.php:58 4243 #: admin.php:588 232 244 msgid "Field disabled in settings" 233 245 msgstr "" 234 246 235 #: admin.php:60 0247 #: admin.php:604 236 248 msgid "Number color" 237 249 msgstr "" 238 250 239 #: admin.php:60 5251 #: admin.php:609 240 252 msgid "Number size" 241 253 msgstr "" 242 254 243 #: admin.php:62 0255 #: admin.php:624 244 256 msgid "Border widh" 245 257 msgstr "" 246 258 247 #: admin.php:63 1259 #: admin.php:635 248 260 msgid "Quantity padding: left, right, top, bottom" 249 261 msgstr "" 250 262 251 #: admin.php:6 49263 #: admin.php:653 252 264 msgid "Main settings" 253 265 msgstr "" 254 266 255 #: admin.php:66 2267 #: admin.php:666 256 268 msgid "Show block of variations in categories." 257 269 msgstr "" 258 270 259 #: admin.php:66 5271 #: admin.php:669 260 272 msgid "Block location with variations" 261 273 msgstr "" 262 274 263 #: admin.php:6 69275 #: admin.php:673 264 276 msgid "Product Card" 265 277 msgstr "" 266 278 267 #: admin.php:67 2279 #: admin.php:676 268 280 msgid "After a short description (this option will function with a product without price)" 269 281 msgstr "" 270 282 271 #: admin.php:67 3283 #: admin.php:677 272 284 msgid "Above the short description" 273 285 msgstr "" 274 286 275 #: admin.php:67 5 admin.php:676 admin.php:718287 #: admin.php:679 admin.php:680 admin.php:722 276 288 msgid "After add to cart button" 277 289 msgstr "" 278 290 279 #: admin.php:6 78 admin.php:679291 #: admin.php:682 admin.php:683 280 292 msgid "Before quantity input field" 281 293 msgstr "" 282 294 283 #: admin.php:68 2 admin.php:683295 #: admin.php:686 admin.php:687 284 296 msgid "Product meta end" 285 297 msgstr "" 286 298 287 #: admin.php:6 88 admin.php:727299 #: admin.php:692 admin.php:731 288 300 msgid "Priority" 289 301 msgstr "" 290 302 291 #: admin.php:71 0303 #: admin.php:714 292 304 msgid "Select the position of the variable in the product card." 293 305 msgstr "" 294 306 295 #: admin.php:71 5307 #: admin.php:719 296 308 msgid "Category" 297 309 msgstr "" 298 310 299 #: admin.php:7 19311 #: admin.php:723 300 312 msgid "Before add to cart button" 301 313 msgstr "" 302 314 303 #: admin.php:72 1 admin.php:722315 #: admin.php:725 admin.php:726 304 316 msgid "Before shop loop item" 305 317 msgstr "" 306 318 307 #: admin.php:7 49319 #: admin.php:753 308 320 msgid "Select the position of the variable in the archive and category pages." 309 321 msgstr "" 310 322 311 #: admin.php:76 4323 #: admin.php:768 312 324 msgid "Show a block of variations in products with zero stock." 313 325 msgstr "" 314 326 315 #: admin.php:7 68327 #: admin.php:772 316 328 msgid "Display settings in categories" 317 329 msgstr "" 318 330 319 #: admin.php:77 4 admin.php:775331 #: admin.php:778 admin.php:779 320 332 msgid "To the left of the price" 321 333 msgstr "" 322 334 323 #: admin.php:7 76 admin.php:777335 #: admin.php:780 admin.php:781 324 336 msgid "To the right of the price" 325 337 msgstr "" 326 338 327 #: admin.php:78 1339 #: admin.php:785 328 340 msgid "Сurrency icon position." 329 341 msgstr "" 330 342 331 #: admin.php: 798343 #: admin.php:802 332 344 msgid "Redirect to the shopping cart page after purchasing the product." 333 345 msgstr "" 334 346 335 #: admin.php:81 2347 #: admin.php:816 336 348 msgid "Show quantity field in categories." 337 349 msgstr "" 338 350 339 #: admin.php:8 26351 #: admin.php:830 340 352 msgid "Сhange the product image to the image of the selected variation. This option will not work in all themes." 341 353 msgstr "" 342 354 343 #: admin.php:8 36355 #: admin.php:840 344 356 msgid "Product image class in product category." 345 357 msgstr "" 346 358 347 #: admin.php:85 0359 #: admin.php:854 348 360 msgid "Show variations in related products." 349 361 msgstr "" 350 362 351 #: admin.php:86 4363 #: admin.php:868 352 364 msgid "Show variations in upsell." 353 365 msgstr "" 354 366 355 #: admin.php:8 67367 #: admin.php:871 356 368 msgid "Responsiveness settings" 357 369 msgstr "" 358 370 359 #: admin.php:89 3371 #: admin.php:897 360 372 msgid "Select the display size from which the mobile mode will be activated in the options block in the product category." 361 373 msgstr "" 362 374 363 #: admin.php:90 0 admin.php:901375 #: admin.php:904 admin.php:905 364 376 msgid "Do not hide variable" 365 377 msgstr "" 366 378 367 #: admin.php:92 3379 #: admin.php:927 368 380 msgid "Hide block with variables in categories at display size." 369 381 msgstr "" 370 382 371 #: admin.php:95 0383 #: admin.php:954 372 384 msgid "Select the display size from which the mobile mode will be activated in the options block in the product card." 373 385 msgstr "" 374 386 375 #: admin.php:9 57387 #: admin.php:961 376 388 msgid "This text is displayed in product categories only. Localization in the product card will depend on your theme and WooCommerce." 377 389 msgstr "" 378 390 379 #: admin.php:96 4391 #: admin.php:968 380 392 msgid "Select options (button)" 381 393 msgstr "" 382 394 383 #: admin.php:96 5 quasar-variable-attributes-main.php:351384 #: quasar-variable-attributes-main.php:35 2395 #: admin.php:969 quasar-variable-attributes-main.php:353 396 #: quasar-variable-attributes-main.php:354 385 397 msgid "Select options" 386 398 msgstr "" 387 399 388 #: admin.php:9 68 admin.php:969 quasar-variable-attributes-main.php:357389 #: quasar-variable-attributes-main.php:3 58400 #: admin.php:972 admin.php:973 quasar-variable-attributes-main.php:359 401 #: quasar-variable-attributes-main.php:360 390 402 msgid "This option is not available" 391 403 msgstr "" 392 404 393 #: admin.php:97 2 admin.php:973 quasar-variable-attributes-main.php:360394 #: quasar-variable-attributes-main.php:36 1405 #: admin.php:976 admin.php:977 quasar-variable-attributes-main.php:362 406 #: quasar-variable-attributes-main.php:363 395 407 msgid "Choose an option" 396 408 msgstr "" 397 409 398 #: admin.php:9 76 admin.php:977 quasar-variable-attributes-main.php:354399 #: quasar-variable-attributes-main.php:35 5410 #: admin.php:980 admin.php:981 quasar-variable-attributes-main.php:356 411 #: quasar-variable-attributes-main.php:357 400 412 msgid "Select a value in each option" 401 413 msgstr "" 402 414 403 #: admin.php:9 86415 #: admin.php:990 404 416 msgid "Import/export" 405 417 msgstr "" 406 418 407 #: admin.php:9 86419 #: admin.php:990 408 420 msgid " (you can import settings and design sections)" 409 421 msgstr "" 410 422 411 #: admin.php:99 4423 #: admin.php:998 412 424 msgid "Select text to export" 413 425 msgstr "" 414 426 415 #: admin.php: 997427 #: admin.php:1001 416 428 msgid "Export form" 417 429 msgstr "" 418 430 419 #: admin.php: 998431 #: admin.php:1002 420 432 msgid "Export text" 421 433 msgstr "" 422 434 423 #: admin.php:100 3435 #: admin.php:1007 424 436 msgid "Import form" 425 437 msgstr "" 426 438 427 #: admin.php:100 4439 #: admin.php:1008 428 440 msgid "Incorrect text of export!" 429 441 msgstr "" 430 442 431 #: admin.php:100 5443 #: admin.php:1009 432 444 msgid "Import text" 433 445 msgstr "" 434 446 435 #: admin.php:10 07447 #: admin.php:1011 436 448 msgid "Apply import" 437 449 msgstr "" 438 450 439 #: admin.php:10 08 admin.php:1020451 #: admin.php:1012 admin.php:1024 440 452 msgid "Error while saving" 441 453 msgstr "" 442 454 443 #: admin.php:10 09 admin.php:1021455 #: admin.php:1013 admin.php:1025 444 456 msgid "Saved" 445 457 msgstr "" 446 458 447 #: admin.php:101 1459 #: admin.php:1015 448 460 msgid "If you don't copy all the text when importing or exporting, this can lead to errors in the plugin! To import the current version of the settings, restart the page." 449 461 msgstr "" 450 462 451 #: admin.php:10 17463 #: admin.php:1021 452 464 msgid "Save settings" 453 465 msgstr "" 454 466 455 #: admin.php:103 5467 #: admin.php:1039 456 468 msgid "Search" 457 469 msgstr "" 458 470 459 #: admin.php:10 36471 #: admin.php:1040 460 472 msgid "Attribute added" 461 473 msgstr "" 462 474 463 #: admin.php:10 37475 #: admin.php:1041 464 476 msgid "Already added" 465 477 msgstr "" 466 478 467 #: admin.php:10 38479 #: admin.php:1042 468 480 msgid "Tooltip" 469 481 msgstr "" 470 482 471 #: admin.php:10 39483 #: admin.php:1043 472 484 msgid "Attribute style" 473 485 msgstr "" 474 486 475 #: admin.php:104 0487 #: admin.php:1044 476 488 msgid "Checkbox" 477 489 msgstr "" 478 490 479 #: admin.php:104 1491 #: admin.php:1045 480 492 msgid "Checkbox img" 481 493 msgstr "" 482 494 483 #: admin.php:104 2495 #: admin.php:1046 484 496 msgid "Checkbox сolor" 485 497 msgstr "" 486 498 487 #: admin.php:104 3499 #: admin.php:1047 488 500 msgid "Dropdown" 489 501 msgstr "" 490 502 491 #: admin.php:104 4503 #: admin.php:1048 492 504 msgid "Checkbox text/HTML" 493 505 msgstr "" 494 506 495 #: admin.php:10 46507 #: admin.php:1050 496 508 msgid "Text color" 497 509 msgstr "" 498 510 499 #: admin.php:10 48511 #: admin.php:1052 500 512 msgid "Active background color" 501 513 msgstr "" 502 514 503 #: admin.php:10 49515 #: admin.php:1053 504 516 msgid "Active text color" 505 517 msgstr "" 506 518 507 #: admin.php:105 4519 #: admin.php:1058 508 520 msgid "Active border color" 509 521 msgstr "" 510 522 511 #: admin.php:105 5523 #: admin.php:1059 512 524 msgid "Size" 513 525 msgstr "" 514 526 515 #: admin.php:10 56527 #: admin.php:1060 516 528 msgid "Your HTML" 517 529 msgstr "" 518 530 519 #: admin.php:10 59531 #: admin.php:1063 520 532 msgid "Disable design" 521 533 msgstr "" 522 534 523 #: admin.php:106 0535 #: admin.php:1064 524 536 msgid "Width" 525 537 msgstr "" 526 538 527 #: admin.php:106 1539 #: admin.php:1065 528 540 msgid "Height" 529 541 msgstr "" 530 542 531 #: admin.php:106 2543 #: admin.php:1066 532 544 msgid "Design for category page" 533 545 msgstr "" 534 546 535 #: admin.php:106 3547 #: admin.php:1067 536 548 msgid "[img-attr] - this short code indicates that the image will be taken from the product settings tab \"Image for variations\"." 537 549 msgstr "" 538 550 539 #: admin.php:106 4551 #: admin.php:1068 540 552 msgid "If you want to use one image for all products, remove the shortcode and paste the link to the image." 541 553 msgstr "" 542 554 543 #: admin.php:106 5555 #: admin.php:1069 544 556 msgid "Сopy" 545 557 msgstr "" 546 558 547 #: admin.php:10 66559 #: admin.php:1070 548 560 msgid "Paste" 549 561 msgstr "" 550 562 551 #: admin.php:10 67563 #: admin.php:1071 552 564 msgid "Copy attribute styles" 553 565 msgstr "" 554 566 555 #: admin.php:107 0567 #: admin.php:1074 556 568 msgid "If you want to use the design from your theme for the Add to Cart button, disable the button design from the plugin." 557 569 msgstr "" 558 570 559 #: admin.php:107 1571 #: admin.php:1075 560 572 msgid "If you want to use the design from your theme for the quantity field, disable the design for that field in the plugin." 561 573 msgstr "" 562 574 563 #: admin.php:107 2575 #: admin.php:1076 564 576 msgid "If you want to use a design from your theme for the product price, disable design for the price in the plugin." 565 577 msgstr "" 566 578 567 #: admin.php:107 4579 #: admin.php:1078 568 580 msgid "Enable the output of a block for choosing variations in product categories." 569 581 msgstr "" 570 582 571 #: admin.php:107 5583 #: admin.php:1079 572 584 msgid "Note. When this setting is activated, the styles for the Add to cart button will be loaded from the plugin." 573 585 msgstr "" 574 586 575 #: admin.php:10 76587 #: admin.php:1080 576 588 msgid "If you want to avoid this, you can disable the styles from plugin for the Add to cart button in the design section." 577 589 msgstr "" 578 590 579 #: admin.php:10 77591 #: admin.php:1081 580 592 msgid "help-1en.jpg" 581 593 msgstr "" 582 594 583 #: admin.php:108 0595 #: admin.php:1084 584 596 msgid "If you disable the display of the quantity field, then when buying a product from the category page, 1 unit of the product will be added to the basket." 585 597 msgstr "" 586 598 587 #: admin.php:108 1599 #: admin.php:1085 588 600 msgid "help-design-3-en.jpg" 589 601 msgstr "" 590 602 591 #: admin.php:108 3603 #: admin.php:1087 592 604 msgid "If this option is enabled, then when you select a variation in a category, the product image will change to the image of this variation. If no image is specified in the variation, nothing will happen." 593 605 msgstr "" 594 606 595 #: admin.php:108 4607 #: admin.php:1088 596 608 msgid "help-design-en.jpg" 597 609 msgstr "" 598 610 599 #: admin.php:108 5611 #: admin.php:1089 600 612 msgid "help-design-2-en.jpg" 601 613 msgstr "" 602 614 603 #: admin.php:10 87615 #: admin.php:1091 604 616 msgid "The screenshot shows the sections from which you can import / export settings." 605 617 msgstr "" 606 618 607 #: admin.php:10 88619 #: admin.php:1092 608 620 msgid "help-import.jpg" 609 621 msgstr "" 610 622 611 #: admin.php:109 1623 #: admin.php:1095 612 624 msgid "Go to edit the product you need and open the tab shown in the screenshot." 613 625 msgstr "" 614 626 615 #: admin.php:109 2627 #: admin.php:1096 616 628 msgid "help-attr-en.jpg" 617 629 msgstr "" 618 630 619 #: admin.php:109 5631 #: admin.php:1099 620 632 msgid "You can combine shortcodes and static images for your attributes." 621 633 msgstr "" 622 634 623 #: admin.php:1 096635 #: admin.php:1100 624 636 msgid "help-attr-2en.jpg" 625 637 msgstr "" 626 638 627 #: admin.php:1 098639 #: admin.php:1102 628 640 msgid "Related products is a block of products that you can see in the product card under the main product. In most topics are selected automatically." 629 641 msgstr "" 630 642 631 #: admin.php:1 099643 #: admin.php:1103 632 644 msgid "Upsells are products that you have set in the \"Linked Products\" section in product settings." 633 645 msgstr "" 634 646 635 #: admin.php:110 0647 #: admin.php:1104 636 648 msgid "If the updated variables in your theme are not displaying correctly, try other priority values. The priority affects where the block with variables will be displayed. This is different for different themes." 637 649 msgstr "" 638 650 639 #: admin.php:110 1651 #: admin.php:1105 640 652 msgid "If this option is enabled after clicking the add to cart button in the product category, the user will be redirected to the cart page. Note. Some themes may ignore this option." 641 653 msgstr "" … … 669 681 msgstr "" 670 682 671 #: quasar-variable-attributes-main.php:25 2683 #: quasar-variable-attributes-main.php:254 672 684 msgid "The attribute list for variables is currently empty. If you have already added attributes for variables, refresh the page." 673 685 msgstr "" 674 686 675 #: quasar-variable-attributes-main.php:26 1687 #: quasar-variable-attributes-main.php:263 676 688 msgid "In this section you assign images to your attributes." 677 689 msgstr "" 678 690 679 #: quasar-variable-attributes-main.php:26 2691 #: quasar-variable-attributes-main.php:264 680 692 msgid "Note." 681 693 msgstr "" 682 694 683 #: quasar-variable-attributes-main.php:26 2695 #: quasar-variable-attributes-main.php:264 684 696 msgid "In the plugin settings you need to add this attribute and set the display type to \"Checkbox img\"" 685 697 msgstr "" 686 698 687 #: quasar-variable-attributes-main.php:26 2699 #: quasar-variable-attributes-main.php:264 688 700 msgid "/help-product.jpg" 689 701 msgstr "" 690 702 691 #: quasar-variable-attributes-main.php:27 2703 #: quasar-variable-attributes-main.php:274 692 704 msgid "You can only assign images to attributes in variable products." 693 705 msgstr "" 694 706 695 #: quasar-variable-attributes-main.php:27 6707 #: quasar-variable-attributes-main.php:278 696 708 msgid "If you have already set the product type - \"variable\" refresh the page." 697 709 msgstr "" -
quasar-variable-attributes/trunk/quasar-variable-attributes-main.php
r2751270 r2756088 4 4 Plugin URI: https://quasar-variable-attributes.quasar-form.com 5 5 Description: Make the choice of options in your variable products beautiful and convenient 6 Version: 1. 46 Version: 1.5 7 7 Author: nucleus_genius 8 8 … … 10 10 11 11 //v 12 define( 'quasar_variable_free_attributes_version', '1. 4' );12 define( 'quasar_variable_free_attributes_version', '1.5' ); 13 13 define( 'quasar_variable_free_attributes_url', plugins_url( '/', __FILE__ ) ); 14 14 15 15 // add button admin 16 16 function quasar_variable_free_attributes_main_addpanel() { 17 add_menu_page('Quasar-attributes -pro', 'Quasar Attr', 'manage_options', 'quasar-variable-attributes/admin.php', '', plugins_url( '/assets/img/icon2.png', __FILE__ ));17 add_menu_page('Quasar-attributes', 'Quasar Attr', 'manage_options', 'quasar-variable-attributes/admin.php', '', plugins_url( '/assets/img/icon2.png', __FILE__ )); 18 18 } 19 19 add_action('admin_menu', 'quasar_variable_free_attributes_main_addpanel' ); … … 72 72 73 73 74 75 74 //add media button script all page 76 75 function quasar_variable_free_attributes_button_script() { … … 209 208 } 210 209 add_action( 'woocommerce_admin_process_product_object', 'quasar_variable_free_attributes_product_object', 10, 1 ); 210 211 211 212 212 … … 369 369 $label_attribute = ''; 370 370 $original_name_attr =''; 371 // attribute string371 ///attribute string 372 372 foreach ( $variation_attribute as $key => $value ){ 373 373 $string_val = ''; … … 376 376 if ( taxonomy_exists($key) ){ 377 377 $original_name_attr = $key; 378 $name_attribute = explode('_', $key); 379 $name_attribute = array_pop($name_attribute); 380 $label_attribute = wc_attribute_label($key); 378 379 $label_attribute = explode('_', $key); 380 $label_attribute = array_pop($label_attribute); 381 $name_attribute = ''; 381 382 } 382 383 else { … … 390 391 $type = $quasar_attr_array_option[$label_attribute]['style']['data-style']; 391 392 $style_attr = $quasar_attr_array_option[$label_attribute]['style']; 392 } 393 $name_attribute = $quasar_attr_array_option[$label_attribute]['style']['name']; 394 } 395 else { 396 $name_attribute = wc_attribute_label($key); 397 } 398 399 393 400 394 401 //defoult value attr … … 406 413 //activ defoult 407 414 $number_condition = 0; 408 if ( $name_defoult_attr == $ name_attribute ){415 if ( $name_defoult_attr == $label_attribute ){ 409 416 $number_condition++; 410 417 } … … 412 419 //for space in name custom attr 413 420 $name_defoult_attr = str_replace( '-', ' ', $name_defoult_attr ); 414 if ( $name_defoult_attr == $ name_attribute ){421 if ( $name_defoult_attr == $label_attribute ){ 415 422 $number_condition++; 416 423 } … … 433 440 $id_number++; 434 441 //validation emty attr 435 $index = mb_strtolower($ name_attribute);442 $index = mb_strtolower($label_attribute); 436 443 $number_condition = 0; 437 444 if ( isset($array_empty_attr[$index]) ){ … … 443 450 if ( isset($array_empty_attr[$index]) ){ 444 451 $number_condition++; 452 $label_attribute = $index; 445 453 } 446 454 } … … 453 461 else {$label_val = $term->name;} 454 462 $val = urldecode($val); 455 if ( !isset($array_variable_param[$ name_attribute][$val]['prise']) ){ $array_variable_param[$name_attribute][$val]['prise'] = '';}456 if ( !isset($array_variable_param[$ name_attribute][$val]['prise-regular']) ){ $array_variable_param[$name_attribute][$val]['prise-regular'] = ''; }457 if ( !isset($array_variable_param[$ name_attribute][$val]['data-id']) ){ $array_variable_param[$name_attribute][$val]['data-id'] = ''; }458 if ( !isset($array_variable_param[$ name_attribute][$val]['data-img']) ){ $array_variable_param[$name_attribute][$val]['data-img'] = ''; }459 if ( !isset($array_variable_param[$ name_attribute][$val]['zavisemost_variable']) ){ $array_variable_param[$name_attribute][$val]['zavisemost_variable'] = ''; }463 if ( !isset($array_variable_param[$label_attribute][$val]['prise']) ){ $array_variable_param[$label_attribute][$val]['prise'] = '';} 464 if ( !isset($array_variable_param[$label_attribute][$val]['prise-regular']) ){ $array_variable_param[$label_attribute][$val]['prise-regular'] = ''; } 465 if ( !isset($array_variable_param[$label_attribute][$val]['data-id']) ){ $array_variable_param[$label_attribute][$val]['data-id'] = ''; } 466 if ( !isset($array_variable_param[$label_attribute][$val]['data-img']) ){ $array_variable_param[$label_attribute][$val]['data-img'] = ''; } 467 if ( !isset($array_variable_param[$label_attribute][$val]['zavisemost_variable']) ){ $array_variable_param[$label_attribute][$val]['zavisemost_variable'] = ''; } 460 468 461 469 if ( $type == '' ){ 462 $string_val.= '<option class="el-value-list-attr-q" data-prise="'.esc_attr( $array_variable_param[$ name_attribute][$val]['prise'] ).'" data-prise-regular="'.esc_attr( $array_variable_param[$name_attribute][$val]['prise-regular'] ).'" data-id="'.esc_attr( $array_variable_param[$name_attribute][$val]['data-id'] ).'" data-img="'.esc_attr( $array_variable_param[$name_attribute][$val]['data-img'] ).'" data-addiction="'.esc_attr( $array_variable_param[$name_attribute][$val]['zavisemost_variable'] ).'" data-name="'.esc_attr( $val ).'">'.esc_html( $label_val ).'</option>';470 $string_val.= '<option class="el-value-list-attr-q" data-prise="'.esc_attr( $array_variable_param[$label_attribute][$val]['prise'] ).'" data-prise-regular="'.esc_attr( $array_variable_param[$label_attribute][$val]['prise-regular'] ).'" data-id="'.esc_attr( $array_variable_param[$label_attribute][$val]['data-id'] ).'" data-img="'.esc_attr( $array_variable_param[$label_attribute][$val]['data-img'] ).'" data-addiction="'.esc_attr( $array_variable_param[$label_attribute][$val]['zavisemost_variable'] ).'" data-name="'.esc_attr( $val ).'" data-val-name="'.esc_attr( $label_val ).'">'.esc_html( $label_val ).'</option>'; 463 471 } 464 472 if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){ 465 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr, $label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'categoty',urldecode($val), $array_variable_param[$name_attribute][$val]['prise'],$array_variable_param[$name_attribute][$val]['data-id'], $array_variable_param[$name_attribute][$val]['data-img'],$array_variable_param[$name_attribute][$val]['zavisemost_variable'],$val,$array_variable_param[$name_attribute][$val]['prise-regular'] );473 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr, $label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'categoty',urldecode($val), $array_variable_param[$label_attribute][$val]['prise'],$array_variable_param[$label_attribute][$val]['data-id'], $array_variable_param[$label_attribute][$val]['data-img'],$array_variable_param[$label_attribute][$val]['zavisemost_variable'],$val,$array_variable_param[$label_attribute][$val]['prise-regular'] ); 466 474 } 467 475 } … … 474 482 else { $label_val = $val; } 475 483 476 if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-addiction="" >'.esc_html( $label_val ).'</option>'; }484 if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-addiction="" data-val-name="'.esc_attr( $label_val ).'" >'.esc_html( $label_val ).'</option>'; } 477 485 if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){ 478 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr, $label_attribute ,$label_val,$array_img, $id_number,$id_number_2,'categoty',urldecode($val));486 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr, $label_attribute ,$label_val,$array_img, $id_number,$id_number_2,'categoty',urldecode($val)); 479 487 } 480 488 } … … 489 497 else { $label_val = $val; } 490 498 491 if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data- addiction="">'.esc_html( $label_val ).'</option>'; }499 if ( $type == ''){ $string_val.= '<option class="el-value-list-attr-q" data-prise="" data-id="" data-name="" data-img="" data-val-name="'.esc_attr( $label_val).'" data-addiction="">'.esc_html( $label_val ).'</option>'; } 492 500 if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){ 493 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr,$label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'categoty',urldecode($val));501 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr,$label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'categoty',urldecode($val)); 494 502 } 495 503 } … … 509 517 if ( $type == ''){ 510 518 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 511 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';512 $string_attribute.= '<div class="wrap-select-defoult wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'"><div class="block-select-q"><select><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>';519 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 520 $string_attribute.= '<div class="wrap-select-defoult wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'"><div class="block-select-q"><select><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>'; 513 521 $string_attribute.= '</div>'; 514 522 } … … 516 524 if ( $type == 'checkbox' ){ 517 525 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 518 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';519 $string_attribute.= '<div class="wrap-checkbox-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>';526 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 527 $string_attribute.= '<div class="wrap-checkbox-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 520 528 $string_attribute.= '</div>'; 521 529 } … … 523 531 if ( $type == 'color' ){ 524 532 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 525 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';526 $string_attribute.= '<div class="wrap-checkbox-attr-q color-style-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>';533 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 534 $string_attribute.= '<div class="wrap-checkbox-attr-q color-style-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 527 535 $string_attribute.= '</div>'; 528 536 } … … 530 538 if ( $type == 'html' ){ 531 539 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 532 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';533 $string_attribute.= '<div class="wrap-html-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>';540 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 541 $string_attribute.= '<div class="wrap-html-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 534 542 $string_attribute.= '</div>'; 535 543 } … … 537 545 if ( $type == 'checkboximg' ){ 538 546 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 539 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';540 $string_attribute.= '<div class="wrap-html-attr-q img-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>';547 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 548 $string_attribute.= '<div class="wrap-html-attr-q img-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 541 549 $string_attribute.= '</div>'; 542 550 } … … 548 556 549 557 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr-c'] ).'">'; 550 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';551 $string_attribute.= '<div class="wrap-select-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'"><div class="block-select-q"><span class="st-for-select" style="border-color:'.esc_attr( $style_attr['font-color'] ).'"></span><select style="'.esc_attr( $style_1 ).'"><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>';558 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 559 $string_attribute.= '<div class="wrap-select-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'" data-original-name="'.esc_attr( urlencode($original_name_attr) ).'"><div class="block-select-q"><span class="st-for-select" style="border-color:'.esc_attr( $style_attr['font-color'] ).'"></span><select style="'.esc_attr( $style_1 ).'"><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>'; 552 560 $string_attribute.= '</div>'; 553 561 … … 686 694 foreach ( $variation_attribute as $key => $value ){ 687 695 $string_val = ''; 696 $type = ''; 697 //array 688 698 if ( taxonomy_exists($key) ){ 689 $name_attribute = explode('_', $key); 690 $name_attribute = array_pop($name_attribute); 691 $label_attribute = wc_attribute_label($key); 699 $original_name_attr = $key; 700 701 $label_attribute = explode('_', $key); 702 $label_attribute = array_pop($label_attribute); 703 $name_attribute = ''; 692 704 } 693 705 else { 694 //custom attribute695 $name_attribute = $key;706 $original_name_attr = $key; 707 $name_attribute = mb_strtolower($key); 696 708 $label_attribute = $key; 697 709 } 698 $type = '';710 if ( !isset($quasar_attr_array_option) ){$quasar_attr_array_option = [];} 699 711 //search attr from array base 700 if ( !isset($quasar_attr_array_option) ){ $quasar_attr_array_option = []; }701 712 if ( array_key_exists($label_attribute, $quasar_attr_array_option) ){ 702 713 $type = $quasar_attr_array_option[$label_attribute]['style']['data-style']; 703 714 $style_attr = $quasar_attr_array_option[$label_attribute]['style']; 704 } 715 $name_attribute = $quasar_attr_array_option[$label_attribute]['style']['name']; 716 } 717 else { 718 $name_attribute = wc_attribute_label($key); 719 } 720 705 721 706 722 //defoult value attr … … 718 734 //activ defoult 719 735 $number_condition = 0; 720 if ( $name_defoult_attr == $ name_attribute ){736 if ( $name_defoult_attr == $label_attribute ){ 721 737 $number_condition++; 722 738 } … … 724 740 //for space in name custom attr 725 741 $name_defoult_attr = str_replace( '-', ' ', $name_defoult_attr ); 726 if ( $name_defoult_attr == mb_strtolower($ name_attribute) ){742 if ( $name_defoult_attr == mb_strtolower($label_attribute) ){ 727 743 $number_condition++; 728 744 } … … 743 759 $array_img = []; 744 760 }; 761 745 762 //array attribute value 746 763 foreach ( $value as $val ){ … … 764 781 } 765 782 if ( $type == 'checkbox' || $type == 'color' || $type == 'html' || $type == 'dropdown' || $type == 'checkboximg' ){ 766 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr,$label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'cart',urldecode($val));783 $string_val.= quasar_variable_free_attr_create_value($type, $style_attr,$label_attribute ,$label_val,$array_img,$id_number,$id_number_2,'cart',urldecode($val)); 767 784 } 768 785 … … 773 790 if ( $type == ''){ 774 791 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 775 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';776 $string_attribute.= '<div class="wrap-select-defoult wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'"><div class="block-select-q"><select><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>';792 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 793 $string_attribute.= '<div class="wrap-select-defoult wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'"><div class="block-select-q"><select><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>'; 777 794 $string_attribute.= '</div>'; 778 795 } … … 780 797 if ( $type == 'checkbox' ){ 781 798 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 782 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';783 $string_attribute.= '<div class="wrap-checkbox-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>';799 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 800 $string_attribute.= '<div class="wrap-checkbox-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 784 801 $string_attribute.= '</div>'; 785 802 } … … 787 804 if ( $type == 'color' ){ 788 805 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 789 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';790 $string_attribute.= '<div class="wrap-checkbox-attr-q color-style-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>';806 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 807 $string_attribute.= '<div class="wrap-checkbox-attr-q color-style-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 791 808 $string_attribute.= '</div>'; 792 809 } … … 794 811 if ( $type == 'html' ){ 795 812 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 796 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';797 $string_attribute.= '<div class="wrap-html-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>';813 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 814 $string_attribute.= '<div class="wrap-html-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 798 815 $string_attribute.= '</div>'; 799 816 } … … 801 818 if ( $type == 'checkboximg' ){ 802 819 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 803 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';804 $string_attribute.= '<div class="wrap-html-attr-q img-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>';820 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 821 $string_attribute.= '<div class="wrap-html-attr-q img-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'">'.wp_specialchars_decode( $string_val ).'</div>'; 805 822 $string_attribute.= '</div>'; 806 823 } … … 812 829 813 830 $string_attribute.= '<div class="wrap-section-attr-q" style="'.esc_attr( 'margin-bottom:'.$quasar_attr_array_setting['setting']['style']['margin-m-attr'] ).'">'; 814 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $ label_attribute).'</div>';815 $string_attribute.= '<div class="wrap-select-attr-q wrap-element-attr-q" data-label="'.esc_attr( $ label_attribute ).'" data-name="'.esc_attr( $name_attribute ).'"><div class="block-select-q"><span class="st-for-select" style="border-color:'.esc_attr( $style_attr['font-color'] ).'"></span><select style="'.esc_attr( $style_1 ).'"><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>';831 $string_attribute.= '<div class="name-attr-q" data-defoult="'.esc_attr( $defoult_attr ).'" style="'.esc_attr( $style_name ).'">'.esc_html( $name_attribute ).'</div>'; 832 $string_attribute.= '<div class="wrap-select-attr-q wrap-element-attr-q" data-label="'.esc_attr( $name_attribute ).'" data-name="'.esc_attr( $label_attribute ).'"><div class="block-select-q"><span class="st-for-select" style="border-color:'.esc_attr( $style_attr['font-color'] ).'"></span><select style="'.esc_attr( $style_1 ).'"><option class="el-value-list-attr-q defoult-op" data-prise="" data-id="" data-name="" data-img="" data-addiction="">'.esc_html( $quasar_attr_array_setting['setting']['localization']['loc-choose-option'] ).'</option>'. wp_specialchars_decode( $string_val ) .'</select></div></div>'; 816 833 $string_attribute.= '</div>'; 817 834 … … 830 847 $padding = explode(';', $quasar_attr_array_setting['setting']['style']['padding'] ); 831 848 //block 832 return '<div class="'.esc_attr( $class ).'" style="'.esc_attr( 'max-width:'.$quasar_attr_array_setting['setting']['style']['max-width-v-cart'].'; padding-left:'.$padding['0'].';padding-right:'.$padding['1'].';padding-top:'.$padding['2'].';padding-bottom:'. $padding['3'] ).'" data-id="'.esc_attr( $product->get_id() ).'"><div class="variable-attr-block-q">'.wp_specialchars_decode( $string_attribute ).'</div> </div>';849 return '<div class="'.esc_attr( $class ).'" style="'.esc_attr( 'max-width:'.$quasar_attr_array_setting['setting']['style']['max-width-v-cart'].'; padding-left:'.$padding['0'].';padding-right:'.$padding['1'].';padding-top:'.$padding['2'].';padding-bottom:'. $padding['3'] ).'" data-id="'.esc_attr( $product->get_id() ).'"><div class="variable-attr-block-q">'.wp_specialchars_decode( $string_attribute ).'</div> <div class="variable-not-found" data-text="'.esc_attr( $quasar_attr_array_setting['setting']['localization']['loc-option-not-available'] ).'" data></div> </div>'; 833 850 } 834 851 } … … 855 872 856 873 874 857 875 //checkbox style 858 if ( $type == 'checkbox' || $type == 'checkboximg' ){876 if ( $type == 'checkbox' || $type == 'checkboximg' ){ 859 877 860 878 if ( $target != 'categoty' ){ … … 914 932 $string_val.= '<option class="el-value-list-attr-q" data-prise="'.esc_attr( $prise ).'" data-prise-regular="'.esc_attr( $regular_price ).'" data-id="'.esc_attr( $id ).'" data-img="'.esc_attr( $img ).'" data-addiction="'.esc_attr( $zavisimost ).'" data-name="'.esc_attr( $name ).'" data-val-name="'.esc_attr( $name_val ).'" style="'.esc_attr( $style_1 ).'">'.esc_html( $label_val ).'</option>'; 915 933 } 934 916 935 917 936 return $string_val; … … 1102 1121 ); 1103 1122 } 1104 -
quasar-variable-attributes/trunk/readme.txt
r2751270 r2756088 1 === Quasar form - add-on for WooCommerce===1 === Quasar Variable Attributes === 2 2 Contributors: nucleusgenius 3 Donate link: https://quasar- form.com/4 Tags: buy one click WooCommerce, WooCommerce form3 Donate link: https://quasar-variable-attributes.quasar-form.com 4 Tags: Variable Product Attributes, WooCommerce form, Improved Variable Product Attributes, WooCommerce variable, 5 5 Requires at least: 4.8 6 Tested up to: 5.97 Stable tag: 1. 06 Tested up to: 6.0 7 Stable tag: 1.4 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Allows you to use forms from the Quasar Form plugin as quick order forms in Woocommerce12 The Quasar Variable Attributes plugin will allow you to create a more complex and beautiful selection of options in a variable product. 13 13 14 14 == Description == 15 15 16 Allows you to use forms from the Quasar Form plugin as quick order forms in Woocommerce. This addon works according to the following algorithm. In the main settings. You select the form created in the Quasar Form plugin. Then you connect the fields of this form with the woccomerce order fields so that the form data appears in the order. 16 The Quasar Variable Attributes plugin will allow you to create a more complex and beautiful selection of options in a variable product. You will be able to display a selection of variations in variable products in the catalog and archives. 17 18 Individual setting of each attribute. Full control over the design, you customize the design of each individual attribute for the product card and categories. You can also customize block design with variables. 19 20 The main feature of this plugin is the ability to set unique images for variable attributes in each product. 17 21 18 22 19 23 ### Features 20 24 21 1. Responsive forms 22 2. 100% design customization 23 3. Translation-ready 25 1) 4 types of attribute display 26 2) Design customization 27 3) The ability to display a selection of variations in categories and archives 28 4) The ability to display the quantity field in categories and archives 29 5) Responsiveness settings 24 30 25 31 … … 33 39 34 40 35
Note: See TracChangeset
for help on using the changeset viewer.