WC Vendors - Version 2.1.14

Version Description

Download this release

Release Info

Developer digitalchild
Plugin Icon 128x128 WC Vendors
Version 2.1.14
Comparing to
See all releases

Code changes from version 2.1.13 to 2.1.14

assets/css/wcv-admin.css CHANGED
@@ -164,3 +164,5 @@
164
  .wcv_addons_wrap .products li a:hover, .wcv_addons_wrap .products li a:focus { background-color: #fff; }
165
 
166
  .column-vendor { width: 10%; }
 
 
164
  .wcv_addons_wrap .products li a:hover, .wcv_addons_wrap .products li a:focus { background-color: #fff; }
165
 
166
  .column-vendor { width: 10%; }
167
+
168
+ .bulk-edit-product .inline-edit-author, .bulk-edit-product .post_author { display: none; }
assets/css/wcv-admin.min.css CHANGED
@@ -1 +1 @@
1
- .wcv_addons_wrap{max-width:1200px}.wcv_addons_wrap h1.search-form-title{clear:left;padding:0}.wcv_addons_wrap .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 .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 .addons-banner-block-item-icon,.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}.wcv_addons_wrap .addons-banner-block,.wcv_addons_wrap .addons-wcs-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-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%}.wcv_addons_wrap .addons-banner-block-item-icon{background:#f7f7f7;height:143px}.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;height:184px;-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{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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}.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-column-block,.wcv_addons_wrap .addons-small-dark-block,.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}.wcv_addons_wrap .addons-column-block img{max-height:50px;max-width:50px}.wcv_addons_wrap .addons-column-block,.wcv_addons_wrap .addons-small-light-block{background:#fff}.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}.wcv_addons_wrap .addons-column-block-item-icon{background:#f7f7f7;border:1px solid #e6e6e6;height:100px;margin:0 10px 10px 0;width:100px}.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-banner-block-item,.wcv_addons_wrap .addons-column-block-item{display:none}.wcv_addons_wrap .addons-banner-block-item:nth-child(-n+3){display:block}.wcv_addons_wrap .addons-column-block-item:nth-of-type(-n+3){display:-webkit-box;display:-ms-flexbox;display:flex}.wcv_addons_wrap .addons-small-dark-block{background-color:#54687d;text-align:center}.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-block h1{color:#fff}.wcv_addons_wrap .addons-small-dark-block p{color:#fafafa}.wcv_addons_wrap .addons-small-dark-item-icon img{height:30px}.wcv_addons_wrap .addons-small-dark-item a{margin:28px auto 0}.wcv_addons_wrap .addons-small-light-block{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-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-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wcv_addons_wrap .addons-small-light-block-content a{width:48%}.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 .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}@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}}.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,.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:focus,.wcv_addons_wrap .products li a:hover{background-color:#fff}.column-vendor{width:10%}
1
+ .wcv_addons_wrap{max-width:1200px}.wcv_addons_wrap h1.search-form-title{clear:left;padding:0}.wcv_addons_wrap .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 .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 .addons-banner-block-item-icon,.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}.wcv_addons_wrap .addons-banner-block,.wcv_addons_wrap .addons-wcs-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-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%}.wcv_addons_wrap .addons-banner-block-item-icon{background:#f7f7f7;height:143px}.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;height:184px;-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{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.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}.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-column-block,.wcv_addons_wrap .addons-small-dark-block,.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}.wcv_addons_wrap .addons-column-block img{max-height:50px;max-width:50px}.wcv_addons_wrap .addons-column-block,.wcv_addons_wrap .addons-small-light-block{background:#fff}.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}.wcv_addons_wrap .addons-column-block-item-icon{background:#f7f7f7;border:1px solid #e6e6e6;height:100px;margin:0 10px 10px 0;width:100px}.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-banner-block-item,.wcv_addons_wrap .addons-column-block-item{display:none}.wcv_addons_wrap .addons-banner-block-item:nth-child(-n+3){display:block}.wcv_addons_wrap .addons-column-block-item:nth-of-type(-n+3){display:-webkit-box;display:-ms-flexbox;display:flex}.wcv_addons_wrap .addons-small-dark-block{background-color:#54687d;text-align:center}.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-block h1{color:#fff}.wcv_addons_wrap .addons-small-dark-block p{color:#fafafa}.wcv_addons_wrap .addons-small-dark-item-icon img{height:30px}.wcv_addons_wrap .addons-small-dark-item a{margin:28px auto 0}.wcv_addons_wrap .addons-small-light-block{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-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-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wcv_addons_wrap .addons-small-light-block-content a{width:48%}.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 .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}@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}}.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,.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:focus,.wcv_addons_wrap .products li a:hover{background-color:#fff}.column-vendor{width:10%}.bulk-edit-product .inline-edit-author,.bulk-edit-product .post_author{display:none}
assets/css/wcv-admin.scss CHANGED
@@ -482,3 +482,9 @@
482
  }
483
 
484
  .column-vendor { width: 10%; }
 
 
 
 
 
 
482
  }
483
 
484
  .column-vendor { width: 10%; }
485
+
486
+ .bulk-edit-product{
487
+ .inline-edit-author, .post_author {
488
+ display: none;
489
+ }
490
+ }
changelog.txt CHANGED
@@ -1,5 +1,15 @@
1
  Changelog for WC Vendors Marketplace
2
 
 
 
 
 
 
 
 
 
 
 
3
  Verison 2.1.13 - 26th August 2019
4
 
5
  * Added: New shop description option for vendor store page
1
  Changelog for WC Vendors Marketplace
2
 
3
+ Version 2.1.14 - 11th September 2019
4
+
5
+ * Added: Bulk edit assign vendor to products (#591)
6
+ * Added: Add product details and correct order ID for commission csv exports
7
+ * Added: New order item argument for commission calculations
8
+ * Added: Filters to hide headers. (#589)
9
+ * Updated: Tested to 5.2.3
10
+ * Fixed: Php notice on orders view page
11
+ * Fixed: spelling in attributes file
12
+
13
  Verison 2.1.13 - 26th August 2019
14
 
15
  * Added: New shop description option for vendor store page
class-wc-vendors.php CHANGED
@@ -7,9 +7,9 @@
7
  * Author URI: https://www.wcvendors.com
8
  * GitHub Plugin URI: https://github.com/wcvendors/wcvendors
9
  *
10
- * Version: 2.1.13
11
  * Requires at least: 5.0.0
12
- * Tested up to: 5.2.2
13
  * WC requires at least: 3.3.0
14
  * WC tested up to: 3.7.0
15
  *
@@ -97,7 +97,7 @@ if ( wcv_is_woocommerce_activated() ) {
97
  */
98
  class WC_Vendors {
99
 
100
- public $version = '2.1.13';
101
 
102
  /**
103
  * @var
7
  * Author URI: https://www.wcvendors.com
8
  * GitHub Plugin URI: https://github.com/wcvendors/wcvendors
9
  *
10
+ * Version: 2.1.14
11
  * Requires at least: 5.0.0
12
+ * Tested up to: 5.2.3
13
  * WC requires at least: 3.3.0
14
  * WC tested up to: 3.7.0
15
  *
97
  */
98
  class WC_Vendors {
99
 
100
+ public $version = '2.1.14';
101
 
102
  /**
103
  * @var
classes/admin/class-product-meta.php CHANGED
@@ -31,8 +31,12 @@ class WCV_Product_Meta {
31
  add_action( 'woocommerce_process_product_meta' , array( $this, 'save_panel' ) );
32
  }
33
 
34
- add_action( 'woocommerce_product_quick_edit_end' , array( $this, 'display_vendor_dd_quick_edit' ) );
 
 
 
35
  add_action( 'woocommerce_product_quick_edit_save', array( $this, 'save_vendor_quick_edit' ), 2, 99 );
 
36
  add_action( 'manage_product_posts_custom_column' , array( $this, 'display_vendor_column' ), 2, 99 );
37
  add_filter( 'manage_product_posts_columns' , array( $this, 'vendor_column_quickedit' ) );
38
 
@@ -237,7 +241,7 @@ class WCV_Product_Meta {
237
  /*
238
  * Display the vendor drop down on the quick edit screen
239
  */
240
- public function display_vendor_dd_quick_edit() {
241
 
242
  global $post;
243
  $selected = $post->post_author;
@@ -277,12 +281,15 @@ class WCV_Product_Meta {
277
  }
278
 
279
 
280
- /*
281
- * Save the vendor on the quick edit screen
 
 
282
  */
283
  public function save_vendor_quick_edit( $product ) {
284
 
285
  if ( $product->is_type( 'simple' ) || $product->is_type( 'external' ) ) {
 
286
  if ( isset( $_REQUEST['_vendor'] ) ) {
287
  $vendor = wc_clean( $_REQUEST['_vendor'] );
288
  $post = get_post( $product->get_id() );
@@ -297,6 +304,65 @@ class WCV_Product_Meta {
297
  return $product;
298
  }
299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
  /**
301
  * Override the product media author
302
  *
31
  add_action( 'woocommerce_process_product_meta' , array( $this, 'save_panel' ) );
32
  }
33
 
34
+ add_action( 'woocommerce_product_quick_edit_end' , array( $this, 'display_vendor_dropdown_quick_edit' ) );
35
+ add_action( 'woocommerce_product_bulk_edit_start', array( $this, 'display_vendor_dropdown_bulk_edit' ) );
36
+
37
+
38
  add_action( 'woocommerce_product_quick_edit_save', array( $this, 'save_vendor_quick_edit' ), 2, 99 );
39
+ add_action( 'woocommerce_product_bulk_edit_save', array( $this, 'save_vendor_bulk_edit' ), 1, 99 );
40
  add_action( 'manage_product_posts_custom_column' , array( $this, 'display_vendor_column' ), 2, 99 );
41
  add_filter( 'manage_product_posts_columns' , array( $this, 'vendor_column_quickedit' ) );
42
 
241
  /*
242
  * Display the vendor drop down on the quick edit screen
243
  */
244
+ public function display_vendor_dropdown_quick_edit() {
245
 
246
  global $post;
247
  $selected = $post->post_author;
281
  }
282
 
283
 
284
+ /**
285
+ * Save the vendor on the quick edit screen
286
+ *
287
+ * @param WC_Product $product
288
  */
289
  public function save_vendor_quick_edit( $product ) {
290
 
291
  if ( $product->is_type( 'simple' ) || $product->is_type( 'external' ) ) {
292
+
293
  if ( isset( $_REQUEST['_vendor'] ) ) {
294
  $vendor = wc_clean( $_REQUEST['_vendor'] );
295
  $post = get_post( $product->get_id() );
304
  return $product;
305
  }
306
 
307
+ /**
308
+ * Display the vendor drop down on the bulk edit screen
309
+ *
310
+ * @since 2.1.14
311
+ * @version 2.1.14
312
+ */
313
+ public function display_vendor_dropdown_bulk_edit() {
314
+
315
+ global $post;
316
+ $selected = '';
317
+
318
+ $roles = array( 'vendor', 'administrator' );
319
+ $user_args = array( 'fields' => array( 'ID', 'display_name' ) );
320
+
321
+ $output = "<select style='width:200px;' name='vendor' class='select'>\n";
322
+ $output .= '<option value=""> '. __('— No change —', 'wc-vendors') . '</option>';
323
+
324
+ foreach ( $roles as $role ) {
325
+
326
+ $new_args = $user_args;
327
+ $new_args['role'] = $role;
328
+ $users = get_users( $new_args );
329
+
330
+ if ( empty( $users ) ) {
331
+ continue;
332
+ }
333
+ $output .= wcv_vendor_drop_down_options( $users, '' );
334
+ }
335
+ $output .= '</select>';
336
+
337
+
338
+ ?>
339
+ <br class="clear"/>
340
+ <label class="inline-edit-author-new">
341
+ <span class="title"><?php printf( __( '%s', 'wc-vendors' ), wcv_get_vendor_name() ); ?></span>
342
+ <?php echo $output; ?>
343
+ </label>
344
+ <?php
345
+ }
346
+
347
+ /**
348
+ * Save the vendor from the bulk edit action
349
+ *
350
+ * @since 2.1.14
351
+ * @version 2.1.14
352
+ * @param WC_Product $product
353
+ */
354
+ public function save_vendor_bulk_edit( $product ) {
355
+
356
+ if ( isset( $_REQUEST['vendor'] ) && $_REQUEST['vendor'] != '' ) {
357
+ $vendor = wc_clean( $_REQUEST['vendor'] );
358
+ $update_vendor = array(
359
+ 'ID' => $product->get_id(),
360
+ 'post_author' => $vendor,
361
+ );
362
+ wp_update_post( $update_vendor );
363
+ }
364
+ }
365
+
366
  /**
367
  * Override the product media author
368
  *
classes/admin/class-setup-wizard.php CHANGED
@@ -399,6 +399,8 @@ class WCVendors_Admin_Setup_Wizard {
399
  WCVendors_Install::update_db_version();
400
  flush_rewrite_rules();
401
 
 
 
402
  $user_email = $this->get_current_user_email();
403
  $first_name = $this->get_current_user_firstname();
404
  $forums = 'https://wordpress.org/support/plugin/wc-vendors';
399
  WCVendors_Install::update_db_version();
400
  flush_rewrite_rules();
401
 
402
+ update_option( 'wcvendors_wizard_complete', current_time( 'mysql' ) );
403
+
404
  $user_email = $this->get_current_user_email();
405
  $first_name = $this->get_current_user_firstname();
406
  $forums = 'https://wordpress.org/support/plugin/wc-vendors';
classes/admin/class-vendor-reports.php CHANGED
@@ -67,7 +67,9 @@ class WCV_Vendor_Reports {
67
  /**
68
  * Filter products based on current vendor
69
  *
70
- * @param unknown $orders
 
 
71
  *
72
  * @return unknown
73
  */
67
  /**
68
  * Filter products based on current vendor
69
  *
70
+ * @version 2.1.14
71
+ * @since 2.0.0
72
+ * @param unknown $orders List of orders.
73
  *
74
  * @return unknown
75
  */
classes/admin/class-wcv-commissions-csv-exporter.php CHANGED
@@ -40,15 +40,16 @@ class WCV_Commissions_CSV_Export extends WC_CSV_Exporter {
40
 
41
  return apply_filters(
42
  'wcv_commissions_export_columns', array(
43
- 'product_id' => __( 'Product', 'wc-vendors' ),
44
- 'order_id' => __( 'Order ID', 'wc-vendors' ),
45
- 'vendor_id' => sprintf( __( '%s', 'wc-vendors' ), wcv_get_vendor_name() ),
46
- 'total_due' => __( 'Commission', 'wc-vendors' ),
47
- 'total_shipping' => __( 'Shipping', 'wc-vendors' ),
48
- 'tax' => __( 'Tax', 'wc-vendors' ),
49
- 'totals' => __( 'Total', 'wc-vendors' ),
50
- 'status' => __( 'Status', 'wc-vendors' ),
51
- 'time' => __( 'Date', 'wc-vendors' ),
 
52
  )
53
  );
54
  }
@@ -158,13 +159,29 @@ class WCV_Commissions_CSV_Export extends WC_CSV_Exporter {
158
 
159
  foreach ( $columns as $column_id => $column_name ) {
160
 
161
- if ( $column_id == 'vendor_id' ) {
162
- $value = WCV_Vendors::get_vendor_shop_name( $commission->vendor_id );
163
- } elseif ( $column_id == 'totals' ) {
164
- $totals = ( wc_tax_enabled() ) ? $commission->total_due + $commission->total_shipping + $commission->tax : $commission->total_due + $commission->total_shipping;
165
- $value = wc_format_localized_price( $totals );
166
- } else {
167
- $value = $commission->$column_id;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  }
169
 
170
  $row[ $column_id ] = $value;
40
 
41
  return apply_filters(
42
  'wcv_commissions_export_columns', array(
43
+ 'order_id' => __( 'Order ID', 'wc-vendors' ),
44
+ 'vendor_id' => sprintf( __( '%s', 'wc-vendors' ), wcv_get_vendor_name() ),
45
+ 'product_id' => __( 'Product', 'wc-vendors' ),
46
+ 'qty' => __( 'QTY', 'wc-vendors' ),
47
+ 'total_due' => __( 'Commission', 'wc-vendors' ),
48
+ 'total_shipping' => __( 'Shipping', 'wc-vendors' ),
49
+ 'tax' => __( 'Tax', 'wc-vendors' ),
50
+ 'totals' => __( 'Total', 'wc-vendors' ),
51
+ 'status' => __( 'Status', 'wc-vendors' ),
52
+ 'time' => __( 'Date', 'wc-vendors' ),
53
  )
54
  );
55
  }
159
 
160
  foreach ( $columns as $column_id => $column_name ) {
161
 
162
+ switch ( $column_id ) {
163
+ case 'vendor_id':
164
+ $value = WCV_Vendors::get_vendor_shop_name( $commission->vendor_id );
165
+ break;
166
+ case 'totals':
167
+ $totals = ( wc_tax_enabled() ) ? $commission->total_due + $commission->total_shipping + $commission->tax : $commission->total_due + $commission->total_shipping;
168
+ $value = wc_format_localized_price( $totals );
169
+ break;
170
+ case 'order_id':
171
+ $order = wc_get_order( $commission->order_id );
172
+ $value = ( $order )? $order->get_order_number() : $commission->order_id;
173
+ break;
174
+ case 'product_id':
175
+ $parent = get_post_ancestors( $commission->product_id );
176
+ $product_id = $parent ? $parent[0] : $commission->product_id;
177
+ $wcv_total_sales = get_post_meta( $product_id, 'total_sales', true );
178
+ if ( ! get_post_status( $product_id ) ) {
179
+ $product_id = WCV_Vendors::find_parent_id_from_order( $commission->order_id, $product_id );
180
+ }
181
+ $value = get_the_title( $product_id ) . '(' . $wcv_total_sales . ')';
182
+ break;
183
+ default:
184
+ $value = $commission->$column_id;
185
  }
186
 
187
  $row[ $column_id ] = $value;
classes/admin/views/setup/ready.php CHANGED
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
14
  <div class="wcvendors-message wcvendors-newsletter">
15
  <script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[3]='ADDRESS';ftypes[3]='address';fnames[4]='PHONE';ftypes[4]='phone';}(jQuery));var $mcj = jQuery.noConflict(true);</script>
16
  <p><?php esc_html_e( 'Subscribe to our newsletter! Get product updates, marketplace tips, information and more.', 'wc-vendors' ); ?></p>
17
- <form action="https://wcvendors.us20.list-manage.com/subscribe/post?u=c70c537d05355fa9ec97e8134&amp;id=462e6aa9c6" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
18
  <div class="newsletter-form-container">
19
  <input
20
  class="newsletter-form-email"
@@ -43,6 +43,7 @@ if ( ! defined( 'ABSPATH' ) ) {
43
  </p>
44
  </div>
45
  <div id="mce-responses" class="clear">
 
46
  <div class="response" id="mce-error-response" style="display:none"></div>
47
  <div class="response" id="mce-success-response" style="display:none"></div>
48
  </div>
@@ -54,16 +55,17 @@ if ( ! defined( 'ABSPATH' ) ) {
54
  <ul class="wcv-wizard-next-steps">
55
  <li class="wcv-wizard-next-step-item">
56
  <div class="wcv-wizard-next-step-description">
57
- <p class="next-step-heading"><?php esc_html_e( 'Next step', 'wc-vendors' ); ?></p>
58
- <h3 class="next-step-description"><?php esc_html_e( 'Upgrade to Pro!', 'wc-vendors' ); ?></h3>
59
- <p class="next-step-extra-info"><?php esc_html_e( 'Upgrade today to extend the features of your marketplace.', 'wc-vendors' ); ?></p>
60
  <p class="next-step-heading"><?php esc_html_e( 'Features', 'wc-vendors' ); ?></p>
61
  <ul>
62
- <li><?php _e( 'Complete frontend dashboard for vendors', 'wc-vendors' ); ?></li>
63
  <li><?php _e( 'Flat rate & table rate shipping module', 'wc-vendors' ); ?></li>
64
  <li><?php _e( 'Coupons, ratings, reports, orders and more.', 'wc-vendors' ); ?></li>
65
- <li><?php _e( 'Advanced commissions', 'wc-vendors' ); ?></li>
66
  <li><?php _e( 'Premium support & updates', 'wc-vendors' ); ?></li>
 
67
  </ul>
68
  </div>
69
  <div class="wcv-wizard-next-step-action">
@@ -71,7 +73,7 @@ if ( ! defined( 'ABSPATH' ) ) {
71
  <a class="button button-primary button-large"
72
  href="https://www.wcvendors.com/product/wc-vendors-pro/?utm_source=setup_wizard&utm_medium=plugin&utm_campaign=setup_complete"
73
  target="_blank">
74
- <?php _e( 'Upgrade Now', 'wc-vendors' ); ?>
75
  </a>
76
  </p>
77
  </div>
@@ -79,15 +81,15 @@ if ( ! defined( 'ABSPATH' ) ) {
79
  <li class="wcv-wizard-next-step-item">
80
  <div class="wcv-wizard-next-step-description">
81
  <p class="next-step-heading"><?php _e( 'Extend your marketplace', 'wc-vendors' ); ?></p>
82
- <h3 class="next-step-description"><?php _e( 'Extensions', 'wc-vendors' ); ?></h3>
83
- <p class="next-step-extra-info"><?php _e( 'Extend your marketplace today with a variety of extensions from us and 3rd party developers.', 'wc-vendors' ); ?></p>
84
  </div>
85
  <div class="wcv-wizard-next-step-action">
86
  <p class="wcv-setup-actions step">
87
  <a class="button button-large"
88
  href="https://www.wcvendors.com/plugins/?utm_source=setup_wizard&utm_medium=plugin&utm_campaign=setup_complete"
89
  target="_blank">
90
- <?php _e( 'View Extensions', 'wc-vendors' ); ?>
91
  </a>
92
  </p>
93
  </div>
14
  <div class="wcvendors-message wcvendors-newsletter">
15
  <script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[3]='ADDRESS';ftypes[3]='address';fnames[4]='PHONE';ftypes[4]='phone';}(jQuery));var $mcj = jQuery.noConflict(true);</script>
16
  <p><?php esc_html_e( 'Subscribe to our newsletter! Get product updates, marketplace tips, information and more.', 'wc-vendors' ); ?></p>
17
+ <form action="https://wcvendors.us20.list-manage.com/subscribe/post?u=c70c537d05355fa9ec97e8134&amp;id=86c131c9ef" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
18
  <div class="newsletter-form-container">
19
  <input
20
  class="newsletter-form-email"
43
  </p>
44
  </div>
45
  <div id="mce-responses" class="clear">
46
+ <input type="checkbox"id="group_2" name="group[4145][2]" value="1" style="display:none" checked>
47
  <div class="response" id="mce-error-response" style="display:none"></div>
48
  <div class="response" id="mce-success-response" style="display:none"></div>
49
  </div>
55
  <ul class="wcv-wizard-next-steps">
56
  <li class="wcv-wizard-next-step-item">
57
  <div class="wcv-wizard-next-step-description">
58
+ <p class="next-step-heading"><?php esc_html_e( 'Make your life easy', 'wc-vendors' ); ?></p>
59
+ <h2 class="next-step-description"><?php esc_html_e( 'Upgrade to Pro!', 'wc-vendors' ); ?></h2>
60
+ <p class="next-step-extra-info"><?php esc_html_e( 'Upgrade today to enhance your marketplace for the best chance of success.', 'wc-vendors' ); ?></p>
61
  <p class="next-step-heading"><?php esc_html_e( 'Features', 'wc-vendors' ); ?></p>
62
  <ul>
63
+ <li><?php _e( 'Remove the need for vendors to access the WordPress dmin with a complete frontend dashboard', 'wc-vendors' ); ?></li>
64
  <li><?php _e( 'Flat rate & table rate shipping module', 'wc-vendors' ); ?></li>
65
  <li><?php _e( 'Coupons, ratings, reports, orders and more.', 'wc-vendors' ); ?></li>
66
+ <li><?php _e( 'Advanced commission including fixed and tiered', 'wc-vendors' ); ?></li>
67
  <li><?php _e( 'Premium support & updates', 'wc-vendors' ); ?></li>
68
+ <li><?php _e( 'Starting from $199 annually', 'wc-vendors' ); ?></li>
69
  </ul>
70
  </div>
71
  <div class="wcv-wizard-next-step-action">
73
  <a class="button button-primary button-large"
74
  href="https://www.wcvendors.com/product/wc-vendors-pro/?utm_source=setup_wizard&utm_medium=plugin&utm_campaign=setup_complete"
75
  target="_blank">
76
+ <?php _e( 'Upgrade Today', 'wc-vendors' ); ?>
77
  </a>
78
  </p>
79
  </div>
81
  <li class="wcv-wizard-next-step-item">
82
  <div class="wcv-wizard-next-step-description">
83
  <p class="next-step-heading"><?php _e( 'Extend your marketplace', 'wc-vendors' ); ?></p>
84
+ <h2 class="next-step-description"><?php _e( 'Premium Extensions', 'wc-vendors' ); ?></h2>
85
+ <p class="next-step-extra-info"><?php _e( 'Turn your marketplace into an auction or subscription site, charge your vendors a monthly membership and more with our awesome premium extensions.', 'wc-vendors' ); ?></p>
86
  </div>
87
  <div class="wcv-wizard-next-step-action">
88
  <p class="wcv-setup-actions step">
89
  <a class="button button-large"
90
  href="https://www.wcvendors.com/plugins/?utm_source=setup_wizard&utm_medium=plugin&utm_campaign=setup_complete"
91
  target="_blank">
92
+ <?php _e( 'Buy Premium Extensions', 'wc-vendors' ); ?>
93
  </a>
94
  </p>
95
  </div>
classes/class-commission.php CHANGED
@@ -335,18 +335,22 @@ class WCV_Commission {
335
  /**
336
  * Commission due for a product based on a rate and price
337
  *
338
- * @param float $product_price
339
- * @param unknown $product_id
340
- *
 
 
 
 
341
  * @return float
342
  */
343
- public static function calculate_commission( $product_price, $product_id, $order, $qty ) {
344
 
345
- $commission_rate = WCV_Commission::get_commission_rate( $product_id );
346
  $commission = $product_price * ( $commission_rate / 100 );
347
  $commission = round( $commission, 2 );
348
 
349
- return apply_filters( 'wcv_commission_rate', $commission, $product_id, $product_price, $order, $qty );
350
  }
351
 
352
 
335
  /**
336
  * Commission due for a product based on a rate and price
337
  *
338
+ * @version 2.1.14
339
+ * @since 2.0.0
340
+ * @param float $product_price The product price.
341
+ * @param int $product_id The product id.
342
+ * @param WC_Order $order The WooCommerce order.
343
+ * @param int $qty The product quantity.
344
+ * @param mixed $item The order item. Optional, default array().
345
  * @return float
346
  */
347
+ public static function calculate_commission( $product_price, $product_id, $order, $qty, $item = array() ) {
348
 
349
+ $commission_rate = self::get_commission_rate( $product_id );
350
  $commission = $product_price * ( $commission_rate / 100 );
351
  $commission = round( $commission, 2 );
352
 
353
+ return apply_filters( 'wcv_commission_rate', $commission, $product_id, $product_price, $order, $qty, $item );
354
  }
355
 
356
 
classes/class-install.php CHANGED
@@ -134,6 +134,7 @@ class WCVendors_Install {
134
  self::create_roles();
135
  self::create_tables();
136
  self::create_options();
 
137
  self::maybe_run_setup_wizard();
138
  self::update_wcv_version();
139
  self::maybe_update_db_version();
@@ -465,6 +466,16 @@ class WCVendors_Install {
465
  }
466
  }
467
 
 
 
 
 
 
 
 
 
 
 
468
 
469
  /**
470
  * Show action links on the plugin screen.
@@ -532,6 +543,11 @@ class WCVendors_Install {
532
  public static function get_vendor_caps() {
533
 
534
  $capabilities = array(
 
 
 
 
 
535
  'dashboard' => array(
536
  'wcv_view_sales_overview' => __( 'View sales overview', 'wc-vendors' ),
537
  'wcv_view_sales_report_chart' => __( 'View sales report chart', 'wc-vendors' ),
@@ -546,8 +562,7 @@ class WCVendors_Install {
546
  'wcv_add_order_note' => __( 'Add order notes', 'wc-vendors' ),
547
  'wcv_view_order_note' => __( 'View order notes', 'wc-vendors' ),
548
  'wcv_manage_order_export' => __( 'Export orders', 'wc-vendors' ),
549
- ),
550
- 'order_customer' => array(
551
  'wcv_view_name' => __( 'View customer name', 'wc-vendors' ),
552
  'wcv_view_email' => __( 'View customer email address', 'wc-vendors' ),
553
  'wcv_view_phone' => __( 'View customer phone number', 'wc-vendors' ),
@@ -556,7 +571,7 @@ class WCVendors_Install {
556
  'wcv_view_billing' => __( 'View customer billing address fields', 'wc-vendors' ),
557
  'wcv_view_email' => __( 'View customer shipping name', 'wc-vendors' ),
558
  ),
559
- 'product' => array(
560
  'wcv_add_product' => __( 'Add product', 'wc-vendors' ),
561
  'wcv_edit_product' => __( 'Edit product', 'wc-vendors' ),
562
  'wcv_edit_product_published' => __( 'Edit published product', 'wc-vendors' ),
@@ -564,7 +579,6 @@ class WCVendors_Install {
564
  'wcv_delete_product' => __( 'Delete product', 'wc-vendors' ),
565
  'wcv_duplicate_product' => __( 'Duplicate product', 'wc-vendors' ),
566
  'wcv_view_product' => __( 'View product', 'wc-vendors' ),
567
-
568
  ),
569
  // Not used yet
570
  'report' => array(
134
  self::create_roles();
135
  self::create_tables();
136
  self::create_options();
137
+ self::add_install_date();
138
  self::maybe_run_setup_wizard();
139
  self::update_wcv_version();
140
  self::maybe_update_db_version();
466
  }
467
  }
468
 
469
+ /**
470
+ * Add an install date option so we can track when the plugin was installed
471
+ *
472
+ */
473
+ private static function add_install_date(){
474
+ if ( self::is_new_install() ){
475
+ add_option( 'wcvendors_install_date', current_time( 'Y-m-d' ) );
476
+ }
477
+ }
478
+
479
 
480
  /**
481
  * Show action links on the plugin screen.
543
  public static function get_vendor_caps() {
544
 
545
  $capabilities = array(
546
+ 'vendor' => array(
547
+ 'wcv_vendor_enabled' => __( 'Vendor is enabled', 'wc-vendors' ),
548
+ 'wcv_vendor_verified' => __( 'Vendor is verified', 'wc-vendors' ),
549
+ 'wcv_vendor_trusted' => __( 'Vendor is trusted', 'wc-vendors' ),
550
+ ),
551
  'dashboard' => array(
552
  'wcv_view_sales_overview' => __( 'View sales overview', 'wc-vendors' ),
553
  'wcv_view_sales_report_chart' => __( 'View sales report chart', 'wc-vendors' ),
562
  'wcv_add_order_note' => __( 'Add order notes', 'wc-vendors' ),
563
  'wcv_view_order_note' => __( 'View order notes', 'wc-vendors' ),
564
  'wcv_manage_order_export' => __( 'Export orders', 'wc-vendors' ),
565
+ 'wcv_manage_order_status' => __( 'Manage order status', 'wc-vendors' ),
 
566
  'wcv_view_name' => __( 'View customer name', 'wc-vendors' ),
567
  'wcv_view_email' => __( 'View customer email address', 'wc-vendors' ),
568
  'wcv_view_phone' => __( 'View customer phone number', 'wc-vendors' ),
571
  'wcv_view_billing' => __( 'View customer billing address fields', 'wc-vendors' ),
572
  'wcv_view_email' => __( 'View customer shipping name', 'wc-vendors' ),
573
  ),
574
+ 'product' => array(
575
  'wcv_add_product' => __( 'Add product', 'wc-vendors' ),
576
  'wcv_edit_product' => __( 'Edit product', 'wc-vendors' ),
577
  'wcv_edit_product_published' => __( 'Edit published product', 'wc-vendors' ),
579
  'wcv_delete_product' => __( 'Delete product', 'wc-vendors' ),
580
  'wcv_duplicate_product' => __( 'Duplicate product', 'wc-vendors' ),
581
  'wcv_view_product' => __( 'View product', 'wc-vendors' ),
 
582
  ),
583
  // Not used yet
584
  'report' => array(
classes/class-uninstall.php CHANGED
@@ -127,7 +127,9 @@ class WCVendors_Uninstall {
127
 
128
  delete_option( 'wcvendors_version' );
129
  delete_option( 'wcvendors_db_version' );
 
130
  delete_option( 'wcvendors_admin_notices' );
 
131
  delete_option( 'wcvendors_queue_flush_rewrite_rules' );
132
  delete_option( 'wcvendors_admin_notice_email_updates' );
133
  }
127
 
128
  delete_option( 'wcvendors_version' );
129
  delete_option( 'wcvendors_db_version' );
130
+ delete_option( 'wcvendors_install_date' );
131
  delete_option( 'wcvendors_admin_notices' );
132
+ delete_option( 'wcvendors_wizard_complete' );
133
  delete_option( 'wcvendors_queue_flush_rewrite_rules' );
134
  delete_option( 'wcvendors_admin_notice_email_updates' );
135
  }
classes/class-vendors.php CHANGED
@@ -128,7 +128,7 @@ class WCV_Vendors {
128
  $give_tax_override = get_user_meta( $author, 'wcv_give_vendor_tax', true );
129
  $give_shipping_override = get_user_meta( $author, 'wcv_give_vendor_shipping', true );
130
  $is_vendor = WCV_Vendors::is_vendor( $author );
131
- $commission = $is_vendor ? WCV_Commission::calculate_commission( $order_item['line_subtotal'], $product_id, $order, $order_item['qty'] ) : 0;
132
  $tax = ! empty( $order_item['line_tax'] ) ? (float) $order_item['line_tax'] : 0;
133
  $order_id = $order->get_id();
134
 
@@ -562,7 +562,7 @@ class WCV_Vendors {
562
  'tax' => $item['line_tax'],
563
  'subtotal_tax' => $item['line_subtotal_tax'],
564
  'tax_data' => maybe_unserialize( $item['line_tax_data'] ),
565
- 'commission' => WCV_Commission::calculate_commission( $item['line_subtotal'], $item['product_id'], $order, $item['qty'] ),
566
  );
567
  }
568
  }
128
  $give_tax_override = get_user_meta( $author, 'wcv_give_vendor_tax', true );
129
  $give_shipping_override = get_user_meta( $author, 'wcv_give_vendor_shipping', true );
130
  $is_vendor = WCV_Vendors::is_vendor( $author );
131
+ $commission = $is_vendor ? WCV_Commission::calculate_commission( $order_item['line_subtotal'], $product_id, $order, $order_item['qty'], $order_item ) : 0;
132
  $tax = ! empty( $order_item['line_tax'] ) ? (float) $order_item['line_tax'] : 0;
133
  $order_id = $order->get_id();
134
 
562
  'tax' => $item['line_tax'],
563
  'subtotal_tax' => $item['line_subtotal_tax'],
564
  'tax_data' => maybe_unserialize( $item['line_tax_data'] ),
565
+ 'commission' => WCV_Commission::calculate_commission( $item['line_subtotal'], $item['product_id'], $order, $item['qty'], $item ),
566
  );
567
  }
568
  }
classes/front/class-vendor-shop.php CHANGED
@@ -41,8 +41,13 @@ class WCV_Vendor_Shop {
41
 
42
  // Add a vendor header
43
  if ( apply_filters( 'wcvendors_disable_shop_headers', wc_string_to_bool( get_option( 'wcvendors_display_shop_headers', 'no' ) ) ) ) {
44
- add_action( 'woocommerce_before_main_content', array( 'WCV_Vendor_Shop', 'vendor_main_header' ), 20 );
45
- add_action( 'woocommerce_before_single_product', array( 'WCV_Vendor_Shop', 'vendor_mini_header' ) );
 
 
 
 
 
46
  }
47
 
48
  add_filter( 'document_title_parts', array( $this, 'vendor_page_title' ) );
41
 
42
  // Add a vendor header
43
  if ( apply_filters( 'wcvendors_disable_shop_headers', wc_string_to_bool( get_option( 'wcvendors_display_shop_headers', 'no' ) ) ) ) {
44
+ if ( apply_filters( 'show_vendor_main_header', true ) ) {
45
+ add_action( 'woocommerce_before_main_content', array( 'WCV_Vendor_Shop', 'vendor_main_header' ), 20 );
46
+ }
47
+
48
+ if ( apply_filters( 'show_vendor_mini_header', true ) ) {
49
+ add_action( 'woocommerce_before_single_product', array( 'WCV_Vendor_Shop', 'vendor_mini_header' ), 12 );
50
+ }
51
  }
52
 
53
  add_filter( 'document_title_parts', array( $this, 'vendor_page_title' ) );
classes/front/orders/class-orders.php CHANGED
@@ -19,7 +19,7 @@ class WCV_Orders {
19
  $this->can_view_orders = wc_string_to_bool( get_option( 'wcvendors_capability_orders_enabled', 'no' ) );
20
  $this->can_export_csv = wc_string_to_bool( get_option( 'wcvendors_capability_orders_export', 'no' ) );
21
  $this->can_view_emails = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_email', 'no' ) );
22
- $this->can_view_billing_name = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_name', 'no' ) );
23
  $this->can_view_shipping_name = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_shipping_name', 'no' ) );
24
  $this->can_view_address = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_shipping' ) );
25
 
19
  $this->can_view_orders = wc_string_to_bool( get_option( 'wcvendors_capability_orders_enabled', 'no' ) );
20
  $this->can_export_csv = wc_string_to_bool( get_option( 'wcvendors_capability_orders_export', 'no' ) );
21
  $this->can_view_emails = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_email', 'no' ) );
22
+ $this->can_view_name = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_name', 'no' ) );
23
  $this->can_view_shipping_name = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_shipping_name', 'no' ) );
24
  $this->can_view_address = wc_string_to_bool( get_option( 'wcvendors_capability_order_customer_shipping' ) );
25
 
languages/wc-vendors.pot CHANGED
@@ -28,15 +28,15 @@ msgstr ""
28
  msgid "<b>WC Vendors Marketplace is inactive</b>. WC Vendors Marketplace requires a minimum of WooCommerce 3.0.0 to operate."
29
  msgstr ""
30
 
31
- #: class-wc-vendors.php:314
32
  msgid "Are you sure you want mark all commissions paid?"
33
  msgstr ""
34
 
35
- #: class-wc-vendors.php:418
36
  msgid "WC Vendors 2.0 is a major update. This is not compatible with any of our existing extensions. You should test this update on a staging server before updating. Backup your site and update your theme and extensions, and <a href=\"%s\">review update details here</a> before upgrading."
37
  msgstr ""
38
 
39
- #: class-wc-vendors.php:433
40
  msgid "WC Vendors Pro 1.5.0 is required to run WC Vendors 2.0.0. Your current version %s will be deactivated. Please upgrade to the latest version."
41
  msgstr ""
42
 
@@ -56,211 +56,227 @@ msgstr ""
56
  msgid "Payment total: %s"
57
  msgstr ""
58
 
59
- #: classes/class-install.php:158, classes/admin/class-wcv-admin-setup.php:153
60
  msgid "Pending %s"
61
  msgstr ""
62
 
63
- #: classes/class-install.php:172, classes/admin/class-admin-reports.php:207, classes/admin/class-admin-reports.php:530, classes/admin/class-product-meta.php:267, classes/admin/class-setup-wizard.php:349, classes/admin/class-wcv-admin-setup.php:148, classes/admin/class-wcv-admin-setup.php:365, classes/admin/class-wcv-commissions-csv-exporter.php:45, classes/admin/class-wcv-commissions-page.php:130, classes/admin/class-wcv-commissions-sum-csv-exporter.php:43, classes/admin/settings/class-wcv-settings-display.php:113, classes/admin/settings/class-wcv-settings-display.php:121, classes/admin/settings/class-wcv-settings-display.php:229
64
  msgid "%s"
65
  msgstr ""
66
 
67
- #: classes/class-install.php:256
68
  msgctxt "Page slug"
69
  msgid "vendor_dashboard"
70
  msgstr ""
71
 
72
- #: classes/class-install.php:258
73
  msgctxt "Page title"
74
  msgid "%s Dashboard"
75
  msgstr ""
76
 
77
- #: classes/class-install.php:264
78
  msgctxt "Page slug"
79
  msgid "vendors"
80
  msgstr ""
81
 
82
- #: classes/class-install.php:266
83
  msgctxt "Page title"
84
  msgid "%s"
85
  msgstr ""
86
 
87
- #: classes/class-install.php:274
88
  msgctxt "Page slug"
89
  msgid "shop_settings"
90
  msgstr ""
91
 
92
- #: classes/class-install.php:275
93
  msgctxt "Page title"
94
  msgid "Shop Settings"
95
  msgstr ""
96
 
97
- #: classes/class-install.php:280
98
  msgctxt "Page slug"
99
  msgid "product_orders"
100
  msgstr ""
101
 
102
- #: classes/class-install.php:281
103
  msgctxt "Page title"
104
  msgid "Orders"
105
  msgstr ""
106
 
107
- #: classes/class-install.php:480
108
  msgid "View WC Vendors settings"
109
  msgstr ""
110
 
111
- #: classes/class-install.php:480, templates/dashboard/settings/settings.php:17
112
  msgid "Settings"
113
  msgstr ""
114
 
115
- #: classes/class-install.php:498
116
  msgid "View WC Vendors documentation"
117
  msgstr ""
118
 
119
- #: classes/class-install.php:498
120
  msgid "Docs"
121
  msgstr ""
122
 
123
- #: classes/class-install.php:499
124
  msgid "Visit community forums"
125
  msgstr ""
126
 
127
- #: classes/class-install.php:499
128
  msgid "Free support"
129
  msgstr ""
130
 
131
- #: classes/class-install.php:500
132
  msgid "Buy premium customer support"
133
  msgstr ""
134
 
135
- #: classes/class-install.php:500
136
  msgid "Premium support"
137
  msgstr ""
138
 
139
- #: classes/class-install.php:536
 
 
 
 
 
 
 
 
 
 
 
 
140
  msgid "View sales overview"
141
  msgstr ""
142
 
143
- #: classes/class-install.php:537
144
  msgid "View sales report chart"
145
  msgstr ""
146
 
147
- #: classes/class-install.php:538
148
  msgid "View vendor notices"
149
  msgstr ""
150
 
151
- #: classes/class-install.php:539
152
  msgid "View order report"
153
  msgstr ""
154
 
155
- #: classes/class-install.php:540
156
  msgid "View order overview"
157
  msgstr ""
158
 
159
- #: classes/class-install.php:541
160
  msgid "View ratings report"
161
  msgstr ""
162
 
163
- #: classes/class-install.php:542
164
  msgid "View product status report"
165
  msgstr ""
166
 
167
- #: classes/class-install.php:545
168
  msgid "View order"
169
  msgstr ""
170
 
171
- #: classes/class-install.php:546
172
  msgid "Add order notes"
173
  msgstr ""
174
 
175
- #: classes/class-install.php:547
176
  msgid "View order notes"
177
  msgstr ""
178
 
179
- #: classes/class-install.php:548, templates/orders/csv-export.php:22
180
  msgid "Export orders"
181
  msgstr ""
182
 
183
- #: classes/class-install.php:551
 
 
 
 
184
  msgid "View customer name"
185
  msgstr ""
186
 
187
- #: classes/class-install.php:552
188
  msgid "View customer email address"
189
  msgstr ""
190
 
191
- #: classes/class-install.php:553
192
  msgid "View customer phone number"
193
  msgstr ""
194
 
195
- #: classes/class-install.php:554, classes/class-install.php:557
196
  msgid "View customer shipping name"
197
  msgstr ""
198
 
199
- #: classes/class-install.php:555
200
  msgid "View customer shipping address fields"
201
  msgstr ""
202
 
203
- #: classes/class-install.php:556
204
  msgid "View customer billing address fields"
205
  msgstr ""
206
 
207
- #: classes/class-install.php:560
208
  msgid "Add product"
209
  msgstr ""
210
 
211
- #: classes/class-install.php:561
212
  msgid "Edit product"
213
  msgstr ""
214
 
215
- #: classes/class-install.php:562
216
  msgid "Edit published product"
217
  msgstr ""
218
 
219
- #: classes/class-install.php:563
220
  msgid "Publish product directly without approval"
221
  msgstr ""
222
 
223
- #: classes/class-install.php:564
224
  msgid "Delete product"
225
  msgstr ""
226
 
227
- #: classes/class-install.php:565
228
  msgid "Duplicate product"
229
  msgstr ""
230
 
231
- #: classes/class-install.php:566
232
  msgid "View product"
233
  msgstr ""
234
 
235
- #: classes/class-install.php:571
236
  msgid "View overview report"
237
  msgstr ""
238
 
239
- #: classes/class-install.php:572
240
  msgid "View daily sales report"
241
  msgstr ""
242
 
243
- #: classes/class-install.php:573
244
  msgid "View top selling report"
245
  msgstr ""
246
 
247
- #: classes/class-install.php:574
248
  msgid "View top earning report"
249
  msgstr ""
250
 
251
- #: classes/class-install.php:577
252
  msgid "View dashboard menu"
253
  msgstr ""
254
 
255
- #: classes/class-install.php:578
256
  msgid "View product menu"
257
  msgstr ""
258
 
259
- #: classes/class-install.php:579
260
  msgid "View order menu"
261
  msgstr ""
262
 
263
- #: classes/class-install.php:580
264
  msgid "View store settings menu"
265
  msgstr ""
266
 
@@ -294,7 +310,7 @@ msgstr ""
294
  msgid "WC Vendors Extensions"
295
  msgstr ""
296
 
297
- #: classes/admin/class-admin-menus.php:64, classes/admin/views/setup/ready.php:82
298
  msgid "Extensions"
299
  msgstr ""
300
 
@@ -358,11 +374,11 @@ msgstr ""
358
  msgid "Order"
359
  msgstr ""
360
 
361
- #: classes/admin/class-admin-reports.php:206, classes/admin/class-wcv-commissions-csv-exporter.php:43, classes/admin/class-wcv-commissions-page.php:131, 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:37, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:195, classes/admin/emails/class-wcv-vendor-notify-order.php:222
362
  msgid "Product"
363
  msgstr ""
364
 
365
- #: classes/admin/class-admin-reports.php:208, classes/admin/class-admin-reports.php:441, classes/admin/class-vendor-admin-dashboard.php:381, classes/admin/class-wcv-commissions-csv-exporter.php:49, classes/admin/class-wcv-commissions-page.php:136, classes/admin/class-wcv-commissions-sum-csv-exporter.php:44, templates/dashboard/orders.php:56
366
  msgid "Total"
367
  msgstr ""
368
 
@@ -370,7 +386,7 @@ msgstr ""
370
  msgid "Date &amp; Time"
371
  msgstr ""
372
 
373
- #: classes/admin/class-admin-reports.php:210, classes/admin/class-admin-reports.php:533, classes/admin/class-wcv-commissions-csv-exporter.php:50, classes/admin/class-wcv-commissions-page.php:137
374
  msgid "Status"
375
  msgstr ""
376
 
@@ -402,11 +418,11 @@ msgstr ""
402
  msgid "Month"
403
  msgstr ""
404
 
405
- #: classes/admin/class-admin-reports.php:413, classes/admin/class-wcv-commissions-csv-exporter.php:48, classes/admin/class-wcv-commissions-page.php:135
406
  msgid "Tax"
407
  msgstr ""
408
 
409
- #: classes/admin/class-admin-reports.php:414, classes/admin/class-wcv-commissions-csv-exporter.php:47, classes/admin/class-wcv-commissions-page.php:134, templates/dashboard/orders.php:54, templates/orders/orders.php:148, classes/admin/settings/class-wcv-settings-capabilities.php:107
410
  msgid "Shipping"
411
  msgstr ""
412
 
@@ -438,22 +454,26 @@ msgstr ""
438
  msgid "Set primary role to %s "
439
  msgstr ""
440
 
441
- #: classes/admin/class-product-meta.php:138, classes/admin/class-product-meta.php:274
442
  msgid "Assign media to %s"
443
  msgstr ""
444
 
445
- #: classes/admin/class-product-meta.php:187, classes/admin/class-product-meta.php:205, classes/admin/class-wcv-commissions-csv-exporter.php:46, classes/admin/class-wcv-commissions-page.php:133, templates/dashboard/reports.php:38, templates/emails/vendor-order-details.php:42, 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
446
  msgid "Commission"
447
  msgstr ""
448
 
449
- #: classes/admin/class-product-meta.php:214, classes/admin/views/html-vendor-meta.php:110
450
  msgid "Leave blank for default"
451
  msgstr ""
452
 
453
- #: classes/admin/class-product-meta.php:233
454
  msgid "%s Store "
455
  msgstr ""
456
 
 
 
 
 
457
  #: classes/admin/class-setup-wizard.php:79
458
  msgid "Start"
459
  msgstr ""
@@ -471,7 +491,7 @@ msgid "Ready!"
471
  msgstr ""
472
 
473
  #. translators: %1$s: link to videos, %2$s: link to docs
474
- #: classes/admin/class-setup-wizard.php:408
475
  msgid "Don't forget to check our <a href=\"%1$s\" target=\"_blank\">documentation</a> to learn more about setting up WC Vendors and if you need help, be sure to visit our <a href=\"%2$s\" target=\"_blank\">free support forums</a>."
476
  msgstr ""
477
 
@@ -503,7 +523,7 @@ msgstr ""
503
  msgid "orders"
504
  msgstr ""
505
 
506
- #: classes/admin/class-vendor-admin-dashboard.php:378, classes/admin/class-wcv-commissions-csv-exporter.php:44, classes/admin/class-wcv-commissions-page.php:129
507
  msgid "Order ID"
508
  msgstr ""
509
 
@@ -515,7 +535,7 @@ msgstr ""
515
  msgid "Products"
516
  msgstr ""
517
 
518
- #: classes/admin/class-vendor-admin-dashboard.php:383, classes/admin/class-wcv-commissions-csv-exporter.php:51, classes/admin/class-wcv-commissions-page.php:138, templates/dashboard/orders.php:57, classes/front/orders/class-orders.php:219
519
  msgid "Date"
520
  msgstr ""
521
 
@@ -791,6 +811,10 @@ msgstr ""
791
  msgid "Enable %s backorder stock notifications"
792
  msgstr ""
793
 
 
 
 
 
794
  #: classes/admin/class-wcv-commissions-page.php:132, 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:39, classes/front/orders/class-export-csv.php:17
795
  msgid "Quantity"
796
  msgstr ""
@@ -1929,7 +1953,7 @@ msgid "Enable %s store info tab on the single product page"
1929
  msgstr ""
1930
 
1931
  #: classes/admin/settings/class-wcv-settings-display.php:174
1932
- msgid "%s store Info label"
1933
  msgstr ""
1934
 
1935
  #: classes/admin/settings/class-wcv-settings-display.php:175
@@ -2372,15 +2396,11 @@ msgstr ""
2372
  msgid "Save Shop Settings"
2373
  msgstr ""
2374
 
2375
- #: classes/front/account/class-wc-account-links.php:52, classes/front/signup/class-vendor-signup.php:45
2376
- msgid "Become a "
2377
- msgstr ""
2378
-
2379
- #: classes/front/account/class-wc-account-links.php:56
2380
  msgid "%s %s"
2381
  msgstr ""
2382
 
2383
- #: classes/front/account/class-wc-account-links.php:101
2384
  msgid "You are already an approved vendor, no need to apply"
2385
  msgstr ""
2386
 
@@ -2885,59 +2905,67 @@ msgstr ""
2885
  msgid "Subscribe me"
2886
  msgstr ""
2887
 
2888
- #: classes/admin/views/setup/ready.php:57
2889
- msgid "Next step"
2890
- msgstr ""
2891
-
2892
  #: classes/admin/views/setup/ready.php:58
2893
- msgid "Upgrade to Pro!"
2894
  msgstr ""
2895
 
2896
  #: classes/admin/views/setup/ready.php:59
2897
- msgid "Upgrade today to extend the features of your marketplace."
2898
  msgstr ""
2899
 
2900
  #: classes/admin/views/setup/ready.php:60
2901
- msgid "Features"
2902
  msgstr ""
2903
 
2904
- #: classes/admin/views/setup/ready.php:62
2905
- msgid "Complete frontend dashboard for vendors"
2906
  msgstr ""
2907
 
2908
  #: classes/admin/views/setup/ready.php:63
2909
- msgid "Flat rate & table rate shipping module"
2910
  msgstr ""
2911
 
2912
  #: classes/admin/views/setup/ready.php:64
2913
- msgid "Coupons, ratings, reports, orders and more."
2914
  msgstr ""
2915
 
2916
  #: classes/admin/views/setup/ready.php:65
2917
- msgid "Advanced commissions"
2918
  msgstr ""
2919
 
2920
  #: classes/admin/views/setup/ready.php:66
 
 
 
 
2921
  msgid "Premium support & updates"
2922
  msgstr ""
2923
 
2924
- #: classes/admin/views/setup/ready.php:74
2925
- msgid "Upgrade Now"
2926
  msgstr ""
2927
 
2928
- #: classes/admin/views/setup/ready.php:81
2929
- msgid "Extend your marketplace"
2930
  msgstr ""
2931
 
2932
  #: classes/admin/views/setup/ready.php:83
2933
- msgid "Extend your marketplace today with a variety of extensions from us and 3rd party developers."
 
 
 
 
 
 
 
 
2934
  msgstr ""
2935
 
2936
- #: classes/admin/views/setup/ready.php:90
2937
- msgid "View Extensions"
2938
  msgstr ""
2939
 
2940
- #: classes/admin/views/setup/ready.php:96
2941
  msgid "Need Help?"
2942
  msgstr ""
2943
 
28
  msgid "<b>WC Vendors Marketplace is inactive</b>. WC Vendors Marketplace requires a minimum of WooCommerce 3.0.0 to operate."
29
  msgstr ""
30
 
31
+ #: class-wc-vendors.php:320
32
  msgid "Are you sure you want mark all commissions paid?"
33
  msgstr ""
34
 
35
+ #: class-wc-vendors.php:424
36
  msgid "WC Vendors 2.0 is a major update. This is not compatible with any of our existing extensions. You should test this update on a staging server before updating. Backup your site and update your theme and extensions, and <a href=\"%s\">review update details here</a> before upgrading."
37
  msgstr ""
38
 
39
+ #: class-wc-vendors.php:439
40
  msgid "WC Vendors Pro 1.5.0 is required to run WC Vendors 2.0.0. Your current version %s will be deactivated. Please upgrade to the latest version."
41
  msgstr ""
42
 
56
  msgid "Payment total: %s"
57
  msgstr ""
58
 
59
+ #: classes/class-install.php:159, classes/admin/class-wcv-admin-setup.php:153
60
  msgid "Pending %s"
61
  msgstr ""
62
 
63
+ #: classes/class-install.php:173, classes/admin/class-admin-reports.php:207, classes/admin/class-admin-reports.php:530, classes/admin/class-product-meta.php:271, classes/admin/class-product-meta.php:341, classes/admin/class-setup-wizard.php:349, classes/admin/class-wcv-admin-setup.php:148, classes/admin/class-wcv-admin-setup.php:365, classes/admin/class-wcv-commissions-csv-exporter.php:44, classes/admin/class-wcv-commissions-page.php:130, classes/admin/class-wcv-commissions-sum-csv-exporter.php:43, classes/admin/settings/class-wcv-settings-display.php:113, classes/admin/settings/class-wcv-settings-display.php:121, classes/admin/settings/class-wcv-settings-display.php:229
64
  msgid "%s"
65
  msgstr ""
66
 
67
+ #: classes/class-install.php:257
68
  msgctxt "Page slug"
69
  msgid "vendor_dashboard"
70
  msgstr ""
71
 
72
+ #: classes/class-install.php:259
73
  msgctxt "Page title"
74
  msgid "%s Dashboard"
75
  msgstr ""
76
 
77
+ #: classes/class-install.php:265
78
  msgctxt "Page slug"
79
  msgid "vendors"
80
  msgstr ""
81
 
82
+ #: classes/class-install.php:267
83
  msgctxt "Page title"
84
  msgid "%s"
85
  msgstr ""
86
 
87
+ #: classes/class-install.php:275
88
  msgctxt "Page slug"
89
  msgid "shop_settings"
90
  msgstr ""
91
 
92
+ #: classes/class-install.php:276
93
  msgctxt "Page title"
94
  msgid "Shop Settings"
95
  msgstr ""
96
 
97
+ #: classes/class-install.php:281
98
  msgctxt "Page slug"
99
  msgid "product_orders"
100
  msgstr ""
101
 
102
+ #: classes/class-install.php:282
103
  msgctxt "Page title"
104
  msgid "Orders"
105
  msgstr ""
106
 
107
+ #: classes/class-install.php:491
108
  msgid "View WC Vendors settings"
109
  msgstr ""
110
 
111
+ #: classes/class-install.php:491, templates/dashboard/settings/settings.php:17
112
  msgid "Settings"
113
  msgstr ""
114
 
115
+ #: classes/class-install.php:509
116
  msgid "View WC Vendors documentation"
117
  msgstr ""
118
 
119
+ #: classes/class-install.php:509
120
  msgid "Docs"
121
  msgstr ""
122
 
123
+ #: classes/class-install.php:510
124
  msgid "Visit community forums"
125
  msgstr ""
126
 
127
+ #: classes/class-install.php:510
128
  msgid "Free support"
129
  msgstr ""
130
 
131
+ #: classes/class-install.php:511
132
  msgid "Buy premium customer support"
133
  msgstr ""
134
 
135
+ #: classes/class-install.php:511
136
  msgid "Premium support"
137
  msgstr ""
138
 
139
+ #: classes/class-install.php:547
140
+ msgid "Vendor is enabled"
141
+ msgstr ""
142
+
143
+ #: classes/class-install.php:548
144
+ msgid "Vendor is verified"
145
+ msgstr ""
146
+
147
+ #: classes/class-install.php:549
148
+ msgid "Vendor is trusted"
149
+ msgstr ""
150
+
151
+ #: classes/class-install.php:552
152
  msgid "View sales overview"
153
  msgstr ""
154
 
155
+ #: classes/class-install.php:553
156
  msgid "View sales report chart"
157
  msgstr ""
158
 
159
+ #: classes/class-install.php:554
160
  msgid "View vendor notices"
161
  msgstr ""
162
 
163
+ #: classes/class-install.php:555
164
  msgid "View order report"
165
  msgstr ""
166
 
167
+ #: classes/class-install.php:556
168
  msgid "View order overview"
169
  msgstr ""
170
 
171
+ #: classes/class-install.php:557
172
  msgid "View ratings report"
173
  msgstr ""
174
 
175
+ #: classes/class-install.php:558
176
  msgid "View product status report"
177
  msgstr ""
178
 
179
+ #: classes/class-install.php:561
180
  msgid "View order"
181
  msgstr ""
182
 
183
+ #: classes/class-install.php:562
184
  msgid "Add order notes"
185
  msgstr ""
186
 
187
+ #: classes/class-install.php:563
188
  msgid "View order notes"
189
  msgstr ""
190
 
191
+ #: classes/class-install.php:564, templates/orders/csv-export.php:22
192
  msgid "Export orders"
193
  msgstr ""
194
 
195
+ #: classes/class-install.php:565
196
+ msgid "Manage order status"
197
+ msgstr ""
198
+
199
+ #: classes/class-install.php:566
200
  msgid "View customer name"
201
  msgstr ""
202
 
203
+ #: classes/class-install.php:567
204
  msgid "View customer email address"
205
  msgstr ""
206
 
207
+ #: classes/class-install.php:568
208
  msgid "View customer phone number"
209
  msgstr ""
210
 
211
+ #: classes/class-install.php:569, classes/class-install.php:572
212
  msgid "View customer shipping name"
213
  msgstr ""
214
 
215
+ #: classes/class-install.php:570
216
  msgid "View customer shipping address fields"
217
  msgstr ""
218
 
219
+ #: classes/class-install.php:571
220
  msgid "View customer billing address fields"
221
  msgstr ""
222
 
223
+ #: classes/class-install.php:575
224
  msgid "Add product"
225
  msgstr ""
226
 
227
+ #: classes/class-install.php:576
228
  msgid "Edit product"
229
  msgstr ""
230
 
231
+ #: classes/class-install.php:577
232
  msgid "Edit published product"
233
  msgstr ""
234
 
235
+ #: classes/class-install.php:578
236
  msgid "Publish product directly without approval"
237
  msgstr ""
238
 
239
+ #: classes/class-install.php:579
240
  msgid "Delete product"
241
  msgstr ""
242
 
243
+ #: classes/class-install.php:580
244
  msgid "Duplicate product"
245
  msgstr ""
246
 
247
+ #: classes/class-install.php:581
248
  msgid "View product"
249
  msgstr ""
250
 
251
+ #: classes/class-install.php:585
252
  msgid "View overview report"
253
  msgstr ""
254
 
255
+ #: classes/class-install.php:586
256
  msgid "View daily sales report"
257
  msgstr ""
258
 
259
+ #: classes/class-install.php:587
260
  msgid "View top selling report"
261
  msgstr ""
262
 
263
+ #: classes/class-install.php:588
264
  msgid "View top earning report"
265
  msgstr ""
266
 
267
+ #: classes/class-install.php:591
268
  msgid "View dashboard menu"
269
  msgstr ""
270
 
271
+ #: classes/class-install.php:592
272
  msgid "View product menu"
273
  msgstr ""
274
 
275
+ #: classes/class-install.php:593
276
  msgid "View order menu"
277
  msgstr ""
278
 
279
+ #: classes/class-install.php:594
280
  msgid "View store settings menu"
281
  msgstr ""
282
 
310
  msgid "WC Vendors Extensions"
311
  msgstr ""
312
 
313
+ #: classes/admin/class-admin-menus.php:64
314
  msgid "Extensions"
315
  msgstr ""
316
 
374
  msgid "Order"
375
  msgstr ""
376
 
377
+ #: classes/admin/class-admin-reports.php:206, classes/admin/class-wcv-commissions-csv-exporter.php:45, classes/admin/class-wcv-commissions-page.php:131, 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:37, classes/admin/emails/class-wcv-vendor-notify-cancelled-order.php:195, classes/admin/emails/class-wcv-vendor-notify-order.php:222
378
  msgid "Product"
379
  msgstr ""
380
 
381
+ #: classes/admin/class-admin-reports.php:208, classes/admin/class-admin-reports.php:441, classes/admin/class-vendor-admin-dashboard.php:381, classes/admin/class-wcv-commissions-csv-exporter.php:50, classes/admin/class-wcv-commissions-page.php:136, classes/admin/class-wcv-commissions-sum-csv-exporter.php:44, templates/dashboard/orders.php:56
382
  msgid "Total"
383
  msgstr ""
384
 
386
  msgid "Date &amp; Time"
387
  msgstr ""
388
 
389
+ #: classes/admin/class-admin-reports.php:210, classes/admin/class-admin-reports.php:533, classes/admin/class-wcv-commissions-csv-exporter.php:51, classes/admin/class-wcv-commissions-page.php:137
390
  msgid "Status"
391
  msgstr ""
392
 
418
  msgid "Month"
419
  msgstr ""
420
 
421
+ #: classes/admin/class-admin-reports.php:413, classes/admin/class-wcv-commissions-csv-exporter.php:49, classes/admin/class-wcv-commissions-page.php:135
422
  msgid "Tax"
423
  msgstr ""
424
 
425
+ #: classes/admin/class-admin-reports.php:414, classes/admin/class-wcv-commissions-csv-exporter.php:48, classes/admin/class-wcv-commissions-page.php:134, templates/dashboard/orders.php:54, templates/orders/orders.php:148, classes/admin/settings/class-wcv-settings-capabilities.php:107
426
  msgid "Shipping"
427
  msgstr ""
428
 
454
  msgid "Set primary role to %s "
455
  msgstr ""
456
 
457
+ #: classes/admin/class-product-meta.php:142, classes/admin/class-product-meta.php:278
458
  msgid "Assign media to %s"
459
  msgstr ""
460
 
461
+ #: classes/admin/class-product-meta.php:191, classes/admin/class-product-meta.php:209, classes/admin/class-wcv-commissions-csv-exporter.php:47, classes/admin/class-wcv-commissions-page.php:133, templates/dashboard/reports.php:38, templates/emails/vendor-order-details.php:42, 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
462
  msgid "Commission"
463
  msgstr ""
464
 
465
+ #: classes/admin/class-product-meta.php:218, classes/admin/views/html-vendor-meta.php:110
466
  msgid "Leave blank for default"
467
  msgstr ""
468
 
469
+ #: classes/admin/class-product-meta.php:237
470
  msgid "%s Store "
471
  msgstr ""
472
 
473
+ #: classes/admin/class-product-meta.php:322
474
+ msgid "— No change —"
475
+ msgstr ""
476
+
477
  #: classes/admin/class-setup-wizard.php:79
478
  msgid "Start"
479
  msgstr ""
491
  msgstr ""
492
 
493
  #. translators: %1$s: link to videos, %2$s: link to docs
494
+ #: classes/admin/class-setup-wizard.php:410
495
  msgid "Don't forget to check our <a href=\"%1$s\" target=\"_blank\">documentation</a> to learn more about setting up WC Vendors and if you need help, be sure to visit our <a href=\"%2$s\" target=\"_blank\">free support forums</a>."
496
  msgstr ""
497
 
523
  msgid "orders"
524
  msgstr ""
525
 
526
+ #: classes/admin/class-vendor-admin-dashboard.php:378, classes/admin/class-wcv-commissions-csv-exporter.php:43, classes/admin/class-wcv-commissions-page.php:129
527
  msgid "Order ID"
528
  msgstr ""
529
 
535
  msgid "Products"
536
  msgstr ""
537
 
538
+ #: classes/admin/class-vendor-admin-dashboard.php:383, classes/admin/class-wcv-commissions-csv-exporter.php:52, classes/admin/class-wcv-commissions-page.php:138, templates/dashboard/orders.php:57, classes/front/orders/class-orders.php:219
539
  msgid "Date"
540
  msgstr ""
541
 
811
  msgid "Enable %s backorder stock notifications"
812
  msgstr ""
813
 
814
+ #: classes/admin/class-wcv-commissions-csv-exporter.php:46
815
+ msgid "QTY"
816
+ msgstr ""
817
+
818
  #: classes/admin/class-wcv-commissions-page.php:132, 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:39, classes/front/orders/class-export-csv.php:17
819
  msgid "Quantity"
820
  msgstr ""
1953
  msgstr ""
1954
 
1955
  #: classes/admin/settings/class-wcv-settings-display.php:174
1956
+ msgid "%s store info label"
1957
  msgstr ""
1958
 
1959
  #: classes/admin/settings/class-wcv-settings-display.php:175
2396
  msgid "Save Shop Settings"
2397
  msgstr ""
2398
 
2399
+ #: classes/front/account/class-wc-account-links.php:57
 
 
 
 
2400
  msgid "%s %s"
2401
  msgstr ""
2402
 
2403
+ #: classes/front/account/class-wc-account-links.php:103
2404
  msgid "You are already an approved vendor, no need to apply"
2405
  msgstr ""
2406
 
2905
  msgid "Subscribe me"
2906
  msgstr ""
2907
 
 
 
 
 
2908
  #: classes/admin/views/setup/ready.php:58
2909
+ msgid "Make your life easy"
2910
  msgstr ""
2911
 
2912
  #: classes/admin/views/setup/ready.php:59
2913
+ msgid "Upgrade to Pro!"
2914
  msgstr ""
2915
 
2916
  #: classes/admin/views/setup/ready.php:60
2917
+ msgid "Upgrade today to enhance your marketplace for the best chance of success."
2918
  msgstr ""
2919
 
2920
+ #: classes/admin/views/setup/ready.php:61
2921
+ msgid "Features"
2922
  msgstr ""
2923
 
2924
  #: classes/admin/views/setup/ready.php:63
2925
+ msgid "Remove the need for vendors to access the WordPress dmin with a complete frontend dashboard"
2926
  msgstr ""
2927
 
2928
  #: classes/admin/views/setup/ready.php:64
2929
+ msgid "Flat rate & table rate shipping module"
2930
  msgstr ""
2931
 
2932
  #: classes/admin/views/setup/ready.php:65
2933
+ msgid "Coupons, ratings, reports, orders and more."
2934
  msgstr ""
2935
 
2936
  #: classes/admin/views/setup/ready.php:66
2937
+ msgid "Advanced commission including fixed and tiered"
2938
+ msgstr ""
2939
+
2940
+ #: classes/admin/views/setup/ready.php:67
2941
  msgid "Premium support & updates"
2942
  msgstr ""
2943
 
2944
+ #: classes/admin/views/setup/ready.php:68
2945
+ msgid "Starting from $199 annually"
2946
  msgstr ""
2947
 
2948
+ #: classes/admin/views/setup/ready.php:76
2949
+ msgid "Upgrade Today"
2950
  msgstr ""
2951
 
2952
  #: classes/admin/views/setup/ready.php:83
2953
+ msgid "Extend your marketplace"
2954
+ msgstr ""
2955
+
2956
+ #: classes/admin/views/setup/ready.php:84
2957
+ msgid "Premium Extensions"
2958
+ msgstr ""
2959
+
2960
+ #: classes/admin/views/setup/ready.php:85
2961
+ msgid "Turn your marketplace into an auction or subscription site, charge your vendors a monthly membership and more with our awesome premium extensions."
2962
  msgstr ""
2963
 
2964
+ #: classes/admin/views/setup/ready.php:92
2965
+ msgid "Buy Premium Extensions"
2966
  msgstr ""
2967
 
2968
+ #: classes/admin/views/setup/ready.php:98
2969
  msgid "Need Help?"
2970
  msgstr ""
2971
 
readme.txt CHANGED
@@ -9,7 +9,7 @@ Requires PHP: 5.6
9
  Tested up to: 5.2.2
10
  WC requires at least: 3.3.0
11
  WC tested up to: 3.7.0
12
- Stable tag: 2.1.13
13
  License: GPLv2 or later
14
 
15
  The number one most downloaded marketplace plugin for WooCommerce. Now you can allow anyone to open a store on your WooCommerce site!
@@ -228,6 +228,16 @@ WC Vendors Marketplace does not work with multisite WordPress. There are no plan
228
 
229
  == Changelog ==
230
 
 
 
 
 
 
 
 
 
 
 
231
  = Verison 2.1.13 - 26th August 2019 =
232
 
233
  * Added: New shop description option for vendor store page
@@ -242,16 +252,17 @@ WC Vendors Marketplace does not work with multisite WordPress. There are no plan
242
 
243
  = Version 2.1.12 - 26th June 2019 =
244
 
245
- * Added: New shop description option for vendor store page
246
- * Added: Check post type on delete for sub orders
247
- * Added: Tool to remove orphaned vendor sub orders
248
- * Updated: gulp and build language file. (#585)
249
- * Updated: WooCommerce 3.7 compatibility testing
250
- * Fixed: Translated strings saved to database aren't translated on output #579
251
- * Fixed: Delete vendor sub orders when parent order is deteled #558
252
- * Fixed: Approving a vendor sends an email to the admin #578 (#582)
253
- * Fixed: Urls on settings page
254
- * Fixed: Hide product featured input if capability disabled. (#587)
 
255
 
256
  = Version 2.1.11 - 13th June 2019 =
257
 
9
  Tested up to: 5.2.2
10
  WC requires at least: 3.3.0
11
  WC tested up to: 3.7.0
12
+ Stable tag: 2.1.14
13
  License: GPLv2 or later
14
 
15
  The number one most downloaded marketplace plugin for WooCommerce. Now you can allow anyone to open a store on your WooCommerce site!
228
 
229
  == Changelog ==
230
 
231
+ = Version 2.1.14 - 11th September 2019 =
232
+
233
+ * Added: Bulk edit assign vendor to products (#591)
234
+ * Added: Add product details and correct order ID for commission csv exports
235
+ * Added: New order item argument for commission calculations
236
+ * Added: Filters to hide headers. (#589)
237
+ * Updated: Tested to 5.2.3
238
+ * Fixed: Php notice on orders view page
239
+ * Fixed: spelling in attributes file
240
+
241
  = Verison 2.1.13 - 26th August 2019 =
242
 
243
  * Added: New shop description option for vendor store page
252
 
253
  = Version 2.1.12 - 26th June 2019 =
254
 
255
+ * Added: Become a vendor label
256
+ * Added: Bulk assign media to vendor #565 (#577)
257
+ * Added: New filter to filter the sold by template (#575)
258
+ * Added: GitHub Contributing templates (#574)
259
+ * Updated: Moved become a vendor to label settings page
260
+ * Updated: Extensions pages and related links
261
+ * Updated: Tested to 5.2.2 of WP
262
+ * Fixed: Column width on products page for vendor store column
263
+ * Fixed: Custom columns on user page not populated for other plugins #576
264
+ * Fixed: Wrong user meta name for banking details (#572)
265
+ * Fixed: Vendor description output on single product page when disabled #573
266
 
267
  = Version 2.1.11 - 13th June 2019 =
268
 
wporg-deply.sh ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Note that this does not use pipefail
4
+ # because if the grep later doesn't match any deleted files,
5
+ # which is likely the majority case,
6
+ # it does not exit with a 0, and I only care about the final exit.
7
+ set -eo
8
+
9
+ # Ensure SVN username is set
10
+ # IMPORTANT: while secrets are encrypted and not viewable in the GitHub UI,
11
+ # they are by necessity provided as plaintext in the context of the Action,
12
+ # so do not echo or use debug mode unless you want your secrets exposed!
13
+ if [[ -z "$SVN_USERNAME" ]]; then
14
+ echo "Set the SVN_USERNAME secret or environment variable"
15
+ exit 1
16
+ fi
17
+
18
+ # Set the SLACK Announce URL
19
+ if [[ -z "$SLACKURL" ]]; then
20
+ echo "Set the SLACKURL secret or environment variable"
21
+ exit 1
22
+ fi
23
+
24
+ # Git path is the current working dir
25
+ if [[ -z "$GITPATH" ]]; then
26
+ GITPATH=`pwd`
27
+ fi
28
+ echo "ℹ︎ GITPATH is $GITPATH"
29
+
30
+ # Allow some ENV variables to be customized
31
+ if [[ -z "$SLUG" ]]; then
32
+ SLUG="wc-vendors"
33
+ fi
34
+ echo "ℹ︎ SLUG is $SLUG"
35
+
36
+ # WordPress.org assets dir
37
+ if [[ -z "$ASSETS_DIR" ]]; then
38
+ ASSETS_DIR=".wordpress-org"
39
+ fi
40
+ echo "ℹ︎ ASSETS_DIR is $ASSETS_DIR"
41
+
42
+ # Get version from the readme
43
+ if [[ -z "$VERSION" ]]; then
44
+ VERSION=`grep "^Stable tag:" $GITPATH/readme.txt | awk -F' ' '{print $NF}' | tr -d '\015'`
45
+ fi
46
+ echo "ℹ︎ VERSION is $VERSION"
47
+
48
+ SVN_URL="https://plugins.svn.wordpress.org/${SLUG}/"
49
+ SVN_DIR="/tmp/${SLUG}"
50
+
51
+ # Checkout just trunk and assets for efficiency
52
+ # Tagging will be handled on the SVN level
53
+ echo "➤ Checking out .org repository..."
54
+ svn checkout --depth immediates "$SVN_URL" "$SVN_DIR"
55
+ cd "$SVN_DIR"
56
+ svn update --set-depth infinity assets
57
+ svn update --set-depth infinity trunk
58
+
59
+ echo "➤ Copying files..."
60
+ cd "$GITPATH"
61
+
62
+ # "Export" a cleaned copy to a temp directory
63
+ TMP_DIR="/tmp/${SLUG}-clean"
64
+ rm -rf "$TMP_DIR"
65
+ mkdir "$TMP_DIR"
66
+
67
+ # This will exclude everything in the .gitattributes file with the export-ignore flag
68
+ git archive HEAD | tar x --directory="$TMP_DIR"
69
+
70
+ cd "$SVN_DIR"
71
+
72
+ # Copy from clean copy to /trunk, excluding dotorg assets
73
+ # The --delete flag will delete anything in destination that no longer exists in source
74
+ rsync -rc "$TMP_DIR/" trunk/ --delete
75
+
76
+ # Copy dotorg assets to /assets
77
+ rsync -rc "$GITPATH/$ASSETS_DIR/" assets/ --delete
78
+
79
+ # Add everything and commit to SVN
80
+ # The force flag ensures we recurse into subdirectories even if they are already added
81
+ # Suppress stdout in favor of svn status later for readability
82
+ echo "➤ Preparing files..."
83
+ svn add . --force > /dev/null
84
+
85
+ # SVN delete all deleted files
86
+ # Also suppress stdout here
87
+ svn status | grep '^\!' | sed 's/! *//' | xargs -I% svn rm % > /dev/null
88
+
89
+ # Copy tag locally to make this a single commit
90
+ echo "➤ Copying tag..."
91
+ svn cp "trunk" "tags/$VERSION"
92
+
93
+ svn status
94
+
95
+ echo "➤ Committing files..."
96
+ svn commit -m "Update to version $VERSION from GitHub" --no-auth-cache --non-interactive --username "$SVN_USERNAME"
97
+
98
+ echo "➤ Announcing to slack..."
99
+ curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"✓ WC Vendors Marketplace $VERSION deployed to wordpress.org\"}" $SLACKURL
100
+
101
+ echo "✓ Plugin deployed!"