Version Description
Download this release
Release Info
Developer | digitalchild |
Plugin | WC Vendors |
Version | 2.2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.2.3
- assets/css/wcv-admin.css +0 -2
- assets/css/wcv-admin.min.css +1 -1
- assets/css/wcv-admin.scss +0 -15
- changelog.txt +10 -0
- class-wc-vendors.php +7 -7
- classes/admin/class-admin-reports.php +6 -6
- classes/admin/class-product-meta.php +2 -2
- classes/admin/views/html-admin-page-extensions.php +1 -1
- classes/includes/wcv-template-functions.php +20 -3
- languages/wc-vendors.pot +14 -14
- readme.txt +19 -9
- templates/emails/vendor-order-details.php +3 -2
assets/css/wcv-admin.css
CHANGED
@@ -4,8 +4,6 @@
|
|
4 |
|
5 |
.bulk-edit-product .post_author { display: none; }
|
6 |
|
7 |
-
.update-plugins .update-count { background-color: #d54e21; border-radius: 10px; color: #fff; display: inline-block; font-size: 9px; font-weight: 600; line-height: 17px; margin: 1px 0 0 2px; padding: 0 6px; vertical-align: text-top; }
|
8 |
-
|
9 |
.wcv_addons_wrap { max-width: 1200px; margin: auto; /*Carousel*/ }
|
10 |
|
11 |
.wcv_addons_wrap h1.search-form-title { clear: left; padding: 0; }
|
4 |
|
5 |
.bulk-edit-product .post_author { display: none; }
|
6 |
|
|
|
|
|
7 |
.wcv_addons_wrap { max-width: 1200px; margin: auto; /*Carousel*/ }
|
8 |
|
9 |
.wcv_addons_wrap h1.search-form-title { clear: left; padding: 0; }
|
assets/css/wcv-admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.column-vendor{width:10%}.bulk-edit-product .inline-edit-author{display:none}.bulk-edit-product .post_author{display:none}.update-plugins .update-count{background-color:#d54e21;border-radius:10px;color:#fff;display:inline-block;font-size:9px;font-weight:600;line-height:17px;margin:1px 0 0 2px;padding:0 6px;vertical-align:text-top}.wcv_addons_wrap{max-width:1200px;margin:auto}.wcv_addons_wrap h1.search-form-title{clear:left;padding:0}.wcv_addons_wrap h1{text-align:center}.wcv_addons_wrap .addons-featured{margin:0}.wcv_addons_wrap ul.feature-list{list-style:inherit}.wcv_addons_wrap ul.feature-list li{margin-left:20px}.wcv_addons_wrap ul.subsubsub.subsubsub{margin:-2px 0 12px}.wcv_addons_wrap .subsubsub li::after{content:'|'}.wcv_addons_wrap .subsubsub li:last-child::after{content:''}.wcv_addons_wrap .align-center{text-align:center}.wcv_addons_wrap .wcv-logo{max-width:250px;padding-top:20px;display:block;margin-left:auto;margin-right:auto;width:50%}.wcv_addons_wrap .addons-banner-block-item-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:#fff;height:100px}.wcv_addons_wrap .addons-column-block-item-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:#f7f7f7;border:1px solid #e6e6e6;height:100px;margin:0 10px 10px 0;width:100px}.wcv_addons_wrap .addons-banner-block{background:#fff;border:1px solid #ddd;margin:0 0 1em 0;padding:2em 2em 1em}.wcv_addons_wrap .addons-banner-block img{height:62px}.wcv_addons_wrap .addons-banner-block p{margin:0 0 20px}.wcv_addons_wrap .addons-wcs-banner-block{background:#fff;border:1px solid #ddd;margin:0 0 1em 0;padding:2em 2em 1em;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wcv_addons_wrap .addons-banner-block-items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around;margin:0 -10px 0 -10px}.wcv_addons_wrap .addons-banner-block-item{border:1px solid #e6e6e6;border-radius:3px;-webkit-box-flex:1;-ms-flex:1;flex:1;margin:1em;min-width:200px;width:30%;display:none}.wcv_addons_wrap .addons-banner-block-item:nth-child(-n+3){display:block}.wcv_addons_wrap .addons-banner-block-item-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:24px}.wcv_addons_wrap .addons-banner-block-item-content h3{margin-top:0}.wcv_addons_wrap .addons-banner-block-item-content p{margin:0 0 auto}.wcv_addons_wrap .addons-wcs-banner-block-image{background:#f7f7f7;border:1px solid #e6e6e6;margin-right:2em;width:400px;padding:1em;text-align:center}.wcv_addons_wrap .addons-wcs-banner-block-image .addons-img{margin:auto 0;max-height:350px;max-width:350px}.wcv_addons_wrap .addons-shipping-methods .addons-wcs-banner-block{margin-left:0;margin-right:0;margin-top:1em}.wcv_addons_wrap .addons-wcs-banner-block-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-item-align:stretch;align-self:stretch;padding:1em 0}.wcv_addons_wrap .addons-wcs-banner-block-content h1{padding-bottom:0}.wcv_addons_wrap .addons-wcs-banner-block-content p{margin-bottom:0;text-align:center}.wcv_addons_wrap .addons-wcs-banner-block-content .wcs-service-logo{max-width:40px}.wcv_addons_wrap .addons-column-section{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}.wcv_addons_wrap .addons-column{-webkit-box-flex:1;-ms-flex:1;flex:1;width:50%;padding:0 .5em}.wcv_addons_wrap .addons-column:nth-child(2){margin-right:0}.wcv_addons_wrap .addons-small-light-block{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #ddd;margin:0 0 1em;padding:20px;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.wcv_addons_wrap .addons-small-light-block h1{margin-top:-12px}.wcv_addons_wrap .addons-small-light-block p{margin-top:0}.wcv_addons_wrap .addons-small-light-block img{height:225px;margin:0 0 0 -20px}.wcv_addons_wrap .addons-small-dark-block{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #ddd;margin:0 0 1em;padding:20px;background-color:#54687d;text-align:center}.wcv_addons_wrap .addons-small-dark-block h1{color:#fff}.wcv_addons_wrap .addons-small-dark-block p{color:#fafafa}.wcv_addons_wrap .addons-column-block{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #ddd;margin:0 0 1em;padding:20px;background:#fff}.wcv_addons_wrap .addons-column-block img{max-height:50px;max-width:50px}.wcv_addons_wrap .addons-column-block .wcv-columns{padding-top:20px}.wcv_addons_wrap .addons-column-block .wcv-columns table{border-collapse:collapse;border-spacing:0;width:70%;border:1px solid #ddd;margin-top:20px;margin:auto}.wcv_addons_wrap .addons-column-block .wcv-columns td,.wcv_addons_wrap .addons-column-block .wcv-columns th{text-align:center;padding:16px}.wcv_addons_wrap .addons-column-block .wcv-columns td:first-child,.wcv_addons_wrap .addons-column-block .wcv-columns th:first-child{text-align:left}.wcv_addons_wrap .addons-column-block .wcv-columns tr:nth-child(even){background-color:#f2f2f2}.wcv_addons_wrap .addons-column-block .wcv-columns .fa-check{color:green}.wcv_addons_wrap .addons-column-block .wcv-columns .fa-remove{color:red}.wcv_addons_wrap .addons-column-block-left{float:left}.wcv_addons_wrap .addons-column-block-right{float:right}.wcv_addons_wrap .addons-column-block-item{border-top:2px solid #f9f9f9;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0 -20px;padding:20px;display:none}.wcv_addons_wrap .addons-column-block-item:nth-of-type(-n+3){display:-webkit-box;display:-ms-flexbox;display:flex}.wcv_addons_wrap .addons-column-block-item-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-wrap:wrap;flex-wrap:wrap;height:20%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;min-width:200px}.wcv_addons_wrap .addons-column-block-item-content h2{float:left;margin-top:8px}.wcv_addons_wrap .addons-column-block-item-content a{float:right}.wcv_addons_wrap .addons-column-block-item-content p{float:left}.wcv_addons_wrap .addons-small-dark-items{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}.wcv_addons_wrap .addons-small-dark-item{margin:0 0 20px}.wcv_addons_wrap .addons-small-dark-item a{margin:28px auto 0}.wcv_addons_wrap .addons-small-dark-item-icon img{height:30px}.wcv_addons_wrap .addons-small-light-block-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 100px;flex:1 1 100px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around}.wcv_addons_wrap .addons-small-light-block-content a{width:48%}.wcv_addons_wrap .addons-small-light-block-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wcv_addons_wrap .product-addons-button{cursor:pointer;display:block;height:37px;line-height:37px;text-align:center;text-decoration:none;width:124px}.wcv_addons_wrap .started-button{cursor:pointer;display:block;height:37px;line-height:37px;text-align:center;text-decoration:none;width:180px;margin:auto}.wcv_addons_wrap .started-button svg{width:15px;fill:#fff;margin-left:5px}.wcv_addons_wrap .product-addons-button-solid{background-color:#005580;color:#fff}.wcv_addons_wrap .addons-button{border-radius:3px;cursor:pointer;display:block;height:37px;line-height:37px;text-align:center;text-decoration:none;width:124px}.wcv_addons_wrap .addons-button-solid{background-color:#005580;color:#fff}.wcv_addons_wrap .addons-button-solid:hover{color:#fff;opacity:.8}.wcv_addons_wrap .addons-button-outline-green{border:1px solid #73ae39;color:#73ae39}.wcv_addons_wrap .addons-button-outline-green:hover{color:#73ae39;opacity:.8}.wcv_addons_wrap .addons-button-outline-white{border:1px solid #fff;color:#fff}.wcv_addons_wrap .addons-button-outline-white:hover{color:#fff;opacity:.8}.wcv_addons_wrap .addons-button-installed{background:#e6e6e6;color:#3c3c3c}.wcv_addons_wrap .addons-button-installed:hover{color:#3c3c3c;opacity:.8}.wcv_addons_wrap .colorpickpreview{padding:7px 0;line-height:1em;display:inline-block;width:26px;border:1px solid #ddd;font-size:14px}.wcv_addons_wrap .products{overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -.5em}.wcv_addons_wrap .products li{float:left;border:1px solid #ddd;margin:0 .5em 1em!important;padding:0;vertical-align:top;width:25%;min-width:280px;min-height:220px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.wcv_addons_wrap .products li a{text-decoration:none;color:inherit;display:block;height:100%}.wcv_addons_wrap .products li a .product-img-wrap{background:#fff;display:block}.wcv_addons_wrap .products li a img{max-width:258px;max-height:24px;padding:17px 20px;display:block;margin:0;background:#fff;border-right:260px solid #fff}.wcv_addons_wrap .products li a img.extension-thumb+h3{display:none}.wcv_addons_wrap .products li a .price{display:none}.wcv_addons_wrap .products li a h2{margin:0!important;padding:20px!important;background:#fff}.wcv_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.wcv_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.wcv_addons_wrap .products li a:hover{background-color:#fff}.wcv_addons_wrap .products li a:focus{background-color:#fff}.wcv_addons_wrap .carrousel{background:#fff;text-align:center;padding-top:1em;padding-bottom:4em;max-width:750px;margin:auto;position:relative;overflow:hidden}.wcv_addons_wrap .carrousel h1{font-size:1.5em;text-align:center;margin:.8em 0;color:#555}.wcv_addons_wrap .carrousel h2{margin:0;margin-top:-1.7em;padding:0;font-size:1em;text-align:center;color:#bbb}.wcv_addons_wrap .carrousel .slides{width:400%;left:0;padding-left:0;padding-top:1em;overflow:hidden;list-style:none;position:relative;-webkit-transition:transform .5s;-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s}.wcv_addons_wrap .carrousel .slides li{width:25%;position:relative;float:left}.wcv_addons_wrap .carrousel li p{margin-top:0}.wcv_addons_wrap .carrousel li q{max-width:90%;margin:auto;color:#666;font-size:1.3em;font-weight:700}.wcv_addons_wrap .carrousel li img{width:3em;height:3em;-o-object-fit:cover;object-fit:cover;border-radius:50%;margin-left:-1.5em;margin-right:.5em;vertical-align:middle}.wcv_addons_wrap .carrousel li span.author{margin-top:.5em;font-size:1.2em;color:#777;display:block}.wcv_addons_wrap .carrousel .slidesNavigation{display:block;list-style:none;text-align:center;bottom:1em;position:absolute;width:104px;left:50%;margin-left:-52px}.wcv_addons_wrap .carrousel .slidesNavigation label{float:left;margin:6px;display:block;height:10px;width:10px;border-radius:50%;border:solid 2px #2980b9;font-size:0}.wcv_addons_wrap .carrousel .slidesNavigation label:hover{cursor:pointer}.wcv_addons_wrap .carrousel input{display:none}.wcv_addons_wrap .carrousel #radio-1:checked~.slidesNavigation label#dotForRadio-1{background:#2980b9}.wcv_addons_wrap .carrousel #radio-2:checked~.slidesNavigation label#dotForRadio-2{background:#2980b9}.wcv_addons_wrap .carrousel #radio-3:checked~.slidesNavigation label#dotForRadio-3{background:#2980b9}.wcv_addons_wrap .carrousel #radio-4:checked~.slidesNavigation label#dotForRadio-4{background:#2980b9}.wcv_addons_wrap #radio-1:checked~.slides{-webkit-transform:translateX(0);transform:translateX(0)}.wcv_addons_wrap #radio-2:checked~.slides{-webkit-transform:translateX(-25%);transform:translateX(-25%)}.wcv_addons_wrap #radio-3:checked~.slides{-webkit-transform:translateX(-50%);transform:translateX(-50%)}.wcv_addons_wrap #radio-4:checked~.slides{-webkit-transform:translateX(-75%);transform:translateX(-75%)}@media (max-width:796px){.wcv_addons_wrap .carrousel{height:8.5em}}@media (max-width:480px){.wcv_addons_wrap .carrousel li p{padding-left:.5em;padding-right:.5em}.wcv_addons_wrap .carrousel li q{font-size:1em}.wcv_addons_wrap .carrousel li img{width:2em;margin-left:-1em;margin-right:.25em}}@media only screen and (max-width:400px){.wcv_addons_wrap .addons-featured{margin:-1% -5%}.wcv_addons_wrap .addons-button{width:100%}.wcv_addons_wrap .addons-small-dark-item{width:100%}.wcv_addons_wrap .addons-column-block-item-icon{background:0 0;border:none;height:75px;margin:0 10px 10px 0;width:75px}}
|
1 |
+
.column-vendor{width:10%}.bulk-edit-product .inline-edit-author{display:none}.bulk-edit-product .post_author{display:none}.wcv_addons_wrap{max-width:1200px;margin:auto}.wcv_addons_wrap h1.search-form-title{clear:left;padding:0}.wcv_addons_wrap h1{text-align:center}.wcv_addons_wrap .addons-featured{margin:0}.wcv_addons_wrap ul.feature-list{list-style:inherit}.wcv_addons_wrap ul.feature-list li{margin-left:20px}.wcv_addons_wrap ul.subsubsub.subsubsub{margin:-2px 0 12px}.wcv_addons_wrap .subsubsub li::after{content:'|'}.wcv_addons_wrap .subsubsub li:last-child::after{content:''}.wcv_addons_wrap .align-center{text-align:center}.wcv_addons_wrap .wcv-logo{max-width:250px;padding-top:20px;display:block;margin-left:auto;margin-right:auto;width:50%}.wcv_addons_wrap .addons-banner-block-item-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:#fff;height:100px}.wcv_addons_wrap .addons-column-block-item-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:#f7f7f7;border:1px solid #e6e6e6;height:100px;margin:0 10px 10px 0;width:100px}.wcv_addons_wrap .addons-banner-block{background:#fff;border:1px solid #ddd;margin:0 0 1em 0;padding:2em 2em 1em}.wcv_addons_wrap .addons-banner-block img{height:62px}.wcv_addons_wrap .addons-banner-block p{margin:0 0 20px}.wcv_addons_wrap .addons-wcs-banner-block{background:#fff;border:1px solid #ddd;margin:0 0 1em 0;padding:2em 2em 1em;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wcv_addons_wrap .addons-banner-block-items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around;margin:0 -10px 0 -10px}.wcv_addons_wrap .addons-banner-block-item{border:1px solid #e6e6e6;border-radius:3px;-webkit-box-flex:1;-ms-flex:1;flex:1;margin:1em;min-width:200px;width:30%;display:none}.wcv_addons_wrap .addons-banner-block-item:nth-child(-n+3){display:block}.wcv_addons_wrap .addons-banner-block-item-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:24px}.wcv_addons_wrap .addons-banner-block-item-content h3{margin-top:0}.wcv_addons_wrap .addons-banner-block-item-content p{margin:0 0 auto}.wcv_addons_wrap .addons-wcs-banner-block-image{background:#f7f7f7;border:1px solid #e6e6e6;margin-right:2em;width:400px;padding:1em;text-align:center}.wcv_addons_wrap .addons-wcs-banner-block-image .addons-img{margin:auto 0;max-height:350px;max-width:350px}.wcv_addons_wrap .addons-shipping-methods .addons-wcs-banner-block{margin-left:0;margin-right:0;margin-top:1em}.wcv_addons_wrap .addons-wcs-banner-block-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;-ms-flex-item-align:stretch;align-self:stretch;padding:1em 0}.wcv_addons_wrap .addons-wcs-banner-block-content h1{padding-bottom:0}.wcv_addons_wrap .addons-wcs-banner-block-content p{margin-bottom:0;text-align:center}.wcv_addons_wrap .addons-wcs-banner-block-content .wcs-service-logo{max-width:40px}.wcv_addons_wrap .addons-column-section{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}.wcv_addons_wrap .addons-column{-webkit-box-flex:1;-ms-flex:1;flex:1;width:50%;padding:0 .5em}.wcv_addons_wrap .addons-column:nth-child(2){margin-right:0}.wcv_addons_wrap .addons-small-light-block{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #ddd;margin:0 0 1em;padding:20px;background:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.wcv_addons_wrap .addons-small-light-block h1{margin-top:-12px}.wcv_addons_wrap .addons-small-light-block p{margin-top:0}.wcv_addons_wrap .addons-small-light-block img{height:225px;margin:0 0 0 -20px}.wcv_addons_wrap .addons-small-dark-block{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #ddd;margin:0 0 1em;padding:20px;background-color:#54687d;text-align:center}.wcv_addons_wrap .addons-small-dark-block h1{color:#fff}.wcv_addons_wrap .addons-small-dark-block p{color:#fafafa}.wcv_addons_wrap .addons-column-block{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #ddd;margin:0 0 1em;padding:20px;background:#fff}.wcv_addons_wrap .addons-column-block img{max-height:50px;max-width:50px}.wcv_addons_wrap .addons-column-block .wcv-columns{padding-top:20px}.wcv_addons_wrap .addons-column-block .wcv-columns table{border-collapse:collapse;border-spacing:0;width:70%;border:1px solid #ddd;margin-top:20px;margin:auto}.wcv_addons_wrap .addons-column-block .wcv-columns td,.wcv_addons_wrap .addons-column-block .wcv-columns th{text-align:center;padding:16px}.wcv_addons_wrap .addons-column-block .wcv-columns td:first-child,.wcv_addons_wrap .addons-column-block .wcv-columns th:first-child{text-align:left}.wcv_addons_wrap .addons-column-block .wcv-columns tr:nth-child(even){background-color:#f2f2f2}.wcv_addons_wrap .addons-column-block .wcv-columns .fa-check{color:green}.wcv_addons_wrap .addons-column-block .wcv-columns .fa-remove{color:red}.wcv_addons_wrap .addons-column-block-left{float:left}.wcv_addons_wrap .addons-column-block-right{float:right}.wcv_addons_wrap .addons-column-block-item{border-top:2px solid #f9f9f9;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0 -20px;padding:20px;display:none}.wcv_addons_wrap .addons-column-block-item:nth-of-type(-n+3){display:-webkit-box;display:-ms-flexbox;display:flex}.wcv_addons_wrap .addons-column-block-item-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-wrap:wrap;flex-wrap:wrap;height:20%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;min-width:200px}.wcv_addons_wrap .addons-column-block-item-content h2{float:left;margin-top:8px}.wcv_addons_wrap .addons-column-block-item-content a{float:right}.wcv_addons_wrap .addons-column-block-item-content p{float:left}.wcv_addons_wrap .addons-small-dark-items{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}.wcv_addons_wrap .addons-small-dark-item{margin:0 0 20px}.wcv_addons_wrap .addons-small-dark-item a{margin:28px auto 0}.wcv_addons_wrap .addons-small-dark-item-icon img{height:30px}.wcv_addons_wrap .addons-small-light-block-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 100px;flex:1 1 100px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around}.wcv_addons_wrap .addons-small-light-block-content a{width:48%}.wcv_addons_wrap .addons-small-light-block-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wcv_addons_wrap .product-addons-button{cursor:pointer;display:block;height:37px;line-height:37px;text-align:center;text-decoration:none;width:124px}.wcv_addons_wrap .started-button{cursor:pointer;display:block;height:37px;line-height:37px;text-align:center;text-decoration:none;width:180px;margin:auto}.wcv_addons_wrap .started-button svg{width:15px;fill:#fff;margin-left:5px}.wcv_addons_wrap .product-addons-button-solid{background-color:#005580;color:#fff}.wcv_addons_wrap .addons-button{border-radius:3px;cursor:pointer;display:block;height:37px;line-height:37px;text-align:center;text-decoration:none;width:124px}.wcv_addons_wrap .addons-button-solid{background-color:#005580;color:#fff}.wcv_addons_wrap .addons-button-solid:hover{color:#fff;opacity:.8}.wcv_addons_wrap .addons-button-outline-green{border:1px solid #73ae39;color:#73ae39}.wcv_addons_wrap .addons-button-outline-green:hover{color:#73ae39;opacity:.8}.wcv_addons_wrap .addons-button-outline-white{border:1px solid #fff;color:#fff}.wcv_addons_wrap .addons-button-outline-white:hover{color:#fff;opacity:.8}.wcv_addons_wrap .addons-button-installed{background:#e6e6e6;color:#3c3c3c}.wcv_addons_wrap .addons-button-installed:hover{color:#3c3c3c;opacity:.8}.wcv_addons_wrap .colorpickpreview{padding:7px 0;line-height:1em;display:inline-block;width:26px;border:1px solid #ddd;font-size:14px}.wcv_addons_wrap .products{overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 -.5em}.wcv_addons_wrap .products li{float:left;border:1px solid #ddd;margin:0 .5em 1em!important;padding:0;vertical-align:top;width:25%;min-width:280px;min-height:220px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.wcv_addons_wrap .products li a{text-decoration:none;color:inherit;display:block;height:100%}.wcv_addons_wrap .products li a .product-img-wrap{background:#fff;display:block}.wcv_addons_wrap .products li a img{max-width:258px;max-height:24px;padding:17px 20px;display:block;margin:0;background:#fff;border-right:260px solid #fff}.wcv_addons_wrap .products li a img.extension-thumb+h3{display:none}.wcv_addons_wrap .products li a .price{display:none}.wcv_addons_wrap .products li a h2{margin:0!important;padding:20px!important;background:#fff}.wcv_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.wcv_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.wcv_addons_wrap .products li a:hover{background-color:#fff}.wcv_addons_wrap .products li a:focus{background-color:#fff}.wcv_addons_wrap .carrousel{background:#fff;text-align:center;padding-top:1em;padding-bottom:4em;max-width:750px;margin:auto;position:relative;overflow:hidden}.wcv_addons_wrap .carrousel h1{font-size:1.5em;text-align:center;margin:.8em 0;color:#555}.wcv_addons_wrap .carrousel h2{margin:0;margin-top:-1.7em;padding:0;font-size:1em;text-align:center;color:#bbb}.wcv_addons_wrap .carrousel .slides{width:400%;left:0;padding-left:0;padding-top:1em;overflow:hidden;list-style:none;position:relative;-webkit-transition:transform .5s;-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s}.wcv_addons_wrap .carrousel .slides li{width:25%;position:relative;float:left}.wcv_addons_wrap .carrousel li p{margin-top:0}.wcv_addons_wrap .carrousel li q{max-width:90%;margin:auto;color:#666;font-size:1.3em;font-weight:700}.wcv_addons_wrap .carrousel li img{width:3em;height:3em;-o-object-fit:cover;object-fit:cover;border-radius:50%;margin-left:-1.5em;margin-right:.5em;vertical-align:middle}.wcv_addons_wrap .carrousel li span.author{margin-top:.5em;font-size:1.2em;color:#777;display:block}.wcv_addons_wrap .carrousel .slidesNavigation{display:block;list-style:none;text-align:center;bottom:1em;position:absolute;width:104px;left:50%;margin-left:-52px}.wcv_addons_wrap .carrousel .slidesNavigation label{float:left;margin:6px;display:block;height:10px;width:10px;border-radius:50%;border:solid 2px #2980b9;font-size:0}.wcv_addons_wrap .carrousel .slidesNavigation label:hover{cursor:pointer}.wcv_addons_wrap .carrousel input{display:none}.wcv_addons_wrap .carrousel #radio-1:checked~.slidesNavigation label#dotForRadio-1{background:#2980b9}.wcv_addons_wrap .carrousel #radio-2:checked~.slidesNavigation label#dotForRadio-2{background:#2980b9}.wcv_addons_wrap .carrousel #radio-3:checked~.slidesNavigation label#dotForRadio-3{background:#2980b9}.wcv_addons_wrap .carrousel #radio-4:checked~.slidesNavigation label#dotForRadio-4{background:#2980b9}.wcv_addons_wrap #radio-1:checked~.slides{-webkit-transform:translateX(0);transform:translateX(0)}.wcv_addons_wrap #radio-2:checked~.slides{-webkit-transform:translateX(-25%);transform:translateX(-25%)}.wcv_addons_wrap #radio-3:checked~.slides{-webkit-transform:translateX(-50%);transform:translateX(-50%)}.wcv_addons_wrap #radio-4:checked~.slides{-webkit-transform:translateX(-75%);transform:translateX(-75%)}@media (max-width:796px){.wcv_addons_wrap .carrousel{height:8.5em}}@media (max-width:480px){.wcv_addons_wrap .carrousel li p{padding-left:.5em;padding-right:.5em}.wcv_addons_wrap .carrousel li q{font-size:1em}.wcv_addons_wrap .carrousel li img{width:2em;margin-left:-1em;margin-right:.25em}}@media only screen and (max-width:400px){.wcv_addons_wrap .addons-featured{margin:-1% -5%}.wcv_addons_wrap .addons-button{width:100%}.wcv_addons_wrap .addons-small-dark-item{width:100%}.wcv_addons_wrap .addons-column-block-item-icon{background:0 0;border:none;height:75px;margin:0 10px 10px 0;width:75px}}
|
assets/css/wcv-admin.scss
CHANGED
@@ -11,21 +11,6 @@
|
|
11 |
}
|
12 |
}
|
13 |
|
14 |
-
.update-plugins {
|
15 |
-
.update-count {
|
16 |
-
background-color: #d54e21;
|
17 |
-
border-radius: 10px;
|
18 |
-
color: #fff;
|
19 |
-
display: inline-block;
|
20 |
-
font-size: 9px;
|
21 |
-
font-weight: 600;
|
22 |
-
line-height: 17px;
|
23 |
-
margin: 1px 0 0 2px;
|
24 |
-
padding: 0 6px;
|
25 |
-
vertical-align: text-top;
|
26 |
-
}
|
27 |
-
}
|
28 |
-
|
29 |
// Extensions and Updates
|
30 |
.wcv_addons_wrap {
|
31 |
max-width: 1200px;
|
11 |
}
|
12 |
}
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
// Extensions and Updates
|
15 |
.wcv_addons_wrap {
|
16 |
max-width: 1200px;
|
changelog.txt
CHANGED
@@ -1,5 +1,15 @@
|
|
1 |
Changelog for WC Vendors Marketplace
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
Version 2.2.2 - 25th November 2020
|
4 |
|
5 |
* Added: Make commissions table in WP Admin filterable (#717)
|
1 |
Changelog for WC Vendors Marketplace
|
2 |
|
3 |
+
Version 2.2.3 - 1st March 2021
|
4 |
+
|
5 |
+
* Added: PHP8 support
|
6 |
+
* Updated: enhancement for New customer order vendor notification - Add link in the order number redirecting to /pro-dashboard/orders page #729 (#730)
|
7 |
+
* Updated: Tested WP Version 5.6.2 & WC version 5.1
|
8 |
+
* Fixed: Order total incorrect in vendor order emails when coupon is used #726 (#727)
|
9 |
+
* Fixed: Commission Total loads 1970 as the start and the end date (#736)
|
10 |
+
* Fixed: CSS Issue in admin update bubbles (#735)
|
11 |
+
* Fixed: Bulk assigning products to a vendor does not work #724
|
12 |
+
|
13 |
Version 2.2.2 - 25th November 2020
|
14 |
|
15 |
* Added: Make commissions table in WP Admin filterable (#717)
|
class-wc-vendors.php
CHANGED
@@ -7,18 +7,18 @@
|
|
7 |
* Author URI: https://www.wcvendors.com
|
8 |
* GitHub Plugin URI: https://github.com/wcvendors/wcvendors
|
9 |
*
|
10 |
-
* Version: 2.2.
|
11 |
* Requires at least: 5.3.0
|
12 |
-
* Tested up to: 5.6
|
13 |
* WC requires at least: 4.0
|
14 |
-
* WC tested up to:
|
15 |
*
|
16 |
* Text Domain: wc-vendors
|
17 |
* Domain Path: /languages/
|
18 |
*
|
19 |
* @category Plugin
|
20 |
* @copyright Copyright © 2012 Matt Gates
|
21 |
-
* @copyright Copyright ©
|
22 |
* @author Matt Gates, WC Vendors
|
23 |
* @package WCVendors
|
24 |
* @license GPL2
|
@@ -107,7 +107,7 @@ if ( wcv_is_woocommerce_activated() ) {
|
|
107 |
*/
|
108 |
class WC_Vendors {
|
109 |
|
110 |
-
public $version = '2.2.
|
111 |
|
112 |
/**
|
113 |
* @var
|
@@ -251,13 +251,13 @@ if ( wcv_is_woocommerce_activated() ) {
|
|
251 |
include_once wcv_plugin_dir . 'classes/admin/class-setup-wizard.php';
|
252 |
include_once wcv_plugin_dir . 'classes/admin/class-vendor-admin-dashboard.php';
|
253 |
include_once wcv_plugin_dir . 'classes/admin/class-admin-media.php';
|
254 |
-
|
255 |
|
256 |
new WCV_Vendor_Applicants();
|
257 |
new WCV_Admin_Setup();
|
258 |
new WCV_Vendor_Admin_Dashboard();
|
259 |
new WCV_Admin_Reports();
|
260 |
-
|
261 |
|
262 |
} else {
|
263 |
|
7 |
* Author URI: https://www.wcvendors.com
|
8 |
* GitHub Plugin URI: https://github.com/wcvendors/wcvendors
|
9 |
*
|
10 |
+
* Version: 2.2.3
|
11 |
* Requires at least: 5.3.0
|
12 |
+
* Tested up to: 5.6.2
|
13 |
* WC requires at least: 4.0
|
14 |
+
* WC tested up to: 5.1
|
15 |
*
|
16 |
* Text Domain: wc-vendors
|
17 |
* Domain Path: /languages/
|
18 |
*
|
19 |
* @category Plugin
|
20 |
* @copyright Copyright © 2012 Matt Gates
|
21 |
+
* @copyright Copyright © 2021 WC Vendors
|
22 |
* @author Matt Gates, WC Vendors
|
23 |
* @package WCVendors
|
24 |
* @license GPL2
|
107 |
*/
|
108 |
class WC_Vendors {
|
109 |
|
110 |
+
public $version = '2.2.3';
|
111 |
|
112 |
/**
|
113 |
* @var
|
251 |
include_once wcv_plugin_dir . 'classes/admin/class-setup-wizard.php';
|
252 |
include_once wcv_plugin_dir . 'classes/admin/class-vendor-admin-dashboard.php';
|
253 |
include_once wcv_plugin_dir . 'classes/admin/class-admin-media.php';
|
254 |
+
include_once wcv_plugin_dir . 'classes/admin/class-wcv-admin-import-export.php';
|
255 |
|
256 |
new WCV_Vendor_Applicants();
|
257 |
new WCV_Admin_Setup();
|
258 |
new WCV_Vendor_Admin_Dashboard();
|
259 |
new WCV_Admin_Reports();
|
260 |
+
new WCV_Admin_Import_Export();
|
261 |
|
262 |
} else {
|
263 |
|
classes/admin/class-admin-reports.php
CHANGED
@@ -272,7 +272,7 @@ class WCV_Admin_Reports {
|
|
272 |
|
273 |
$first_year = $wpdb->get_var( "SELECT time FROM {$wpdb->prefix}pv_commission ORDER BY time ASC LIMIT 1;" );
|
274 |
$first_year = $first_year ? gmdate( 'Y', strtotime( $first_year ) ) : gmdate( 'Y' );
|
275 |
-
$current_year = isset( $_POST['show_year'] ) ? $_POST['show_year'] : gmdate( 'Y', current_time( '
|
276 |
$start_date = strtotime( $current_year . '0101' );
|
277 |
|
278 |
$vendors = get_users( array( 'role' => 'vendor' ) );
|
@@ -477,10 +477,10 @@ class WCV_Admin_Reports {
|
|
477 |
*/
|
478 |
function commission_totals() {
|
479 |
|
480 |
-
global $wpdb;
|
481 |
|
482 |
-
$total_start_date = ! empty( $_POST['total_start_date'] ) ? $_POST['total_start_date'] :
|
483 |
-
$total_end_date = ! empty( $_POST['total_end_date'] ) ? $_POST['total_end_date'] :
|
484 |
$commission_status = ! empty( $_POST['commission_status'] ) ? $_POST['commission_status'] : 'due';
|
485 |
$date_sql = ( ! empty( $_POST['total_start_date'] ) && ! empty( $_POST['total_end_date'] ) ) ? " time BETWEEN '$total_start_date 00:00:00' AND '$total_end_date 23:59:59' AND" : '';
|
486 |
|
@@ -504,11 +504,11 @@ class WCV_Admin_Reports {
|
|
504 |
<form method="post" action="">
|
505 |
<p><label for="from"><?php _e( 'From:', 'wc-vendors' ); ?></label>
|
506 |
<input type="text" size="9" placeholder="yyyy-mm-dd"
|
507 |
-
value="<?php echo esc_attr(
|
508 |
class="range_datepicker from" id="from"/>
|
509 |
<label for="to"><?php _e( 'To:', 'wc-vendors' ); ?></label>
|
510 |
<input type="text" size="9" placeholder="yyyy-mm-dd"
|
511 |
-
value="<?php echo esc_attr(
|
512 |
class="range_datepicker to" id="to"/>
|
513 |
|
514 |
<select name="commission_status">
|
272 |
|
273 |
$first_year = $wpdb->get_var( "SELECT time FROM {$wpdb->prefix}pv_commission ORDER BY time ASC LIMIT 1;" );
|
274 |
$first_year = $first_year ? gmdate( 'Y', strtotime( $first_year ) ) : gmdate( 'Y' );
|
275 |
+
$current_year = isset( $_POST['show_year'] ) ? $_POST['show_year'] : gmdate( 'Y', current_time( 'timestamp' ) );
|
276 |
$start_date = strtotime( $current_year . '0101' );
|
277 |
|
278 |
$vendors = get_users( array( 'role' => 'vendor' ) );
|
477 |
*/
|
478 |
function commission_totals() {
|
479 |
|
480 |
+
global $total_start_date, $total_end_date, $wpdb;
|
481 |
|
482 |
+
$total_start_date = ! empty( $_POST['total_start_date'] ) ? $_POST['total_start_date'] : '';
|
483 |
+
$total_end_date = ! empty( $_POST['total_end_date'] ) ? $_POST['total_end_date'] : '';
|
484 |
$commission_status = ! empty( $_POST['commission_status'] ) ? $_POST['commission_status'] : 'due';
|
485 |
$date_sql = ( ! empty( $_POST['total_start_date'] ) && ! empty( $_POST['total_end_date'] ) ) ? " time BETWEEN '$total_start_date 00:00:00' AND '$total_end_date 23:59:59' AND" : '';
|
486 |
|
504 |
<form method="post" action="">
|
505 |
<p><label for="from"><?php _e( 'From:', 'wc-vendors' ); ?></label>
|
506 |
<input type="text" size="9" placeholder="yyyy-mm-dd"
|
507 |
+
value="<?php echo esc_attr( wp_date( 'Y-m-d', $total_start_date ) ); ?>" name="total_start_date"
|
508 |
class="range_datepicker from" id="from"/>
|
509 |
<label for="to"><?php _e( 'To:', 'wc-vendors' ); ?></label>
|
510 |
<input type="text" size="9" placeholder="yyyy-mm-dd"
|
511 |
+
value="<?php echo esc_attr( wp_date( 'Y-m-d', $total_end_date ) ); ?>" name="total_end_date"
|
512 |
class="range_datepicker to" id="to"/>
|
513 |
|
514 |
<select name="commission_status">
|
classes/admin/class-product-meta.php
CHANGED
@@ -422,11 +422,11 @@ class WCV_Product_Meta {
|
|
422 |
*/
|
423 |
public function save_vendor_bulk_edit( $product ) {
|
424 |
|
425 |
-
if( ! isset( $_REQUEST['vendor'] ) || isset( $_REQUEST['vendor'] ) && ''
|
426 |
return;
|
427 |
}
|
428 |
|
429 |
-
if ( isset( $_REQUEST['vendor'] ) && ''
|
430 |
$vendor = wc_clean( $_REQUEST['vendor'] );
|
431 |
$update_vendor = array(
|
432 |
'ID' => $product->get_id(),
|
422 |
*/
|
423 |
public function save_vendor_bulk_edit( $product ) {
|
424 |
|
425 |
+
if( ! isset( $_REQUEST['vendor'] ) || isset( $_REQUEST['vendor'] ) && '' == $_REQUEST['vendor'] ) {
|
426 |
return;
|
427 |
}
|
428 |
|
429 |
+
if ( isset( $_REQUEST['vendor'] ) && '' != $_REQUEST['vendor'] ) {
|
430 |
$vendor = wc_clean( $_REQUEST['vendor'] );
|
431 |
$update_vendor = array(
|
432 |
'ID' => $product->get_id(),
|
classes/admin/views/html-admin-page-extensions.php
CHANGED
@@ -51,7 +51,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
51 |
</ul>
|
52 |
<ul class="products">
|
53 |
<li class="product">
|
54 |
-
<a href="https://www.wcvendors.com/product/woocommerce-simple-auctions
|
55 |
<h2><?php _e( 'WooCommerce Simple Auctions', 'wc-vendors' ); ?></h2>
|
56 |
<p><?php _e( 'Allow vendors to create auctions. Integreate WooCommerce Simple Auctions into the WC Vendors Pro dashboard.', 'wc-vendors' ); ?> </p>
|
57 |
<span class="product-addons-button product-addons-button-solid"><?php _e( 'From $49', 'wc-vendors' ); ?></span>
|
51 |
</ul>
|
52 |
<ul class="products">
|
53 |
<li class="product">
|
54 |
+
<a href="https://www.wcvendors.com/product/wc-vendors-woocommerce-simple-auctions//?utm_source=plugin&utm_medium=addons&utm_campaign=extensions">
|
55 |
<h2><?php _e( 'WooCommerce Simple Auctions', 'wc-vendors' ); ?></h2>
|
56 |
<p><?php _e( 'Allow vendors to create auctions. Integreate WooCommerce Simple Auctions into the WC Vendors Pro dashboard.', 'wc-vendors' ); ?> </p>
|
57 |
<span class="product-addons-button product-addons-button-solid"><?php _e( 'From $49', 'wc-vendors' ); ?></span>
|
classes/includes/wcv-template-functions.php
CHANGED
@@ -71,7 +71,8 @@ if ( ! function_exists( 'wcv_get_vendor_item_totals' ) ) {
|
|
71 |
* @param WC_Order $order Order object.
|
72 |
* @param array $args Arguments.
|
73 |
*
|
74 |
-
* @since
|
|
|
75 |
* @return string
|
76 |
*/
|
77 |
function wcv_get_vendor_item_totals( $order, $items, $vendor_id, $email, $totals_display = 'both' ) {
|
@@ -83,6 +84,20 @@ if ( ! function_exists( 'wcv_get_vendor_item_totals' ) ) {
|
|
83 |
$shipping = 0;
|
84 |
$total = 0;
|
85 |
$total_rows = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
$vendor_commissions = WCV_Vendors::get_vendor_dues_from_order( $order );
|
88 |
|
@@ -155,8 +170,10 @@ if ( ! function_exists( 'wcv_get_vendor_item_totals' ) ) {
|
|
155 |
|
156 |
// Product totals
|
157 |
if ( 'both' === $totals_display || 'product' === $totals_display ) {
|
158 |
-
$product_total = $product_subtotal + $shipping + $tax;
|
159 |
-
|
|
|
|
|
160 |
$total_rows['product_total'] = array(
|
161 |
'label' => __( 'Product total:', 'wc-vendors' ),
|
162 |
'value' => wc_price( $product_total, array( 'currency' => $order->get_currency() ) ),
|
71 |
* @param WC_Order $order Order object.
|
72 |
* @param array $args Arguments.
|
73 |
*
|
74 |
+
* @since 2.0.0
|
75 |
+
* @version 2.2.3
|
76 |
* @return string
|
77 |
*/
|
78 |
function wcv_get_vendor_item_totals( $order, $items, $vendor_id, $email, $totals_display = 'both' ) {
|
84 |
$shipping = 0;
|
85 |
$total = 0;
|
86 |
$total_rows = array();
|
87 |
+
$discount = 0;
|
88 |
+
$coupons = $order->get_items( 'coupon' );
|
89 |
+
|
90 |
+
if ( ! empty( $coupons ) ) {
|
91 |
+
foreach ( $coupons as $coupon ) {
|
92 |
+
$coupon_obj = new WC_Coupon( $coupon['name'] );
|
93 |
+
$coupon_id = $coupon_obj->get_id();
|
94 |
+
$object = get_post( $coupon_id );
|
95 |
+
$author = $object ? $object->post_author : 1;
|
96 |
+
if ( $author == $vendor_id ) {
|
97 |
+
$discount = $order->get_total_discount();
|
98 |
+
}
|
99 |
+
}
|
100 |
+
}
|
101 |
|
102 |
$vendor_commissions = WCV_Vendors::get_vendor_dues_from_order( $order );
|
103 |
|
170 |
|
171 |
// Product totals
|
172 |
if ( 'both' === $totals_display || 'product' === $totals_display ) {
|
173 |
+
$product_total = $product_subtotal + $shipping + $tax - $discount;
|
174 |
+
if ( 0 > $product_total ) {
|
175 |
+
$product_total = 0;
|
176 |
+
}
|
177 |
$total_rows['product_total'] = array(
|
178 |
'label' => __( 'Product total:', 'wc-vendors' ),
|
179 |
'value' => wc_price( $product_total, array( 'currency' => $order->get_currency() ) ),
|
languages/wc-vendors.pot
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the WC Vendors Marketplace package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
@@ -453,7 +453,7 @@ msgstr ""
|
|
453 |
msgid "Order"
|
454 |
msgstr ""
|
455 |
|
456 |
-
#: classes/admin/class-admin-reports.php:206, classes/admin/class-wcv-commissions-csv-exporter.php:51, classes/admin/class-wcv-commissions-page.php:159, templates/dashboard/reports.php:36, templates/emails/notify-vendor-shipped.php:30, templates/emails/vendor-new-order.php:35, templates/emails/vendor-order-details.php:
|
457 |
msgid "Product"
|
458 |
msgstr ""
|
459 |
|
@@ -537,7 +537,7 @@ msgstr ""
|
|
537 |
msgid "Assign media to %s"
|
538 |
msgstr ""
|
539 |
|
540 |
-
#: classes/admin/class-product-meta.php:293, classes/admin/class-product-meta.php:311, classes/admin/class-wcv-commissions-csv-exporter.php:53, classes/admin/class-wcv-commissions-page.php:161, templates/dashboard/reports.php:38, templates/emails/vendor-order-details.php:
|
541 |
msgid "Commission"
|
542 |
msgstr ""
|
543 |
|
@@ -944,7 +944,7 @@ msgstr ""
|
|
944 |
msgid "QTY"
|
945 |
msgstr ""
|
946 |
|
947 |
-
#: classes/admin/class-wcv-commissions-page.php:160, templates/dashboard/reports.php:37, templates/emails/notify-vendor-shipped.php:31, templates/emails/vendor-new-order.php:36, templates/emails/vendor-order-details.php:
|
948 |
msgid "Quantity"
|
949 |
msgstr ""
|
950 |
|
@@ -1044,31 +1044,31 @@ msgstr ""
|
|
1044 |
msgid "Vendors"
|
1045 |
msgstr ""
|
1046 |
|
1047 |
-
#: classes/includes/wcv-template-functions.php:
|
1048 |
msgid "Commission subtotal:"
|
1049 |
msgstr ""
|
1050 |
|
1051 |
-
#: classes/includes/wcv-template-functions.php:
|
1052 |
msgid "Product subtotal:"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
-
#: classes/includes/wcv-template-functions.php:
|
1056 |
msgid "Shipping:"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
-
#: classes/includes/wcv-template-functions.php:
|
1060 |
msgid "Tax:"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
-
#: classes/includes/wcv-template-functions.php:
|
1064 |
msgid "Payment method:"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
-
#: classes/includes/wcv-template-functions.php:
|
1068 |
msgid "Commission total:"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
-
#: classes/includes/wcv-template-functions.php:
|
1072 |
msgid "Product total:"
|
1073 |
msgstr ""
|
1074 |
|
@@ -1220,7 +1220,7 @@ msgstr ""
|
|
1220 |
msgid "Order: %s"
|
1221 |
msgstr ""
|
1222 |
|
1223 |
-
#: templates/emails/notify-vendor-shipped.php:32, templates/emails/vendor-new-order.php:37, templates/emails/vendor-order-details.php:
|
1224 |
msgid "Price"
|
1225 |
msgstr ""
|
1226 |
|
@@ -1269,11 +1269,11 @@ msgid "Shipping address"
|
|
1269 |
msgstr ""
|
1270 |
|
1271 |
#. translators: %s: Order ID.
|
1272 |
-
#: templates/emails/vendor-order-details.php:
|
1273 |
msgid "Order #%s"
|
1274 |
msgstr ""
|
1275 |
|
1276 |
-
#: templates/emails/vendor-order-details.php:
|
1277 |
msgid "Note:"
|
1278 |
msgstr ""
|
1279 |
|
1 |
+
# Copyright (C) 2021 WC Vendors Marketplace
|
2 |
# This file is distributed under the same license as the WC Vendors Marketplace package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
453 |
msgid "Order"
|
454 |
msgstr ""
|
455 |
|
456 |
+
#: classes/admin/class-admin-reports.php:206, classes/admin/class-wcv-commissions-csv-exporter.php:51, classes/admin/class-wcv-commissions-page.php:159, templates/dashboard/reports.php:36, templates/emails/notify-vendor-shipped.php:30, templates/emails/vendor-new-order.php:35, templates/emails/vendor-order-details.php:38, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:195, classes/admin/emails/class-wcv-vendor-notify-order.php:222
|
457 |
msgid "Product"
|
458 |
msgstr ""
|
459 |
|
537 |
msgid "Assign media to %s"
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: classes/admin/class-product-meta.php:293, classes/admin/class-product-meta.php:311, classes/admin/class-wcv-commissions-csv-exporter.php:53, classes/admin/class-wcv-commissions-page.php:161, templates/dashboard/reports.php:38, templates/emails/vendor-order-details.php:43, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:194, classes/admin/emails/class-wcv-vendor-notify-order.php:221, classes/admin/settings/class-wcv-settings-commission.php:32, classes/admin/views/html-admin-commission-page.php:23, classes/admin/views/setup/general.php:81
|
541 |
msgid "Commission"
|
542 |
msgstr ""
|
543 |
|
944 |
msgid "QTY"
|
945 |
msgstr ""
|
946 |
|
947 |
+
#: classes/admin/class-wcv-commissions-page.php:160, templates/dashboard/reports.php:37, templates/emails/notify-vendor-shipped.php:31, templates/emails/vendor-new-order.php:36, templates/emails/vendor-order-details.php:40, classes/front/orders/class-export-csv.php:17
|
948 |
msgid "Quantity"
|
949 |
msgstr ""
|
950 |
|
1044 |
msgid "Vendors"
|
1045 |
msgstr ""
|
1046 |
|
1047 |
+
#: classes/includes/wcv-template-functions.php:120
|
1048 |
msgid "Commission subtotal:"
|
1049 |
msgstr ""
|
1050 |
|
1051 |
+
#: classes/includes/wcv-template-functions.php:133
|
1052 |
msgid "Product subtotal:"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
+
#: classes/includes/wcv-template-functions.php:141
|
1056 |
msgid "Shipping:"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
+
#: classes/includes/wcv-template-functions.php:149
|
1060 |
msgid "Tax:"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
+
#: classes/includes/wcv-template-functions.php:157
|
1064 |
msgid "Payment method:"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
+
#: classes/includes/wcv-template-functions.php:166
|
1068 |
msgid "Commission total:"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
+
#: classes/includes/wcv-template-functions.php:178
|
1072 |
msgid "Product total:"
|
1073 |
msgstr ""
|
1074 |
|
1220 |
msgid "Order: %s"
|
1221 |
msgstr ""
|
1222 |
|
1223 |
+
#: templates/emails/notify-vendor-shipped.php:32, templates/emails/vendor-new-order.php:37, templates/emails/vendor-order-details.php:47
|
1224 |
msgid "Price"
|
1225 |
msgstr ""
|
1226 |
|
1269 |
msgstr ""
|
1270 |
|
1271 |
#. translators: %s: Order ID.
|
1272 |
+
#: templates/emails/vendor-order-details.php:28
|
1273 |
msgid "Order #%s"
|
1274 |
msgstr ""
|
1275 |
|
1276 |
+
#: templates/emails/vendor-order-details.php:98, templates/emails/plain/vendor-order-details.php:50
|
1277 |
msgid "Note:"
|
1278 |
msgstr ""
|
1279 |
|
readme.txt
CHANGED
@@ -6,10 +6,10 @@ Author URI: https://www.wcvendors.com/
|
|
6 |
Plugin URI: https://www.wcvendors.com/
|
7 |
Requires at least: 5.0.0
|
8 |
Requires PHP: 7.2
|
9 |
-
Tested up to: 5.6
|
10 |
WC requires at least: 4.0.0
|
11 |
-
WC tested up to:
|
12 |
-
Stable tag: 2.2.
|
13 |
License: GPLv2 or later
|
14 |
|
15 |
The original multi-vendor marketplace plugin for WordPress and WooCommerce. Best support available.
|
@@ -140,7 +140,7 @@ Pay your vendors their commissions with these gateways and payment solutions
|
|
140 |
**Vendor Stores**
|
141 |
|
142 |
* Sellers get their own store and unique URL
|
143 |
-
* Store fronts can be
|
144 |
* Multiple store front styles (Pro feature)
|
145 |
* 10 great pro widgets for store fronts (pro feature)
|
146 |
* Vendor store notices to advertise coupons or sales (Pro Feature)
|
@@ -157,7 +157,7 @@ Pay your vendors their commissions with these gateways and payment solutions
|
|
157 |
* Export orders
|
158 |
* Complete frontend dashboard with no WordPress admin access for vendors (Pro feature)
|
159 |
* Complete product, order, coupon management (Pro Feature)
|
160 |
-
* Add tracking numbers to
|
161 |
* Print shipping labels (Pro Feature)
|
162 |
|
163 |
**Earn in multiple ways**
|
@@ -199,7 +199,7 @@ Pay your vendors their commissions with these gateways and payment solutions
|
|
199 |
* Hide any field or section from the vendors
|
200 |
* And much much more..
|
201 |
|
202 |
-
[Learn more](https://www.wcvendors.com/product/wc-vendors-pro/?utm_campaign=description&utm_source=wporg&utm_medium=web)
|
203 |
|
204 |
= Found a bug or Want to contribute? =
|
205 |
|
@@ -219,11 +219,11 @@ There is a chance that you might find a bug or need a new action/filter added. I
|
|
219 |
|
220 |
= What payment gateways are supported ? ==
|
221 |
|
222 |
-
All WooCommerce payment gateways are supported. You can read more about difference between payment gateways and vendor payouts [here]
|
223 |
|
224 |
= What themes are supported ? =
|
225 |
|
226 |
-
You can use any theme that is 100% WooCommerce compatible. We have a [list]
|
227 |
|
228 |
= Can we give taxes to vendors? =
|
229 |
|
@@ -264,12 +264,22 @@ WC Vendors Marketplace does not work with multisite WordPress. There are no plan
|
|
264 |
|
265 |
== Changelog ==
|
266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
= Version 2.2.2 - 25th November 2020
|
268 |
|
269 |
* Added: Make commissions table in WP Admin filterable (#717)
|
270 |
* Added: Filter to the vendor select minimum input length #688
|
271 |
* Updated: Setup wizard updates (#714)
|
272 |
-
* Updated: Changed WooCommerce missing behaviour
|
273 |
* Updated: Remove deprecated payments tab from settings (#705)
|
274 |
* Updated: Update vendor drop downs place holder #701 (#706)
|
275 |
* Updated: User store name or user id for vendor search in wp admin #669 (#697)
|
6 |
Plugin URI: https://www.wcvendors.com/
|
7 |
Requires at least: 5.0.0
|
8 |
Requires PHP: 7.2
|
9 |
+
Tested up to: 5.6.2
|
10 |
WC requires at least: 4.0.0
|
11 |
+
WC tested up to: 5.1
|
12 |
+
Stable tag: 2.2.3
|
13 |
License: GPLv2 or later
|
14 |
|
15 |
The original multi-vendor marketplace plugin for WordPress and WooCommerce. Best support available.
|
140 |
**Vendor Stores**
|
141 |
|
142 |
* Sellers get their own store and unique URL
|
143 |
+
* Store fronts can be customized through templates
|
144 |
* Multiple store front styles (Pro feature)
|
145 |
* 10 great pro widgets for store fronts (pro feature)
|
146 |
* Vendor store notices to advertise coupons or sales (Pro Feature)
|
157 |
* Export orders
|
158 |
* Complete frontend dashboard with no WordPress admin access for vendors (Pro feature)
|
159 |
* Complete product, order, coupon management (Pro Feature)
|
160 |
+
* Add tracking numbers to orders (Pro Feature)
|
161 |
* Print shipping labels (Pro Feature)
|
162 |
|
163 |
**Earn in multiple ways**
|
199 |
* Hide any field or section from the vendors
|
200 |
* And much much more..
|
201 |
|
202 |
+
[Learn more](https://www.wcvendors.com/product/wc-vendors-pro/?utm_campaign=description&utm_source=wporg&utm_medium=web)
|
203 |
|
204 |
= Found a bug or Want to contribute? =
|
205 |
|
219 |
|
220 |
= What payment gateways are supported ? ==
|
221 |
|
222 |
+
All WooCommerce payment gateways are supported. You can read more about difference between payment gateways and vendor payouts [here](https://www.wcvendors.com/2018/05/payments-explained/?utm_campaign=faq&utm_source=wporg?utm_medium)
|
223 |
|
224 |
= What themes are supported ? =
|
225 |
|
226 |
+
You can use any theme that is 100% WooCommerce compatible. We have a [list](https://www.wcvendors.com/themes/) of free and paid themes on our website that are known to work with our plugins.
|
227 |
|
228 |
= Can we give taxes to vendors? =
|
229 |
|
264 |
|
265 |
== Changelog ==
|
266 |
|
267 |
+
= Version 2.2.3 - 1st March 2021 =
|
268 |
+
|
269 |
+
* Added: PHP8 support
|
270 |
+
* Updated: enhancement for New customer order vendor notification - Add link in the order number redirecting to /pro-dashboard/orders page #729 (#730)
|
271 |
+
* Updated: Tested WP Version 5.6.2 & WC version 5.1
|
272 |
+
* Fixed: Order total incorrect in vendor order emails when coupon is used #726 (#727)
|
273 |
+
* Fixed: Commission Total loads 1970 as the start and the end date (#736)
|
274 |
+
* Fixed: CSS Issue in admin update bubbles (#735)
|
275 |
+
* Fixed: Bulk assigning products to a vendor does not work #724
|
276 |
+
|
277 |
= Version 2.2.2 - 25th November 2020
|
278 |
|
279 |
* Added: Make commissions table in WP Admin filterable (#717)
|
280 |
* Added: Filter to the vendor select minimum input length #688
|
281 |
* Updated: Setup wizard updates (#714)
|
282 |
+
* Updated: Changed WooCommerce missing behaviour (#712)
|
283 |
* Updated: Remove deprecated payments tab from settings (#705)
|
284 |
* Updated: Update vendor drop downs place holder #701 (#706)
|
285 |
* Updated: User store name or user id for vendor search in wp admin #669 (#697)
|
templates/emails/vendor-order-details.php
CHANGED
@@ -21,8 +21,9 @@ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plai
|
|
21 |
|
22 |
<h2>
|
23 |
<?php
|
24 |
-
$before = '';
|
25 |
-
$after
|
|
|
26 |
/* translators: %s: Order ID. */
|
27 |
echo wp_kses_post( $before . sprintf( __( 'Order #%s', 'wc-vendors' ) . $after . ' (<time datetime="%s">%s</time>)', $order->get_order_number(), $order->get_date_created()->format( 'c' ), wc_format_datetime( $order->get_date_created() ) ) );
|
28 |
?>
|
21 |
|
22 |
<h2>
|
23 |
<?php
|
24 |
+
$before = apply_filters( 'wcvendors_order_number_link_in_email_template_before', $before = '', $order, $sent_to_admin, $plain_text, $email );
|
25 |
+
$after = apply_filters( 'wcvendors_order_number_link_in_email_template_after', $after = '', $order, $sent_to_admin, $plain_text, $email );
|
26 |
+
|
27 |
/* translators: %s: Order ID. */
|
28 |
echo wp_kses_post( $before . sprintf( __( 'Order #%s', 'wc-vendors' ) . $after . ' (<time datetime="%s">%s</time>)', $order->get_order_number(), $order->get_date_created()->format( 'c' ), wc_format_datetime( $order->get_date_created() ) ) );
|
29 |
?>
|