Changeset 3482857
- Timestamp:
- 03/15/2026 03:25:03 AM (13 days ago)
- Location:
- wpc-variations-table
- Files:
-
- 76 added
- 11 edited
-
tags/3.8.3 (added)
-
tags/3.8.3/assets (added)
-
tags/3.8.3/assets/css (added)
-
tags/3.8.3/assets/css/backend.css (added)
-
tags/3.8.3/assets/css/frontend.css (added)
-
tags/3.8.3/assets/css/frontend.css.map (added)
-
tags/3.8.3/assets/css/frontend.scss (added)
-
tags/3.8.3/assets/js (added)
-
tags/3.8.3/assets/js/backend.js (added)
-
tags/3.8.3/assets/js/frontend.js (added)
-
tags/3.8.3/assets/libs (added)
-
tags/3.8.3/assets/libs/datatables (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22 (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.bootstrap.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.bootstrap.min.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.bootstrap4.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.bootstrap4.min.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.foundation.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.foundation.min.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.jqueryui.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.jqueryui.min.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.semanticui.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/dataTables.semanticui.min.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/jquery.dataTables.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/css/jquery.dataTables.min.css (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/images (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/images/sort_asc.png (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/images/sort_asc_disabled.png (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/images/sort_both.png (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/images/sort_desc.png (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/images/sort_desc_disabled.png (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.bootstrap.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.bootstrap.min.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.bootstrap4.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.bootstrap4.min.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.foundation.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.foundation.min.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.jqueryui.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.jqueryui.min.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.semanticui.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/dataTables.semanticui.min.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/jquery.dataTables.js (added)
-
tags/3.8.3/assets/libs/datatables/DataTables-1.10.22/js/jquery.dataTables.min.js (added)
-
tags/3.8.3/assets/libs/datatables/datatables.css (added)
-
tags/3.8.3/assets/libs/datatables/datatables.js (added)
-
tags/3.8.3/assets/libs/datatables/datatables.min.css (added)
-
tags/3.8.3/assets/libs/datatables/datatables.min.js (added)
-
tags/3.8.3/includes (added)
-
tags/3.8.3/includes/dashboard (added)
-
tags/3.8.3/includes/dashboard/css (added)
-
tags/3.8.3/includes/dashboard/css/dashboard.css (added)
-
tags/3.8.3/includes/dashboard/css/dashboard.css.map (added)
-
tags/3.8.3/includes/dashboard/css/dashboard.scss (added)
-
tags/3.8.3/includes/dashboard/images (added)
-
tags/3.8.3/includes/dashboard/images/wpc-icon.svg (added)
-
tags/3.8.3/includes/dashboard/js (added)
-
tags/3.8.3/includes/dashboard/js/backend.js (added)
-
tags/3.8.3/includes/dashboard/wpc-dashboard.php (added)
-
tags/3.8.3/includes/hpos.php (added)
-
tags/3.8.3/includes/kit (added)
-
tags/3.8.3/includes/kit/css (added)
-
tags/3.8.3/includes/kit/css/backend.css (added)
-
tags/3.8.3/includes/kit/js (added)
-
tags/3.8.3/includes/kit/js/backend.js (added)
-
tags/3.8.3/includes/kit/wpc-kit.php (added)
-
tags/3.8.3/includes/log (added)
-
tags/3.8.3/includes/log/wpc-log.php (added)
-
tags/3.8.3/index.php (added)
-
tags/3.8.3/languages (added)
-
tags/3.8.3/languages/wpc-variations-table.pot (added)
-
tags/3.8.3/readme.txt (added)
-
tags/3.8.3/wpc-variations-table.php (added)
-
trunk/assets/css/frontend.css (modified) (1 diff)
-
trunk/assets/css/frontend.css.map (modified) (1 diff)
-
trunk/assets/css/frontend.scss (modified) (1 diff)
-
trunk/assets/js/frontend.js (modified) (1 diff)
-
trunk/includes/dashboard/css/dashboard.css (modified) (3 diffs)
-
trunk/includes/dashboard/css/dashboard.css.map (modified) (1 diff)
-
trunk/includes/dashboard/css/dashboard.scss (modified) (3 diffs)
-
trunk/includes/dashboard/wpc-dashboard.php (modified) (3 diffs)
-
trunk/includes/log (added)
-
trunk/includes/log/wpc-log.php (added)
-
trunk/languages/wpc-variations-table.pot (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpc-variations-table.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpc-variations-table/trunk/assets/css/frontend.css
r3066989 r3482857 1 1 /* Hide default variations */ 2 2 body.wpcvt-active .variations_form, .wpcvt-variations + .variations_form, .wpcvt-wrap + .variations_form, .wpcvt-hide-variations-form + .variations_form { 3 display: none !important;3 display: none !important; 4 4 } 5 5 6 6 .wpcvt-variations { 7 padding-top: 5px;8 padding-bottom: 5px;9 max-height: 400px;10 overflow-y: auto;7 padding-top: 5px; 8 padding-bottom: 5px; 9 max-height: 400px; 10 overflow-y: auto; 11 11 } 12 13 12 .wpcvt-variations .wpcvt-variation { 14 display: flex; 15 align-items: center; 16 justify-content: space-between; 17 margin-left: -10px; 18 margin-right: -10px; 13 display: flex; 14 align-items: center; 15 justify-content: space-between; 16 margin-left: -10px; 17 margin-right: -10px; 18 box-sizing: border-box; 19 width: 100%; 19 20 } 20 21 21 .wpcvt-variations .wpcvt-variation:hover { 22 background-color: #f9f9f9;22 background-color: #f9f9f9; 23 23 } 24 25 24 .wpcvt-variations .wpcvt-variation > div { 26 padding: 10px;25 padding: 10px; 27 26 } 28 29 27 .wpcvt-variations .wpcvt-variation .wpcvt-variation-image { 30 width: 100px;31 flex: 0 0 100px;32 position: relative;28 width: 100px; 29 flex: 0 0 100px; 30 position: relative; 33 31 } 34 35 32 .wpcvt-variations .wpcvt-variation .wpcvt-variation-image img { 36 width: 100%;37 height: auto;38 max-width: 100%;39 display: block;33 width: 100%; 34 height: auto; 35 max-width: 100%; 36 display: block; 40 37 } 41 42 38 .wpcvt-variations .wpcvt-variation .wpcvt-variation-info { 43 flex-grow: 1;39 flex-grow: 1; 44 40 } 45 46 41 .wpcvt-variations .wpcvt-variation .wpcvt-variation-info .wpcvt-variation-name { 47 font-weight: 700;42 font-weight: 700; 48 43 } 49 50 44 .wpcvt-variations .wpcvt-variation .wpcvt-variation-info .wpcvt-variation-name p { 51 margin-bottom: 0;52 font-size: 12px;45 margin-bottom: 0; 46 font-size: 12px; 53 47 } 54 55 48 .wpcvt-variations .wpcvt-variation .wpcvt-variation-info .wpcvt-variation-availability { 56 display: inline-block;57 margin-right: 10px;58 font-size: 14px;49 display: inline-block; 50 margin-right: 10px; 51 font-size: 14px; 59 52 } 60 61 53 .wpcvt-variations .wpcvt-variation .wpcvt-variation-info .wpcvt-variation-availability p { 62 margin-bottom: 0;54 margin-bottom: 0; 63 55 } 64 65 56 .wpcvt-variations .wpcvt-variation .wpcvt-variation-info .wpcvt-variation-price { 66 display: inline-block;67 margin-right: 10px;68 font-size: 14px;57 display: inline-block; 58 margin-right: 10px; 59 font-size: 14px; 69 60 } 70 71 61 .wpcvt-variations .wpcvt-variation .wpcvt-variation-info .wpcvt-variation-description { 72 font-size: 14px;62 font-size: 14px; 73 63 } 74 75 64 .wpcvt-variations .wpcvt-variation .wpcvt-variation-actions form { 76 margin: 0 !important;77 padding: 0 !important;65 margin: 0 !important; 66 padding: 0 !important; 78 67 } 79 80 68 .wpcvt-variations .wpcvt-variation[data-purchasable=no] .wpcvt-quantity { 81 display: none;69 display: none; 82 70 } 83 84 71 .wpcvt-variations .wpcvt-variation[data-images=yes] .wpcvt-variation-image:before { 85 content: "";86 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg fill='%23ffffff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' id='multiple-image'%3E%3Cpath d='M18,15V5a3,3,0,0,0-3-3H5A3,3,0,0,0,2,5V15a3,3,0,0,0,3,3H15A3,3,0,0,0,18,15ZM4,5A1,1,0,0,1,5,4H15a1,1,0,0,1,1,1V9.36L14.92,8.27a2.56,2.56,0,0,0-1.81-.75h0a2.58,2.58,0,0,0-1.81.75l-.91.91-.81-.81a2.93,2.93,0,0,0-4.11,0L4,9.85Zm.12,10.45A.94.94,0,0,1,4,15V12.67L6.88,9.79a.91.91,0,0,1,1.29,0L9,10.6Zm8.6-5.76a.52.52,0,0,1,.39-.17h0a.52.52,0,0,1,.39.17L16,12.18V15a1,1,0,0,1-1,1H6.4ZM21,6a1,1,0,0,0-1,1V17a3,3,0,0,1-3,3H7a1,1,0,0,0,0,2H17a5,5,0,0,0,5-5V7A1,1,0,0,0,21,6Z'%3E%3C/path%3E%3C/svg%3E");87 background-repeat: no-repeat;88 background-size: 16px;89 background-position: center;90 background-color: rgba(0, 0, 0, 0.3);91 display: block;92 width: 28px;93 height: 28px;94 border-radius: 4px;95 position: absolute;96 top: 15px;97 left: 15px;72 content: ""; 73 background-image: url("data:image/svg+xml;charset=utf8,%3Csvg fill='%23ffffff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' id='multiple-image'%3E%3Cpath d='M18,15V5a3,3,0,0,0-3-3H5A3,3,0,0,0,2,5V15a3,3,0,0,0,3,3H15A3,3,0,0,0,18,15ZM4,5A1,1,0,0,1,5,4H15a1,1,0,0,1,1,1V9.36L14.92,8.27a2.56,2.56,0,0,0-1.81-.75h0a2.58,2.58,0,0,0-1.81.75l-.91.91-.81-.81a2.93,2.93,0,0,0-4.11,0L4,9.85Zm.12,10.45A.94.94,0,0,1,4,15V12.67L6.88,9.79a.91.91,0,0,1,1.29,0L9,10.6Zm8.6-5.76a.52.52,0,0,1,.39-.17h0a.52.52,0,0,1,.39.17L16,12.18V15a1,1,0,0,1-1,1H6.4ZM21,6a1,1,0,0,0-1,1V17a3,3,0,0,1-3,3H7a1,1,0,0,0,0,2H17a5,5,0,0,0,5-5V7A1,1,0,0,0,21,6Z'%3E%3C/path%3E%3C/svg%3E"); 74 background-repeat: no-repeat; 75 background-size: 16px; 76 background-position: center; 77 background-color: rgba(0, 0, 0, 0.3); 78 display: block; 79 width: 28px; 80 height: 28px; 81 border-radius: 4px; 82 position: absolute; 83 top: 15px; 84 left: 15px; 98 85 } 99 100 86 .wpcvt-variations .wpcvt-variation[data-atc=no] .wpcvt-variation-actions { 101 display: none;87 display: none; 102 88 } 103 104 89 .wpcvt-variations .wpcvt-variation[data-atc=each] .wpcvt-variation-actions { 105 width: 200px;106 flex: 0 0 200px;90 width: 200px; 91 flex: 0 0 200px; 107 92 } 108 93 109 94 .wpcvt-wrap .dataTables_length select { 110 min-width: 70px;95 min-width: 70px; 111 96 } 112 97 113 98 .wpcvt-variations-table tr td { 114 vertical-align: middle;115 border-bottom: 1px dashed #ddd;99 vertical-align: middle; 100 border-bottom: 1px dashed #ddd; 116 101 } 117 118 102 .wpcvt-variations-table .wpcvt-variation:hover td { 119 background-color: #f9f9f9;103 background-color: #f9f9f9; 120 104 } 121 122 105 .wpcvt-variations-table .wpcvt-variation .wpcvt-variation-image { 123 width: 90px;106 width: 90px; 124 107 } 125 126 108 .wpcvt-variations-table .wpcvt-variation .wpcvt-variation-image img { 127 width: 100%;128 height: auto;109 width: 100%; 110 height: auto; 129 111 } 130 112 131 113 .wpcvt-actions { 132 margin-top: 10px;114 margin-top: 10px; 133 115 } 134 135 116 .wpcvt-actions button { 136 margin: 0 !important;117 margin: 0 !important; 137 118 } 138 119 139 120 @media only screen and (max-width: 767px) { 140 .wpcvt-variations .wpcvt-variation {141 flex-direction: column;142 text-align: center;143 }121 .wpcvt-variations .wpcvt-variation { 122 flex-direction: column; 123 text-align: center; 124 } 144 125 } 145 126 -
wpc-variations-table/trunk/assets/css/frontend.css.map
r3066989 r3482857 1 {"version":3,"sourceRoot":"","sources":["frontend.scss"],"names":[],"mappings":"AAAA;AACA;EACE;;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA; ;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAIJ;EACE;;AAEA;EACE;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;;AAIJ;EACE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;;AAOF;EACE;;;AAOF;EACE;EACA;;AAMA;EACE;;AAIJ;EACE;;AAEA;EACE;EACA;;;AAMR;EACE;;AAEA;EACE;;;AAIJ;EACE;IACE;IACA","file":"frontend.css"}1 {"version":3,"sourceRoot":"","sources":["frontend.scss"],"names":[],"mappings":"AAAA;AACA;EACE;;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAIJ;EACE;;AAEA;EACE;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;;AAIJ;EACE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;;AAOF;EACE;;;AAOF;EACE;EACA;;AAMA;EACE;;AAIJ;EACE;;AAEA;EACE;EACA;;;AAMR;EACE;;AAEA;EACE;;;AAIJ;EACE;IACE;IACA","file":"frontend.css"} -
wpc-variations-table/trunk/assets/css/frontend.scss
r3066989 r3482857 16 16 margin-left: -10px; 17 17 margin-right: -10px; 18 box-sizing: border-box; 19 width: 100%; 18 20 19 21 &:hover { -
wpc-variations-table/trunk/assets/js/frontend.js
r3188190 r3482857 1 1 'use strict'; 2 2 3 (function($) { 4 if (typeof wc_add_to_cart_params === 'undefined') { 5 var wc_add_to_cart_params = wpcvt_vars; 6 } 7 8 $(function() { 9 if (!$('.wpcvt-wrap').length) { 10 return; 3 (function ($) { 4 if (typeof wc_add_to_cart_params === 'undefined') { 5 var wc_add_to_cart_params = wpcvt_vars; 11 6 } 12 7 13 $( '.wpcvt-wrap').each(function() {14 wpcvt_init($(this));15 });16 });8 $(function () { 9 if (!$('.wpcvt-wrap').length) { 10 return; 11 } 17 12 18 $(document).on('change keyup mouseup', '.wpcvt-qty', function() { 19 let $wrap = $(this).closest('.wpcvt-wrap'); 20 21 wpcvt_init($wrap); 22 }); 23 24 $(document).on('click touch', '.wpcvt_atc_btn', function() { 25 let $btn = $(this); 26 let $wrap = $btn.closest('.wpcvt-wrap'); 27 let data = {}; 28 let variations = []; 29 30 $(document.body). 31 trigger('wpcvt_adding_to_cart', [$btn]); 32 $(document.body).trigger('adding_to_cart', [$btn]); 33 34 $wrap.find('.wpcvt-variation[data-purchasable="yes"]').each(function() { 35 let variation = {}; 36 let id = parseInt($(this).data('id')); 37 let pid = parseInt($(this).data('pid')); 38 let qty = parseFloat($(this).find('.wpcvt-qty').val()); 39 40 if (id > 0 && pid > 0 && qty > 0) { 41 variation.id = id; 42 variation.pid = pid; 43 variation.qty = qty; 44 variation.attrs = $(this).data('attrs'); 45 46 variations.push(variation); 47 } 13 $('.wpcvt-wrap').each(function () { 14 wpcvt_init($(this)); 15 }); 48 16 }); 49 17 50 if (variations.length) { 51 data.action = 'wpcvt_add_to_cart'; 52 data.variations = variations; 53 data.nonce = wpcvt_vars.nonce; 18 $(document).on('change keyup mouseup', '.wpcvt-qty', function () { 19 let $wrap = $(this).closest('.wpcvt-wrap'); 54 20 55 $btn.removeClass('added').addClass('loading'); 21 wpcvt_init($wrap); 22 }); 56 23 57 $.post(wpcvt_vars.wc_ajax_url.toString(). 58 replace('%%endpoint%%', 'wpcvt_add_to_cart'), data, 59 function(response) { 60 if (!response) { 61 return; 24 $(document).on('click touch', '.wpcvt_atc_btn', function () { 25 let $btn = $(this); 26 let $wrap = $btn.closest('.wpcvt-wrap'); 27 let data = {}; 28 let variations = []; 29 30 $(document.body).trigger('wpcvt_adding_to_cart', [$btn]); 31 $(document.body).trigger('adding_to_cart', [$btn]); 32 33 $wrap.find('.wpcvt-variation[data-purchasable="yes"]').each(function () { 34 let variation = {}; 35 let id = parseInt($(this).data('id')); 36 let pid = parseInt($(this).data('pid')); 37 let qty = parseFloat($(this).find('.wpcvt-qty').val()); 38 39 if (id > 0 && pid > 0 && qty > 0) { 40 variation.id = id; 41 variation.pid = pid; 42 variation.qty = qty; 43 variation.attrs = $(this).data('attrs'); 44 45 variations.push(variation); 46 } 47 }); 48 49 if (variations.length) { 50 data.action = 'wpcvt_add_to_cart'; 51 data.variations = variations; 52 data.nonce = wpcvt_vars.nonce; 53 54 if ($wrap.find('input[name="woobt_ids"]').length) { 55 data.woobt_ids = $wrap.find('input[name="woobt_ids"]').val(); 62 56 } 63 57 64 if (response.error && response.product_url) { 65 window.location = response.product_url; 66 return; 58 $btn.removeClass('added').addClass('loading'); 59 60 $.post(wpcvt_vars.wc_ajax_url.toString().replace('%%endpoint%%', 'wpcvt_add_to_cart'), data, function (response) { 61 if (!response) { 62 return; 63 } 64 65 if (response.error && response.product_url) { 66 window.location = response.product_url; 67 return; 68 } 69 70 // Redirect to cart option 71 if (wc_add_to_cart_params.cart_redirect_after_add === 'yes') { 72 window.location = wc_add_to_cart_params.cart_url; 73 return; 74 } 75 76 $btn.removeClass('loading'); 77 78 // Trigger event so themes can refresh other areas. 79 $(document.body).trigger('added_to_cart', [response.fragments, response.cart_hash, $btn]); 80 $(document.body).trigger('wpcvt_added_to_cart', [response.fragments, response.cart_hash, $btn]); 81 }); 82 } 83 }); 84 85 function wpcvt_init($wrap) { 86 if ($wrap.find('.wpcvt-variations-table:not(.wpcvt-variations-table-initialized)').length) { 87 $wrap.find('.wpcvt-variations-table:not(.wpcvt-variations-table-initialized)').addClass('wpcvt-variations-table-initialized').DataTable(JSON.parse(wpcvt_vars.datatable_params)); 88 } 89 90 if ($wrap.find('.wpcvt-actions').length) { 91 // save qty 92 let qty = 0; 93 94 $wrap.find('.wpcvt-variation[data-purchasable="yes"]').each(function () { 95 qty += parseFloat($(this).find('.wpcvt-qty').val()); 96 }); 97 98 $wrap.find('.wpcvt_atc_count').html(qty); 99 100 if (qty > 0) { 101 $wrap.find('.wpcvt_atc_btn').removeClass('disabled wpcvt_atc_btn_disabled'); 102 } else { 103 $wrap.find('.wpcvt_atc_btn').addClass('disabled wpcvt_atc_btn_disabled'); 67 104 } 105 } 68 106 69 // Redirect to cart option 70 if (wc_add_to_cart_params.cart_redirect_after_add === 'yes') { 71 window.location = wc_add_to_cart_params.cart_url; 72 return; 73 } 74 75 $btn.removeClass('loading'); 76 77 // Trigger event so themes can refresh other areas. 78 $(document.body). 79 trigger('added_to_cart', [ 80 response.fragments, response.cart_hash, $btn]); 81 $(document.body). 82 trigger('wpcvt_added_to_cart', [ 83 response.fragments, response.cart_hash, $btn]); 84 }); 107 jQuery(document).trigger('wpcvt_init', [$wrap]); 85 108 } 86 });87 88 function wpcvt_init($wrap) {89 if ($wrap.find(90 '.wpcvt-variations-table:not(.wpcvt-variations-table-initialized)').length) {91 $wrap.find(92 '.wpcvt-variations-table:not(.wpcvt-variations-table-initialized)').93 addClass('wpcvt-variations-table-initialized').94 DataTable(JSON.parse(wpcvt_vars.datatable_params));95 }96 97 if ($wrap.find('.wpcvt-actions').length) {98 // save qty99 let qty = 0;100 101 $wrap.find('.wpcvt-variation[data-purchasable="yes"]').each(function() {102 qty += parseFloat($(this).find('.wpcvt-qty').val());103 });104 105 $wrap.find('.wpcvt_atc_count').html(qty);106 107 if (qty > 0) {108 $wrap.find('.wpcvt_atc_btn').109 removeClass('disabled wpcvt_atc_btn_disabled');110 } else {111 $wrap.find('.wpcvt_atc_btn').112 addClass('disabled wpcvt_atc_btn_disabled');113 }114 }115 116 jQuery(document).trigger('wpcvt_init', [$wrap]);117 }118 109 })(jQuery); -
wpc-variations-table/trunk/includes/dashboard/css/dashboard.css
r3398623 r3482857 287 287 } 288 288 289 .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_submit { 290 display: flex; 291 align-items: center; 292 } 293 294 .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpc-last-saved { 295 font-weight: 400; 296 font-size: 12px; 297 color: #999; 298 margin-left: 10px; 299 display: flex; 300 align-items: center; 301 } 302 303 .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpc-last-saved .dashicons { 304 font-size: 15px; 305 width: 15px; 306 height: 15px; 307 margin-right: 5px; 308 color: #22c55e; 309 } 310 289 311 .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_export { 290 312 position: absolute; … … 293 315 transform: translateY(-50%); 294 316 font-weight: 400; 317 } 318 319 #wpclever_export .wpclever_export_data { 320 width: 100%; 321 font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; 322 font-size: 12.5px; 323 line-height: 20px; 324 padding: 0 12px; 325 background-image: repeating-linear-gradient(to bottom, #ffffff 0px, #ffffff 20px, #fafafa 20px, #fafafa 40px); 326 background-attachment: local; 327 resize: vertical; 328 box-sizing: border-box; 329 outline: none; 295 330 } 296 331 … … 462 497 border-left: none; 463 498 border-right: 4px solid #23282d; 499 } 500 501 body.rtl .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_export { 502 left: 20px; 503 right: auto; 464 504 } 465 505 -
wpc-variations-table/trunk/includes/dashboard/css/dashboard.css.map
r3398623 r3482857 1 {"version":3,"sourceRoot":"","sources":["dashboard.scss"],"names":[],"mappings":";AAAA;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAEA;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;IACE;IACA;IACA;IACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;EACA;EACA;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA; EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA","file":"dashboard.css"}1 {"version":3,"sourceRoot":"","sources":["dashboard.scss"],"names":[],"mappings":";AAAA;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAEA;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;IACE;IACA;IACA;IACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;EACA;EACA;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EAOA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;AAEA;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA","file":"dashboard.css"} -
wpc-variations-table/trunk/includes/dashboard/css/dashboard.scss
r3398623 r3482857 299 299 } 300 300 301 .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_submit { 302 display: flex; 303 align-items: center; 304 } 305 306 .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpc-last-saved { 307 font-weight: 400; 308 font-size: 12px; 309 color: #999; 310 margin-left: 10px; 311 display: flex; 312 align-items: center; 313 } 314 315 .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpc-last-saved .dashicons { 316 font-size: 15px; 317 width: 15px; 318 height: 15px; 319 margin-right: 5px; 320 color: #22c55e; 321 } 322 301 323 .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_export { 302 324 position: absolute; … … 305 327 transform: translateY(-50%); 306 328 font-weight: 400; 329 } 330 331 #wpclever_export .wpclever_export_data { 332 width: 100%; 333 font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; 334 font-size: 12.5px; 335 line-height: 20px; 336 padding: 0 12px; 337 background-image: repeating-linear-gradient( 338 to bottom, 339 #ffffff 0px, 340 #ffffff 20px, 341 #fafafa 20px, 342 #fafafa 40px 343 ); 344 background-attachment: local; 345 resize: vertical; 346 box-sizing: border-box; 347 outline: none; 307 348 } 308 349 … … 478 519 border-left: none; 479 520 border-right: 4px solid #23282d; 521 } 522 523 body.rtl .wpclever_settings_page .wpclever_settings_page_content table tr.submit .wpclever_export { 524 left: 20px; 525 right: auto; 480 526 } 481 527 -
wpc-variations-table/trunk/includes/dashboard/wpc-dashboard.php
r3398623 r3482857 1 1 <?php 2 2 defined( 'ABSPATH' ) || exit; 3 4 if ( ! class_exists( 'WPCleverMenu' ) ) {5 class WPCleverMenu {6 function __construct() {7 // do nothing, moved to WPCleverDashboard8 }9 }10 11 new WPCleverMenu();12 }13 3 14 4 if ( ! class_exists( 'WPCleverDashboard' ) ) { … … 232 222 233 223 if ( ! empty( $key ) && ( $settings = get_option( $key ) ) ) { 224 unset( $settings['_last_saved'] ); 225 unset( $settings['_last_saved_by'] ); 226 234 227 echo '<textarea class="wpclever_export_data" id="wpclever_export_data" style="width: 100%; height: 200px; margin-bottom: 10px;" data-key="' . esc_attr( $key ) . '">' . esc_textarea( wp_json_encode( $settings, JSON_PRETTY_PRINT ) ) . '</textarea>'; 235 228 echo '<div style="display: flex; align-items: center"><button class="button button-primary wpclever_import" data-key="' . esc_attr( $key ) . '">Update</button>'; … … 265 258 new WPCleverDashboard(); 266 259 } 260 261 if ( ! function_exists( 'wpc_last_saved' ) ) { 262 function wpc_last_saved( $settings ) { 263 $last_saved = isset( $settings['_last_saved'] ) ? (int) $settings['_last_saved'] : 0; 264 265 if ( $last_saved ) { 266 $time_diff = human_time_diff( $last_saved, current_time( 'timestamp' ) ); 267 $time_full = date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $last_saved ); 268 269 // Who saved it 270 $saved_by_id = isset( $settings['_last_saved_by'] ) ? (int) $settings['_last_saved_by'] : 0; 271 $saved_by_name = ''; 272 273 if ( $saved_by_id ) { 274 $user = get_userdata( $saved_by_id ); 275 276 if ( $user ) { 277 $saved_by_name = $user->display_name; 278 } 279 } 280 281 $by_text = $saved_by_name ? ' ' . sprintf( 'by %s', esc_html( $saved_by_name ) ) : ''; 282 283 echo '<span class="wpc-last-saved" title="' . esc_attr( $time_full ) . '"><span class="dashicons dashicons-saved"></span> ' 284 . sprintf( 285 'Saved %1$s ago', 286 esc_html( $time_diff ) 287 ) 288 . $by_text 289 . '</span>'; 290 } 291 } 292 } -
wpc-variations-table/trunk/languages/wpc-variations-table.pot
r3398623 r3482857 1 # Copyright (C) 202 5WPClever1 # Copyright (C) 2026 WPClever 2 2 # This file is distributed under the GPLv2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WPC Variations Table for WooCommerce 3.8. 2\n"5 "Project-Id-Version: WPC Variations Table for WooCommerce 3.8.3\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpc-variations-table\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 5-11-19T08:16:42+00:00\n"12 "POT-Creation-Date: 2026-03-15T03:22:34+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 40 40 msgstr "" 41 41 42 #: wpc-variations-table.php:14 742 #: wpc-variations-table.php:149 43 43 msgid "No data available in table" 44 44 msgstr "" 45 45 46 #: wpc-variations-table.php:1 4846 #: wpc-variations-table.php:150 47 47 msgid "Showing _START_ to _END_ of _TOTAL_ entries" 48 48 msgstr "" 49 49 50 #: wpc-variations-table.php:1 4950 #: wpc-variations-table.php:151 51 51 msgid "Showing 0 to 0 of 0 entries" 52 52 msgstr "" 53 53 54 #: wpc-variations-table.php:15 054 #: wpc-variations-table.php:152 55 55 msgid "(filtered from _MAX_ total entries)" 56 56 msgstr "" 57 57 58 #: wpc-variations-table.php:15 258 #: wpc-variations-table.php:154 59 59 msgid "," 60 60 msgstr "" 61 61 62 #: wpc-variations-table.php:15 362 #: wpc-variations-table.php:155 63 63 msgid "Show _MENU_ entries" 64 64 msgstr "" 65 65 66 #: wpc-variations-table.php:15 466 #: wpc-variations-table.php:156 67 67 msgid "Loading..." 68 68 msgstr "" 69 69 70 #: wpc-variations-table.php:15 570 #: wpc-variations-table.php:157 71 71 msgid "Processing..." 72 72 msgstr "" 73 73 74 #: wpc-variations-table.php:15 674 #: wpc-variations-table.php:158 75 75 msgid "Search:" 76 76 msgstr "" 77 77 78 #: wpc-variations-table.php:15 778 #: wpc-variations-table.php:159 79 79 msgid "No matching records found" 80 80 msgstr "" 81 81 82 #: wpc-variations-table.php:1 5982 #: wpc-variations-table.php:161 83 83 msgid "First" 84 84 msgstr "" 85 85 86 #: wpc-variations-table.php:16 086 #: wpc-variations-table.php:162 87 87 msgid "Last" 88 88 msgstr "" 89 89 90 #: wpc-variations-table.php:16 190 #: wpc-variations-table.php:163 91 91 msgid "Next" 92 92 msgstr "" 93 93 94 #: wpc-variations-table.php:16 294 #: wpc-variations-table.php:164 95 95 msgid "Previous" 96 96 msgstr "" 97 97 98 #: wpc-variations-table.php:16 598 #: wpc-variations-table.php:167 99 99 msgid ": activate to sort column ascending" 100 100 msgstr "" 101 101 102 #: wpc-variations-table.php:16 6102 #: wpc-variations-table.php:168 103 103 msgid ": activate to sort column descending" 104 104 msgstr "" 105 105 106 #: wpc-variations-table.php:2 30107 #: wpc-variations-table.php:2 45108 #: wpc-variations-table.php:10 11106 #: wpc-variations-table.php:241 107 #: wpc-variations-table.php:256 108 #: wpc-variations-table.php:1031 109 109 msgid "WPC Variations Table" 110 110 msgstr "" 111 111 112 #: wpc-variations-table.php:2 30113 #: wpc-variations-table.php:9 30112 #: wpc-variations-table.php:241 113 #: wpc-variations-table.php:950 114 114 msgid "Variations Table" 115 115 msgstr "" 116 116 117 #: wpc-variations-table.php:2 45117 #: wpc-variations-table.php:256 118 118 msgid "Premium" 119 119 msgstr "" 120 120 121 121 #. translators: stars 122 #: wpc-variations-table.php:2 48122 #: wpc-variations-table.php:259 123 123 #, php-format 124 124 msgid "Thank you for using our plugin! If you are satisfied, please reward it a full five-star %s rating." 125 125 msgstr "" 126 126 127 #: wpc-variations-table.php:2 51127 #: wpc-variations-table.php:262 128 128 msgid "Reviews" 129 129 msgstr "" 130 130 131 #: wpc-variations-table.php:2 54131 #: wpc-variations-table.php:265 132 132 msgid "Changelog" 133 133 msgstr "" 134 134 135 #: wpc-variations-table.php:2 57135 #: wpc-variations-table.php:268 136 136 msgid "Discussion" 137 137 msgstr "" 138 138 139 #: wpc-variations-table.php:2 65139 #: wpc-variations-table.php:276 140 140 msgid "Settings updated." 141 141 msgstr "" 142 142 143 #: wpc-variations-table.php:2 72144 #: wpc-variations-table.php:8 69143 #: wpc-variations-table.php:283 144 #: wpc-variations-table.php:889 145 145 msgid "Settings" 146 146 msgstr "" 147 147 148 #: wpc-variations-table.php:2 76148 #: wpc-variations-table.php:287 149 149 msgid "Localization" 150 150 msgstr "" 151 151 152 #: wpc-variations-table.php:2 81153 #: wpc-variations-table.php:8 70152 #: wpc-variations-table.php:292 153 #: wpc-variations-table.php:890 154 154 msgid "Premium Version" 155 155 msgstr "" 156 156 157 #: wpc-variations-table.php:2 85157 #: wpc-variations-table.php:296 158 158 msgid "Essential Kit" 159 159 msgstr "" 160 160 161 #: wpc-variations-table.php:3 12162 #: wpc-variations-table.php:9 64161 #: wpc-variations-table.php:323 162 #: wpc-variations-table.php:984 163 163 msgid "Active" 164 164 msgstr "" 165 165 166 #: wpc-variations-table.php:316 167 #: wpc-variations-table.php:357 168 #: wpc-variations-table.php:397 166 #: wpc-variations-table.php:327 167 #: wpc-variations-table.php:368 169 168 #: wpc-variations-table.php:408 170 #: wpc-variations-table.php:4 26169 #: wpc-variations-table.php:419 171 170 #: wpc-variations-table.php:437 172 171 #: wpc-variations-table.php:448 173 172 #: wpc-variations-table.php:459 174 173 #: wpc-variations-table.php:470 175 #: wpc-variations-table.php:976 174 #: wpc-variations-table.php:481 175 #: wpc-variations-table.php:996 176 176 msgid "No" 177 177 msgstr "" 178 178 179 #: wpc-variations-table.php:317 180 #: wpc-variations-table.php:358 181 #: wpc-variations-table.php:398 182 #: wpc-variations-table.php:407 183 #: wpc-variations-table.php:436 179 #: wpc-variations-table.php:328 180 #: wpc-variations-table.php:369 181 #: wpc-variations-table.php:409 182 #: wpc-variations-table.php:418 184 183 #: wpc-variations-table.php:447 185 184 #: wpc-variations-table.php:458 186 185 #: wpc-variations-table.php:469 186 #: wpc-variations-table.php:480 187 187 msgid "Yes" 188 188 msgstr "" 189 189 190 #: wpc-variations-table.php:3 19190 #: wpc-variations-table.php:330 191 191 msgid "This is the default status, you can set status for individual product in the its settings." 192 192 msgstr "" 193 193 194 #: wpc-variations-table.php:3 24194 #: wpc-variations-table.php:335 195 195 msgid "Position" 196 196 msgstr "" 197 197 198 #: wpc-variations-table.php:3 28198 #: wpc-variations-table.php:339 199 199 msgid "Replace the add to cart form" 200 200 msgstr "" 201 201 202 #: wpc-variations-table.php:3 29202 #: wpc-variations-table.php:340 203 203 msgid "Under the title" 204 204 msgstr "" 205 205 206 #: wpc-variations-table.php:3 30206 #: wpc-variations-table.php:341 207 207 msgid "Under the price" 208 208 msgstr "" 209 209 210 #: wpc-variations-table.php:3 31210 #: wpc-variations-table.php:342 211 211 msgid "Under the excerpt" 212 212 msgstr "" 213 213 214 #: wpc-variations-table.php:3 32214 #: wpc-variations-table.php:343 215 215 msgid "Under the meta" 216 216 msgstr "" 217 217 218 #: wpc-variations-table.php:3 33218 #: wpc-variations-table.php:344 219 219 msgid "Under the sharing" 220 220 msgstr "" 221 221 222 #: wpc-variations-table.php:3 34222 #: wpc-variations-table.php:345 223 223 msgid "None (hide it)" 224 224 msgstr "" 225 225 226 #: wpc-variations-table.php:3 36226 #: wpc-variations-table.php:347 227 227 msgid "Choose the position to show the variations table on single product page. You also can use shortcode [wpcvt] to place it where you want." 228 228 msgstr "" 229 229 230 #: wpc-variations-table.php:3 41230 #: wpc-variations-table.php:352 231 231 msgid "Layout" 232 232 msgstr "" 233 233 234 #: wpc-variations-table.php:3 45234 #: wpc-variations-table.php:356 235 235 msgid "Simple" 236 236 msgstr "" 237 237 238 #: wpc-variations-table.php:3 46239 #: wpc-variations-table.php:5 72238 #: wpc-variations-table.php:357 239 #: wpc-variations-table.php:592 240 240 msgid "DataTables" 241 241 msgstr "" 242 242 243 #: wpc-variations-table.php:3 48243 #: wpc-variations-table.php:359 244 244 msgid "DataTables supports pagination and filter results by text search. Read more about it here: https://datatables.net/reference/option/language" 245 245 msgstr "" 246 246 247 #: wpc-variations-table.php:3 53247 #: wpc-variations-table.php:364 248 248 msgid "Hide unpurchasable variation" 249 249 msgstr "" 250 250 251 #: wpc-variations-table.php:3 63251 #: wpc-variations-table.php:374 252 252 msgid "Order by" 253 253 msgstr "" 254 254 255 #: wpc-variations-table.php:3 66256 #: wpc-variations-table.php:3 76257 #: wpc-variations-table.php:9 70255 #: wpc-variations-table.php:377 256 #: wpc-variations-table.php:387 257 #: wpc-variations-table.php:990 258 258 msgid "Default" 259 259 msgstr "" 260 260 261 #: wpc-variations-table.php:3 67262 #: wpc-variations-table.php:5 47263 #: wpc-variations-table.php:5 54264 #: wpc-variations-table.php:12 22261 #: wpc-variations-table.php:378 262 #: wpc-variations-table.php:567 263 #: wpc-variations-table.php:574 264 #: wpc-variations-table.php:1242 265 265 msgid "Name" 266 266 msgstr "" 267 267 268 #: wpc-variations-table.php:3 68268 #: wpc-variations-table.php:379 269 269 msgid "Price" 270 270 msgstr "" 271 271 272 #: wpc-variations-table.php:3 73272 #: wpc-variations-table.php:384 273 273 msgid "Order" 274 274 msgstr "" 275 275 276 #: wpc-variations-table.php:3 77276 #: wpc-variations-table.php:388 277 277 msgid "ASC" 278 278 msgstr "" 279 279 280 #: wpc-variations-table.php:3 78280 #: wpc-variations-table.php:389 281 281 msgid "DESC" 282 282 msgstr "" 283 283 284 #: wpc-variations-table.php:3 83284 #: wpc-variations-table.php:394 285 285 msgid "Variation name" 286 286 msgstr "" 287 287 288 #: wpc-variations-table.php:3 86288 #: wpc-variations-table.php:397 289 289 msgid "Formatted without attribute label (e.g Green, M)" 290 290 msgstr "" 291 291 292 #: wpc-variations-table.php:3 87292 #: wpc-variations-table.php:398 293 293 msgid "Formatted with attribute label (e.g Color: Green, Size: M)" 294 294 msgstr "" 295 295 296 #: wpc-variations-table.php: 393296 #: wpc-variations-table.php:404 297 297 msgid "Include product name" 298 298 msgstr "" 299 299 300 #: wpc-variations-table.php:4 00300 #: wpc-variations-table.php:411 301 301 msgid "Include the product name before variation name." 302 302 msgstr "" 303 303 304 #: wpc-variations-table.php:4 04304 #: wpc-variations-table.php:415 305 305 msgid "Open quick view popup" 306 306 msgstr "" 307 307 308 #: wpc-variations-table.php:4 20308 #: wpc-variations-table.php:431 309 309 msgid "Show add to cart button" 310 310 msgstr "" 311 311 312 #: wpc-variations-table.php:4 24312 #: wpc-variations-table.php:435 313 313 msgid "Yes, for each variation" 314 314 msgstr "" 315 315 316 #: wpc-variations-table.php:4 25316 #: wpc-variations-table.php:436 317 317 msgid "Yes, for all variations" 318 318 msgstr "" 319 319 320 #: wpc-variations-table.php:4 32320 #: wpc-variations-table.php:443 321 321 msgid "Show image" 322 322 msgstr "" 323 323 324 #: wpc-variations-table.php:4 43324 #: wpc-variations-table.php:454 325 325 msgid "Show price" 326 326 msgstr "" 327 327 328 #: wpc-variations-table.php:4 54328 #: wpc-variations-table.php:465 329 329 msgid "Show availability" 330 330 msgstr "" 331 331 332 #: wpc-variations-table.php:4 65332 #: wpc-variations-table.php:476 333 333 msgid "Show description" 334 334 msgstr "" 335 335 336 #: wpc-variations-table.php:4 76336 #: wpc-variations-table.php:487 337 337 msgid "Before text" 338 338 msgstr "" 339 339 340 #: wpc-variations-table.php:4 83340 #: wpc-variations-table.php:494 341 341 msgid "Default text before variations table." 342 342 msgstr "" 343 343 344 #: wpc-variations-table.php:4 88344 #: wpc-variations-table.php:499 345 345 msgid "After text" 346 346 msgstr "" 347 347 348 #: wpc-variations-table.php: 495348 #: wpc-variations-table.php:506 349 349 msgid "Default text after variations table." 350 350 msgstr "" 351 351 352 #: wpc-variations-table.php:5 04353 #: wpc-variations-table.php:8 17352 #: wpc-variations-table.php:524 353 #: wpc-variations-table.php:837 354 354 msgid "import / export" 355 355 msgstr "" 356 356 357 #: wpc-variations-table.php:5 13357 #: wpc-variations-table.php:533 358 358 msgid "General" 359 359 msgstr "" 360 360 361 #: wpc-variations-table.php:5 15361 #: wpc-variations-table.php:535 362 362 msgid "Leave blank to use the default text and its equivalent translation in multiple languages." 363 363 msgstr "" 364 364 365 #: wpc-variations-table.php:5 20365 #: wpc-variations-table.php:540 366 366 msgid "Add all to cart" 367 367 msgstr "" 368 368 369 369 #. translators: count 370 #: wpc-variations-table.php:5 28371 #: wpc-variations-table.php:1 493370 #: wpc-variations-table.php:548 371 #: wpc-variations-table.php:1513 372 372 #, php-format 373 373 msgid "Add all to cart (%s)" 374 374 msgstr "" 375 375 376 #: wpc-variations-table.php:5 34377 #: wpc-variations-table.php:5 41378 #: wpc-variations-table.php:12 19376 #: wpc-variations-table.php:554 377 #: wpc-variations-table.php:561 378 #: wpc-variations-table.php:1239 379 379 msgid "Image" 380 380 msgstr "" 381 381 382 #: wpc-variations-table.php:5 60383 #: wpc-variations-table.php:5 67384 #: wpc-variations-table.php:12 23382 #: wpc-variations-table.php:580 383 #: wpc-variations-table.php:587 384 #: wpc-variations-table.php:1243 385 385 msgid "Action" 386 386 msgstr "" 387 387 388 #: wpc-variations-table.php:5 74388 #: wpc-variations-table.php:594 389 389 msgid "Read more about the below strings here https://datatables.net/reference/option/language" 390 390 msgstr "" 391 391 392 #: wpc-variations-table.php:5 79392 #: wpc-variations-table.php:599 393 393 msgid "decimal" 394 394 msgstr "" 395 395 396 #: wpc-variations-table.php: 592396 #: wpc-variations-table.php:612 397 397 msgid "emptyTable" 398 398 msgstr "" 399 399 400 #: wpc-variations-table.php:6 05400 #: wpc-variations-table.php:625 401 401 msgid "info" 402 402 msgstr "" 403 403 404 #: wpc-variations-table.php:6 18404 #: wpc-variations-table.php:638 405 405 msgid "infoEmpty" 406 406 msgstr "" 407 407 408 #: wpc-variations-table.php:6 31408 #: wpc-variations-table.php:651 409 409 msgid "infoFiltered" 410 410 msgstr "" 411 411 412 #: wpc-variations-table.php:6 44412 #: wpc-variations-table.php:664 413 413 msgid "infoPostFix" 414 414 msgstr "" 415 415 416 #: wpc-variations-table.php:6 57416 #: wpc-variations-table.php:677 417 417 msgid "thousands" 418 418 msgstr "" 419 419 420 #: wpc-variations-table.php:6 70420 #: wpc-variations-table.php:690 421 421 msgid "lengthMenu" 422 422 msgstr "" 423 423 424 #: wpc-variations-table.php: 683424 #: wpc-variations-table.php:703 425 425 msgid "loadingRecords" 426 426 msgstr "" 427 427 428 #: wpc-variations-table.php: 696428 #: wpc-variations-table.php:716 429 429 msgid "processing" 430 430 msgstr "" 431 431 432 #: wpc-variations-table.php:7 09432 #: wpc-variations-table.php:729 433 433 msgid "search" 434 434 msgstr "" 435 435 436 #: wpc-variations-table.php:7 22436 #: wpc-variations-table.php:742 437 437 msgid "zeroRecords" 438 438 msgstr "" 439 439 440 #: wpc-variations-table.php:7 35440 #: wpc-variations-table.php:755 441 441 msgid "paginate:first" 442 442 msgstr "" 443 443 444 #: wpc-variations-table.php:7 48444 #: wpc-variations-table.php:768 445 445 msgid "paginate:last" 446 446 msgstr "" 447 447 448 #: wpc-variations-table.php:7 61448 #: wpc-variations-table.php:781 449 449 msgid "paginate:next" 450 450 msgstr "" 451 451 452 #: wpc-variations-table.php:7 74452 #: wpc-variations-table.php:794 453 453 msgid "paginate:previous" 454 454 msgstr "" 455 455 456 #: wpc-variations-table.php: 787456 #: wpc-variations-table.php:807 457 457 msgid "aria:sortAscending" 458 458 msgstr "" 459 459 460 #: wpc-variations-table.php:8 00460 #: wpc-variations-table.php:820 461 461 msgid "aria:sortDescending" 462 462 msgstr "" 463 463 464 #: wpc-variations-table.php: 886464 #: wpc-variations-table.php:906 465 465 msgid "Community support" 466 466 msgstr "" 467 467 468 #: wpc-variations-table.php:9 00468 #: wpc-variations-table.php:920 469 469 msgid "Add to Variation" 470 470 msgstr "" 471 471 472 #: wpc-variations-table.php:9 01472 #: wpc-variations-table.php:921 473 473 msgid "Custom Image" 474 474 msgstr "" 475 475 476 #: wpc-variations-table.php:9 02477 #: wpc-variations-table.php:10 25476 #: wpc-variations-table.php:922 477 #: wpc-variations-table.php:1045 478 478 msgid "Remove" 479 479 msgstr "" 480 480 481 #: wpc-variations-table.php:9 54481 #: wpc-variations-table.php:974 482 482 msgid "Product wasn't returned." 483 483 msgstr "" 484 484 485 #: wpc-variations-table.php:9 72485 #: wpc-variations-table.php:992 486 486 msgid "settings" 487 487 msgstr "" 488 488 489 #: wpc-variations-table.php: 981489 #: wpc-variations-table.php:1001 490 490 msgid "Yes (Overwrite)" 491 491 msgstr "" 492 492 493 #: wpc-variations-table.php:10 15493 #: wpc-variations-table.php:1035 494 494 msgid "Custom name" 495 495 msgstr "" 496 496 497 #: wpc-variations-table.php:10 20497 #: wpc-variations-table.php:1040 498 498 msgid "Custom image" 499 499 msgstr "" 500 500 501 #: wpc-variations-table.php:10 30501 #: wpc-variations-table.php:1050 502 502 msgid "Choose Image" 503 503 msgstr "" 504 504 505 #: wpc-variations-table.php:10 35505 #: wpc-variations-table.php:1055 506 506 msgid "- OR - Custom image URL" 507 507 msgstr "" 508 508 509 #: wpc-variations-table.php:1 684509 #: wpc-variations-table.php:1704 510 510 msgid "Before variations wrap" 511 511 msgstr "" 512 512 513 #: wpc-variations-table.php:1 685513 #: wpc-variations-table.php:1705 514 514 msgid "After variations wrap" 515 515 msgstr "" 516 516 517 #: wpc-variations-table.php:1 686517 #: wpc-variations-table.php:1706 518 518 msgid "Before variations list" 519 519 msgstr "" 520 520 521 #: wpc-variations-table.php:1 687521 #: wpc-variations-table.php:1707 522 522 msgid "After variations list" 523 523 msgstr "" 524 524 525 #: wpc-variations-table.php:1 688525 #: wpc-variations-table.php:1708 526 526 msgid "Before variation" 527 527 msgstr "" 528 528 529 #: wpc-variations-table.php:1 689529 #: wpc-variations-table.php:1709 530 530 msgid "After variation" 531 531 msgstr "" 532 532 533 #: wpc-variations-table.php:1 690533 #: wpc-variations-table.php:1710 534 534 msgid "Before variation info" 535 535 msgstr "" 536 536 537 #: wpc-variations-table.php:1 691537 #: wpc-variations-table.php:1711 538 538 msgid "After variation info" 539 539 msgstr "" 540 540 541 #: wpc-variations-table.php:1 692541 #: wpc-variations-table.php:1712 542 542 msgid "Before variation actions" 543 543 msgstr "" 544 544 545 #: wpc-variations-table.php:1 693545 #: wpc-variations-table.php:1713 546 546 msgid "After variation actions" 547 547 msgstr "" -
wpc-variations-table/trunk/readme.txt
r3398623 r3482857 3 3 Donate link: https://wpclever.net 4 4 Tags: woocommerce, wpc, variation table, variation 5 Tested up to: 6. 86 Version: 3.8. 27 Stable tag: 3.8. 25 Tested up to: 6.9 6 Version: 3.8.3 7 Stable tag: 3.8.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 63 63 == Changelog == 64 64 65 = 3.8.3 = 66 * Fixed: Minor JS/CSS issues in the backend 67 * Updated: Compatible with WP 6.9 & Woo 10.6 68 65 69 = 3.8.2 = 66 70 * Added: Import/export settings -
wpc-variations-table/trunk/wpc-variations-table.php
r3398623 r3482857 4 4 * Plugin URI: https://wpclever.net/ 5 5 * Description: WPC Variations Table will replace dropdown selects with a beautiful table. 6 * Version: 3.8. 26 * Version: 3.8.3 7 7 * Author: WPClever 8 8 * Author URI: https://wpclever.net … … 11 11 * Requires Plugins: woocommerce 12 12 * Requires at least: 4.0 13 * Tested up to: 6. 813 * Tested up to: 6.9 14 14 * WC requires at least: 3.0 15 * WC tested up to: 10. 315 * WC tested up to: 10.6 16 16 * License: GPLv2 or later 17 17 * License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 20 20 defined( 'ABSPATH' ) || exit; 21 21 22 ! defined( 'WPCVT_VERSION' ) && define( 'WPCVT_VERSION', '3.8. 2' );22 ! defined( 'WPCVT_VERSION' ) && define( 'WPCVT_VERSION', '3.8.3' ); 23 23 ! defined( 'WPCVT_LITE' ) && define( 'WPCVT_LITE', __FILE__ ); 24 24 ! defined( 'WPCVT_FILE' ) && define( 'WPCVT_FILE', __FILE__ ); … … 31 31 ! defined( 'WPC_URI' ) && define( 'WPC_URI', WPCVT_URI ); 32 32 33 include 'includes/log/wpc-log.php'; 33 34 include 'includes/dashboard/wpc-dashboard.php'; 34 35 include 'includes/kit/wpc-kit.php'; … … 69 70 // settings page 70 71 add_action( 'admin_init', [ $this, 'register_settings' ] ); 72 add_filter( 'pre_update_option', [ $this, 'last_saved' ], 10, 2 ); 71 73 add_action( 'admin_menu', [ $this, 'admin_menu' ] ); 72 74 … … 225 227 'sanitize_callback' => [ $this, 'sanitize_array' ], 226 228 ] ); 229 } 230 231 function last_saved( $value, $option ) { 232 if ( $option == 'wpcvt_settings' || $option == 'wpcvt_localization' ) { 233 $value['_last_saved'] = current_time( 'timestamp' ); 234 $value['_last_saved_by'] = get_current_user_id(); 235 } 236 237 return $value; 227 238 } 228 239 … … 498 509 <tr class="submit"> 499 510 <th colspan="2"> 500 <?php settings_fields( 'wpcvt_settings' ); ?><?php submit_button(); ?> 511 <div class="wpclever_submit"> 512 <?php 513 settings_fields( 'wpcvt_settings' ); 514 submit_button( '', 'primary', 'submit', false ); 515 516 if ( function_exists( 'wpc_last_saved' ) ) { 517 wpc_last_saved( self::get_settings() ); 518 } 519 ?> 520 </div> 501 521 <a style="display: none;" class="wpclever_export" 502 522 data-key="wpcvt_settings" … … 1156 1176 } 1157 1177 1158 if ( $product_attrs[ $k ]->is_taxonomy() ) {1178 if ( isset( $product_attrs[ $k ] ) && $product_attrs[ $k ]->is_taxonomy() ) { 1159 1179 foreach ( $product_attrs[ $k ]->get_terms() as $term ) { 1160 1180 $attrs[ 'attribute_' . $k ][] = $term->slug;
Note: See TracChangeset
for help on using the changeset viewer.