woocommerce/assets/css/admin.scss

5934 lines
88 KiB
SCSS
Raw Normal View History

2014-11-18 12:52:00 +00:00
/**
* admin.scss
* General WooCommerce admin styles. Settings, product data tabs, reports, etc.
*/
/**
* Imports
*/
@import 'mixins';
@import 'variables';
@import 'animation';
@import 'fonts';
/**
* Styling begins
*/
2014-11-13 18:28:15 +00:00
.blockUI.blockOverlay {
@include loader();
}
2013-08-06 13:04:24 +00:00
.wc_addons_wrap {
2016-09-20 17:42:46 +00:00
.addons-featured {
max-width: 1140px;
margin: -1%;
}
.addons-banner-block-item-icon,
.addons-column-block-item-icon {
align-items: center;
display: flex;
justify-content: center;
}
2017-05-30 22:33:13 +00:00
.addons-banner-block,
.addons-wcs-banner-block {
2016-09-20 17:42:46 +00:00
background: #ffffff;
box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
margin: 2% 1% 0;
max-width: 1140px;
padding: 20px;
}
.addons-banner-block img {
height: 62px;
}
.addons-banner-block p {
margin: 0 0 20px;
}
.addons-banner-block-items {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
margin: 0 -10px 0 -10px;
}
.addons-banner-block-item {
border: 1px solid #e6e6e6;
border-radius: 3px;
flex: 1 1 200px;
margin: 10px;
max-width: 350px;
min-width: 200px;
width: 30%;
}
.addons-banner-block-item-icon {
background: #f7f7f7;
height: 143px;
2016-09-20 17:42:46 +00:00
}
.addons-banner-block-item-content {
display: flex;
flex-direction: column;
height: 184px;
justify-content: space-between;
padding: 24px;
}
.addons-banner-block-item-content h3 {
margin-top: 0;
}
.addons-banner-block-item-content p {
margin: 0 0 auto;
}
2017-05-30 22:33:13 +00:00
.addons-wcs-banner-block {
display: flex;
align-items: center;
2017-06-05 15:28:28 +00:00
}
.addons-wcs-banner-block-image {
background: #f7f7f7;
border: 1px solid #e6e6e6;
margin-right: 2em;
padding: 4em;
2017-05-30 22:33:13 +00:00
.addons-img {
2017-06-05 15:28:28 +00:00
max-height: 86px;
max-width: 97px;
2017-05-30 22:33:13 +00:00
}
}
.addons-shipping-methods .addons-wcs-banner-block {
margin-left: 0;
margin-right: 0;
margin-top: 1em;
}
2017-05-30 22:33:13 +00:00
.addons-wcs-banner-block-content {
display: flex;
flex-direction: column;
2017-06-05 15:28:28 +00:00
justify-content: space-around;
align-self: stretch;
padding: 1em 0;
h1 {
padding-bottom: 0;
}
2017-06-05 20:22:30 +00:00
p {
margin-bottom: 0;
}
.wcs-service-logo {
max-width: 40px;
2017-06-05 15:28:28 +00:00
}
2017-05-30 22:33:13 +00:00
}
2016-09-20 17:42:46 +00:00
.addons-column-section {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
}
.addons-column {
flex: 1 1 200px;
margin: 0 1%;
width: 49.5%;
}
.addons-small-light-block,
.addons-small-dark-block,
.addons-column-block {
box-sizing: border-box;
box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
margin: 4% 0 0;
padding: 20px;
}
.addons-column-block img {
max-height: 50px;
max-width: 50px;
}
.addons-small-light-block,
.addons-column-block {
background: #ffffff;
}
.addons-column-block-left {
float: left;
}
.addons-column-block-right {
float: right;
}
.addons-column-block-item {
display: flex;
border-top: 2px solid #f9f9f9;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
margin: 0 -20px;
padding: 20px;
}
.addons-column-block-item-icon {
background: #f7f7f7;
border: 1px solid #e6e6e6;
height: 100px;
margin: 0 10px 10px 0;
width: 100px;
}
.addons-column-block-item-content {
display: flex;
flex: 1 1 200px;
flex-wrap: wrap;
height: 20%;
justify-content: space-between;
min-width: 200px;
}
.addons-column-block-item-content h2 {
float: left;
margin-top: 8px;
}
.addons-column-block-item-content a {
float: right;
}
.addons-column-block-item-content p {
float: left;
}
.addons-small-dark-block {
background-color: #54687d;
text-align: center;
}
.addons-small-dark-items {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.addons-small-dark-item {
margin: 0 0 20px;
}
.addons-small-dark-block h1 {
color: #ffffff;
}
.addons-small-dark-block p {
color: #fafafa;
}
.addons-small-dark-item-icon img {
height: 30px;
}
.addons-small-dark-item a {
margin: 28px auto 0;
}
.addons-small-light-block {
display: flex;
flex-wrap: wrap;
}
.addons-small-light-block h1 {
margin-top: -12px;
}
.addons-small-light-block p {
margin-top: 0;
}
.addons-small-light-block img {
height: 225px;
margin: 0 0 0 -20px;
}
.addons-small-light-block-content {
display: flex;
flex: 1 1 100px;
flex-direction: column;
justify-content: space-around;
}
.addons-small-light-block-buttons {
display: flex;
justify-content: space-between;
}
.addons-small-light-block-content a {
width: 48%;
}
.addons-button {
border-radius: 3px;
cursor: pointer;
display: block;
height: 37px;
line-height: 37px;
text-align: center;
text-decoration: none;
width: 124px;
}
.addons-button-solid {
background-color: #955a89;
color: #ffffff;
}
.addons-button-solid:hover {
color: #ffffff;
opacity: 0.8;
}
.addons-button-outline-green {
border: 1px solid #73ae39;
color: #73ae39;
}
.addons-button-outline-green:hover {
color: #73ae39;
opacity: 0.8;
}
.addons-button-outline-white {
border: 1px solid #ffffff;
color: #ffffff;
}
.addons-button-outline-white:hover {
color: #ffffff;
opacity: 0.8;
}
.addons-button-installed {
background: #e6e6e6;
color: #3c3c3c;
}
.addons-button-installed:hover {
color: #3c3c3c;
opacity: 0.8;
}
@media only screen and (max-width : 400px) {
.addons-featured {
margin: -1% -5%;
}
.addons-button {
width: 100%;
}
.addons-small-dark-item {
width: 100%;
}
.addons-column-block-item-icon {
background: none;
border: none;
height: 75px;
margin: 0 10px 10px 0;
width: 75px;
}
}
2013-08-06 13:04:24 +00:00
.products {
2013-08-22 11:38:05 +00:00
overflow: hidden;
2013-08-06 13:04:24 +00:00
li {
2013-08-22 11:38:05 +00:00
float: left;
2013-11-08 11:04:55 +00:00
margin: 0 1em 1em 0 !important;
2013-08-06 13:04:24 +00:00
padding: 0;
vertical-align: top;
width: 300px;
a {
text-decoration: none;
color: inherit;
border: 1px solid #ddd;
display: block;
2013-11-12 16:15:09 +00:00
min-height: 220px;
2013-08-06 13:04:24 +00:00
overflow: hidden;
2013-12-13 10:45:13 +00:00
background: #f5f5f5;
2013-08-06 13:04:24 +00:00
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.2),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
2013-08-06 13:04:24 +00:00
img {
max-width: 258px;
2013-11-12 16:15:09 +00:00
max-height: 24px;
padding: 17px 20px;
2013-08-06 13:04:24 +00:00
display: block;
margin: 0;
background: #fff;
border-right: 260px solid #fff;
}
img.extension-thumb + h3 {
2013-08-06 13:04:24 +00:00
display: none;
}
2013-08-06 13:04:24 +00:00
.price {
display: none;
}
h2, h3 {
2013-08-06 13:04:24 +00:00
margin: 0 !important;
padding: 20px !important;
background: #fff;
}
2013-08-06 13:04:24 +00:00
p {
padding: 20px !important;
margin: 0 !important;
border-top: 1px solid #f1f1f1;
}
&:hover,
&:focus {
2013-12-13 10:45:13 +00:00
background-color: #fff;
2013-08-06 13:04:24 +00:00
}
}
}
}
.storefront {
background: url('../images/storefront-bg.jpg') bottom right #f6f6f6;
border: 1px solid #ddd;
padding: 20px;
overflow: hidden;
zoom: 1;
img {
width: 278px;
height: auto;
float: left;
margin: 0 20px 0 0;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}
p {
max-width: 750px;
}
}
2013-08-06 13:04:24 +00:00
}
2016-06-03 13:07:41 +00:00
.woocommerce-message,
.woocommerce-BlankState {
a.button-primary,
button.button-primary {
background: #bb77ae;
border-color: #a36597;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
color: #fff;
text-shadow: 0 -1px 1px #a36597, 1px 0 1px #a36597, 0 1px 1px #a36597, -1px 0 1px #a36597;
2016-12-13 23:30:47 +00:00
display: inline-block;
2016-06-03 11:22:05 +00:00
&:hover, &:focus, &:active {
background: #a36597;
border-color: #a36597;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
}
}
2016-06-03 13:07:41 +00:00
}
.woocommerce-message {
position: relative;
border-left-color: #cc99c2 !important;
overflow: hidden;
a.skip,
a.docs {
2015-02-02 12:41:04 +00:00
text-decoration: none !important;
2013-11-19 11:22:59 +00:00
}
a.woocommerce-message-close {
position: absolute;
top: 10px;
right: 10px;
padding: 10px 15px 10px 21px;
font-size: 13px;
line-height: 1.23076923;
text-decoration: none;
&::before {
position: absolute;
top: 8px;
left: 0;
transition: all 0.1s ease-in-out;
}
}
.twitter-share-button {
2014-08-27 20:59:33 +00:00
margin-top: -3px;
margin-left: 3px;
vertical-align: middle;
}
}
#variable_product_options #message, #variable_product_options .notice {
margin: 10px;
}
2014-10-17 19:39:33 +00:00
.clear {
clear: both;
}
.wrap.woocommerce div.updated,
.wrap.woocommerce div.error {
margin-top: 10px;
}
mark.amount {
background: transparent none;
color: inherit;
}
.simplify-commerce-banner {
overflow: hidden;
img {
float: right;
padding: 15px 0;
margin-left: 1em;
width: 200px;
2012-11-20 16:49:05 +00:00
}
2012-03-05 17:19:00 +00:00
}
/**
* Help Tip
*/
.woocommerce-help-tip {
color: #666;
display: inline-block;
2016-03-08 10:51:57 +00:00
font-size: 1.1em;
font-style: normal;
height: 16px;
line-height: 16px;
position: relative;
vertical-align: middle;
width: 16px;
&::after {
@include icon_dashicons( '\f223' );
cursor: help;
}
}
2016-05-13 15:08:19 +00:00
h2 .woocommerce-help-tip {
margin-top: -5px;
margin-left: 0.25em;
2016-05-13 15:08:19 +00:00
}
table.wc_status_table {
margin-bottom: 1em;
h2 {
font-size: 14px;
margin: 0;
}
2017-04-04 16:30:16 +00:00
tr:nth-child( 2n ) {
th,
td {
background: #fcfcfc;
2013-11-08 11:50:45 +00:00
}
}
th {
2014-11-13 14:16:32 +00:00
font-weight: 700;
padding: 9px;
}
2013-02-02 15:56:00 +00:00
td:first-child {
width: 33%;
}
td.help {
width: 1em;
2013-02-02 15:56:00 +00:00
}
2017-08-15 11:05:34 +00:00
td, th {
padding: 2em;
2013-02-02 15:56:00 +00:00
font-size: 1.1em;
2017-08-15 11:05:34 +00:00
font-weight: normal;
&.run-tool {
text-align:right;
}
strong.name {
display: block;
margin-bottom: .5em;
}
2013-02-02 15:56:00 +00:00
mark {
background: transparent none;
}
mark.yes {
2014-09-22 17:35:48 +00:00
color: $green;
}
mark.no {
color: #999;
2012-08-02 22:13:20 +00:00
}
2017-08-15 11:05:34 +00:00
mark.error, .red {
2014-09-22 17:35:48 +00:00
color: $red;
}
ul {
margin: 0;
}
}
.help_tip {
cursor: help;
}
}
#debug-report {
display: none;
2013-11-22 17:20:25 +00:00
margin: 10px 0;
padding: 0;
position: relative;
textarea {
font-family: monospace;
width: 100%;
margin: 0;
height: 300px;
2013-11-22 17:20:25 +00:00
padding: 20px;
border-radius: 0;
resize: none;
font-size: 12px;
line-height: 20px;
outline: 0;
}
}
2016-12-26 11:11:18 +00:00
/**
* DB log viewer
*/
.wp-list-table.logs {
.log-level {
display: inline;
padding: .2em .6em .3em;
font-size: 80%;
font-weight: bold;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .2em;
&:empty {
display: none;
}
}
/**
* Add color to levels
*
* Descending severity:
* emergency, alert -> red
* critical, error -> orange
* warning, notice -> yellow
* info -> blue
* debug -> gree
*/
.log-level--emergency,
.log-level--alert {
background-color: #ff4136;
}
.log-level--critical,
.log-level--error {
background-color: #ff851b;
}
.log-level--warning,
.log-level--notice {
color: #222;
background-color: #ffdc00;
}
.log-level--info {
background-color: #0074d9;
}
.log-level--debug {
background-color: #3d9970;
}
// Adjust log table columns only when table is not collapsed
@media screen and ( min-width: 783px ) {
2016-12-23 07:58:39 +00:00
.column-timestamp {
2016-12-26 11:11:18 +00:00
width: 18%;
2016-12-23 07:58:39 +00:00
}
.column-level {
2016-12-26 11:11:18 +00:00
width: 14%;
2016-12-23 07:58:39 +00:00
}
.column-source {
width: 15%;
}
}
}
#log-viewer-select {
padding: 10px 0 8px;
2016-08-02 13:42:27 +00:00
line-height: 28px;
2017-04-04 16:30:16 +00:00
h2 a {
vertical-align: middle;
2016-08-02 13:42:27 +00:00
}
}
#log-viewer {
background: #fff;
border: 1px solid #e5e5e5;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
padding: 5px 20px;
pre {
font-family: monospace;
white-space: pre-wrap;
}
}
2012-02-20 18:19:27 +00:00
.inline-edit-product.quick-edit-row {
.inline-edit-col-center,
.inline-edit-col-right {
2012-02-20 14:29:51 +00:00
float: right !important;
}
}
2012-02-20 14:29:51 +00:00
#woocommerce-fields.inline-edit-col {
clear: left;
label.featured,
label.manage_stock {
2012-02-20 14:29:51 +00:00
margin-left: 10px;
}
2017-04-04 16:30:16 +00:00
.dimensions div {
display: block;
margin: 0.2em 0;
2017-04-04 16:30:16 +00:00
span.title {
display: block;
float: left;
width: 5em;
}
2017-04-04 16:30:16 +00:00
span.input-text-wrap {
display: block;
margin-left: 5em;
2012-02-20 14:29:51 +00:00
}
}
2012-02-20 14:29:51 +00:00
.text {
box-sizing: border-box;
2012-02-20 14:29:51 +00:00
width: 99%;
float: left;
margin: 1px 1% 1px 1px;
}
2012-02-20 14:29:51 +00:00
.length, .width, .height {
width: 32.33%;
}
.height {
margin-right: 0;
}
2012-02-20 14:29:51 +00:00
}
2012-02-20 18:19:27 +00:00
#woocommerce-fields-bulk.inline-edit-col {
label {
clear: left;
}
2012-02-20 18:19:27 +00:00
.inline-edit-group {
label {
2012-02-20 18:19:27 +00:00
clear: none;
width: 49%;
margin: 0.2em 0;
2012-02-20 18:19:27 +00:00
}
2017-04-04 16:30:16 +00:00
&.dimensions label {
width: 75%;
max-width: 75%;
}
2012-02-20 18:19:27 +00:00
}
.regular_price,
.sale_price,
.weight,
.stock,
.length {
box-sizing: border-box;
2012-02-20 18:19:27 +00:00
width: 100%;
margin-left: 4.4em;
2012-02-20 18:19:27 +00:00
}
.length,
.width,
.height {
box-sizing: border-box;
width: 25%;
2012-02-20 18:19:27 +00:00
}
}
2012-02-20 14:29:51 +00:00
.column-coupon_code {
line-height: 2.25em;
}
ul.wc_coupon_list,
.column-coupon_code {
margin: 0;
overflow: hidden;
zoom: 1;
clear: both;
}
2017-08-10 20:29:32 +00:00
ul.wc_coupon_list {
padding-bottom: 5px;
2014-12-09 16:06:34 +00:00
2017-08-10 20:29:32 +00:00
li {
margin: 0;
2017-08-09 21:55:35 +00:00
2017-08-10 20:29:32 +00:00
&.code {
display: inline-block;
position: relative;
padding-right: 2em;
padding-left: .5em;
background-color: #fff;
border: 1px solid #aaa;
-webkit-box-shadow: 0 1px 0 #dfdfdf;
box-shadow: 0 1px 0 #dfdfdf;
border-radius: 4px;
margin-right: 5px;
margin-top: 5px;
.tips {
cursor: pointer;
span {
color: #888;
&:hover {
color: #000;
}
}
2017-08-09 21:55:35 +00:00
}
.remove-coupon {
2017-08-10 20:29:32 +00:00
text-decoration: none;
color: #888;
position: absolute;
top: 7px;
right: 20px;
/*rtl:raw:
left: 7px;
*/
&::before {
@include icon_dashicons( '\f158' );
}
&:hover::before {
color: $red;
}
2017-08-09 21:55:35 +00:00
}
}
2014-12-09 16:06:34 +00:00
}
}
ul.wc_coupon_list_block {
margin: 0;
padding-bottom: 2px;
li {
border-top: 1px solid #fff;
border-bottom: 1px solid #ccc;
line-height: 2.5em;
margin: 0;
padding: 0.5em 0;
}
li:first-child {
border-top: 0;
padding-top: 0;
}
li:last-child {
border-bottom: 0;
padding-bottom: 0;
}
}
2013-02-08 14:24:07 +00:00
.button.wc-reload {
2014-09-22 17:35:48 +00:00
@include ir();
padding: 0;
height: 28px;
width: 28px !important;
2013-07-17 12:03:54 +00:00
display: inline-block;
&::after {
@include icon_dashicons( '\f345' );
line-height: 28px;
2013-02-08 14:24:07 +00:00
}
}
2012-12-13 00:47:40 +00:00
#woocommerce-order-data {
.hndle,
.handlediv {
2012-12-13 00:47:40 +00:00
display: none;
}
2012-12-13 00:47:40 +00:00
.inside {
display: block !important;
}
}
#order_data {
padding: 23px 24px 12px;
2012-12-13 00:47:40 +00:00
h2 {
margin: 0;
font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', sans-serif;
2012-12-13 00:47:40 +00:00
font-size: 21px;
font-weight: normal;
line-height: 1.2;
text-shadow: 1px 1px 1px white;
padding: 0;
}
h3 {
font-size: 14px;
}
h3, h4 {
2012-12-13 00:47:40 +00:00
color: #333;
margin: 1.33em 0 0;
}
2012-12-13 00:47:40 +00:00
p {
color: #777;
}
2012-12-13 00:47:40 +00:00
p.order_number {
margin: 0;
font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', sans-serif;
2012-12-13 00:47:40 +00:00
font-weight: normal;
line-height: 1.6em;
font-size: 16px;
}
2012-12-13 00:47:40 +00:00
.order_data_column_container {
clear: both;
}
2012-12-13 00:47:40 +00:00
.order_data_column {
width: 32%;
padding: 0 2% 0 0;
float: left;
2017-04-04 16:30:16 +00:00
> h3 span {
display: block;
}
2012-12-13 00:47:40 +00:00
&:last-child {
padding-right: 0;
}
p {
padding: 0 !important;
}
2017-04-04 16:30:16 +00:00
.address strong {
display: block;
}
.form-field {
float: left;
2017-02-21 11:39:17 +00:00
clear: left;
2012-03-26 17:30:00 +00:00
width: 48%;
padding: 0;
margin: 9px 0 0;
label {
display: block;
padding: 0 0 3px;
}
input,
textarea {
width: 100%;
}
select {
width: 100%;
}
2015-01-12 15:43:13 +00:00
.select2-container {
2012-03-26 17:30:00 +00:00
width: 100% !important;
}
.date-picker {
width: 50%;
2012-03-26 17:30:00 +00:00
}
.hour,
.minute {
width: 3.5em;
2012-03-26 17:30:00 +00:00
}
2012-12-13 00:47:40 +00:00
small {
display: block;
margin: 5px 0 0;
2012-12-13 00:47:40 +00:00
color: #999;
}
2012-03-26 17:30:00 +00:00
}
2017-02-21 11:39:17 +00:00
.form-field.last,
._billing_last_name_field,
._billing_address_2_field,
._billing_postcode_field,
._billing_state_field,
._billing_phone_field,
._shipping_last_name_field,
._shipping_address_2_field,
._shipping_postcode_field,
._shipping_state_field {
2012-12-13 00:47:40 +00:00
float: right;
2017-02-21 11:39:17 +00:00
clear: right;
}
2017-02-21 11:39:17 +00:00
.form-field-wide,
._billing_company_field,
._shipping_company_field,
._transaction_id_field {
width: 100%;
2017-02-21 11:39:17 +00:00
clear: both;
input,
textarea,
select,
.wc-enhanced-select,
.wc-category-search,
2017-02-21 11:39:17 +00:00
.wc-customer-search {
width: 100%;
}
}
2017-02-21 11:39:17 +00:00
p.none_set {
color: #999;
2012-02-26 16:31:58 +00:00
}
div.edit_address {
display: none;
zoom: 1;
2012-12-13 00:47:40 +00:00
padding-right: 1px;
}
.wc-customer-user, .wc-order-status {
label a {
float: right;
}
}
a.edit_address {
width: 14px;
height: 0;
padding: 14px 0 0;
margin: 0 0 0 6px;
overflow: hidden;
position: relative;
color: #999;
border: 0;
float: right;
&:hover, &:focus {
color: #000;
}
&::after {
font-family: 'WooCommerce';
position: absolute;
top: 0;
left: 0;
text-align: center;
vertical-align: top;
line-height: 14px;
font-size: 14px;
font-weight: 400;
-webkit-font-smoothing: antialiased;
}
}
2017-04-04 16:30:16 +00:00
a.edit_address::after {
font-family: 'Dashicons';
content: '\f464';
}
.billing-same-as-shipping,
.load_customer_shipping,
.load_customer_billing {
font-size: 13px;
display: inline-block;
font-weight: normal;
}
.load_customer_shipping {
margin-right: .3em;
}
}
}
2011-08-09 15:16:18 +00:00
.order_actions {
margin: 0;
overflow: hidden;
zoom: 1;
2011-08-09 15:16:18 +00:00
li {
border-top: 1px solid #fff;
border-bottom: 1px solid #ddd;
padding: 6px 0;
2011-08-09 15:16:18 +00:00
margin: 0;
2012-08-02 22:13:20 +00:00
line-height: 1.6em;
float: left;
width: 50%;
text-align: center;
a {
float: none;
text-align: center;
2012-10-12 14:30:20 +00:00
text-decoration: underline;
}
&.wide {
width: auto;
float: none;
clear: both;
padding: 6px;
text-align: left;
2012-10-12 14:30:20 +00:00
overflow: hidden;
}
2012-10-12 14:30:20 +00:00
#delete-action {
line-height: 25px;
vertical-align: middle;
text-align: left;
float: left;
}
2012-10-12 14:30:20 +00:00
.save_order {
float: right;
}
2012-12-12 15:32:47 +00:00
&#actions {
overflow: hidden;
2012-12-12 15:32:47 +00:00
.button {
2013-02-08 14:24:07 +00:00
width: 24px;
box-sizing: border-box;
2012-12-12 15:32:47 +00:00
float: right;
}
2012-12-12 15:32:47 +00:00
select {
2013-02-08 14:24:07 +00:00
width: 225px;
box-sizing: border-box;
2012-12-12 15:32:47 +00:00
float: left;
}
}
2011-08-09 15:16:18 +00:00
}
}
2011-08-10 17:11:11 +00:00
#woocommerce-order-items {
2011-08-09 15:16:18 +00:00
.inside {
margin: 0;
padding: 0;
background: #fefefe;
}
.wc-order-data-row {
border-bottom: 1px solid #dfdfdf;
2016-03-22 14:54:02 +00:00
padding: 1.5em 2em;
background: #f8f8f8;
2014-09-22 17:35:48 +00:00
@include clearfix();
line-height: 2em;
text-align: right;
p {
margin: 0;
line-height: 2em;
}
2014-12-09 16:06:34 +00:00
.wc-used-coupons {
text-align: left;
.tips {
display: inline-block;
}
}
}
2014-07-23 10:47:02 +00:00
.wc-used-coupons {
float: left;
width: 50%;
}
.wc-order-totals {
2014-07-17 21:17:42 +00:00
float: right;
2014-07-23 10:47:02 +00:00
width: 50%;
2014-07-17 21:17:42 +00:00
margin: 0;
padding: 0;
2016-03-22 14:54:02 +00:00
text-align: right;
.amount {
2014-11-13 14:16:32 +00:00
font-weight: 700;
}
.label {
vertical-align: top;
}
2014-07-17 21:17:42 +00:00
.total {
font-size: 1em !important;
width: 10em;
margin: 0 0 0 0.5em;
box-sizing: border-box;
2014-07-17 21:17:42 +00:00
input[type='text'] {
2014-07-17 21:17:42 +00:00
width: 96%;
float: right;
}
2011-08-09 15:16:18 +00:00
}
.refunded-total {
2014-09-22 17:35:48 +00:00
color: $red;
}
}
2014-07-17 21:17:42 +00:00
.refund-actions {
margin-top: 5px;
padding-top: 12px;
border-top: 1px solid #dfdfdf;
2014-07-17 21:17:42 +00:00
.button {
float: right;
margin-left: 4px;
}
.cancel-action {
float: left;
margin-left: 0;
}
2011-08-09 15:16:18 +00:00
}
2017-04-04 16:30:16 +00:00
.wc-order-item-bulk-edit .cancel-action {
float: left;
margin-left: 0;
}
.add_meta {
2014-07-17 21:17:42 +00:00
margin-left: 0 !important;
}
2011-08-09 15:16:18 +00:00
h3 small {
color: #999;
}
.amount {
white-space: nowrap;
}
.add-items {
.description {
margin-right: 10px;
}
2016-03-22 14:54:02 +00:00
.button {
float: left;
margin-right: 0.25em;
2016-03-22 14:54:02 +00:00
}
.button-primary {
float: none;
margin-right: 0;
}
}
}
2016-03-22 14:54:02 +00:00
#woocommerce-order-items {
.inside {
display: block !important;
}
.hndle, .handlediv {
display: none;
}
.woocommerce_order_items_wrapper {
margin: 0;
overflow-x: auto;
2016-03-22 14:54:02 +00:00
table.woocommerce_order_items {
width: 100%;
background: #fff;
2017-04-04 16:30:16 +00:00
thead th {
text-align: left;
padding: 1em;
font-weight: normal;
color: #999;
background: #f8f8f8;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
&.sortable {
cursor: pointer;
2016-03-22 14:54:02 +00:00
}
2017-04-04 16:30:16 +00:00
&:last-child {
padding-right: 2em;
}
&:first-child {
padding-left: 2em;
}
.wc-arrow {
float: right;
position: relative;
margin-right: -1em;
}
}
2016-03-22 14:54:02 +00:00
tbody th, td {
padding: 1.5em 1em 1em;
text-align: left;
line-height: 1.5em;
vertical-align: top;
border-bottom: 1px solid #f8f8f8;
2016-03-22 14:54:02 +00:00
textarea {
width: 100%;
}
2016-03-22 14:54:02 +00:00
select {
width: 50%;
}
2016-03-22 14:54:02 +00:00
input, textarea {
font-size: 14px;
padding: 4px;
color: #555;
}
&:last-child {
padding-right: 2em;
}
&:first-child {
padding-left: 2em;
}
}
tbody tr {
td {
cursor: pointer;
}
&.selected {
background: #f5ebf3;
td {
border-color: #e6cce1;
opacity: 0.8;
}
}
}
2016-03-22 14:54:02 +00:00
tbody tr:last-child td {
border-bottom: 1px solid #dfdfdf;
}
2016-03-22 14:54:02 +00:00
tbody tr:first-child td {
border-top: 8px solid #f8f8f8;
}
2016-03-22 14:54:02 +00:00
tbody#order_line_items tr:first-child td {
border-top: none;
}
2016-03-22 14:54:02 +00:00
td.thumb {
text-align: left;
2016-03-21 18:35:00 +00:00
width: 38px;
padding-bottom: 1.5em;
2016-03-22 14:54:02 +00:00
.wc-order-item-thumbnail {
2016-03-21 18:35:00 +00:00
width: 38px;
2016-03-22 14:54:02 +00:00
height: 38px;
border: 2px solid #e8e8e8;
background: #f8f8f8;
color: #ccc;
position: relative;
font-size: 21px;
display: block;
2016-03-22 14:54:02 +00:00
text-align: center;
&::before {
@include icon_dashicons( '\f128' );
2016-03-22 14:54:02 +00:00
width: 38px;
line-height: 38px;
display: block;
}
img {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
position: relative;
}
}
2016-03-22 14:54:02 +00:00
}
td.name {
.wc-order-item-sku, .wc-order-item-variation {
2016-03-22 14:54:02 +00:00
display: block;
margin-top: 0.5em;
font-size: 0.92em !important;
color: #888;
}
}
2016-03-22 14:54:02 +00:00
.item {
min-width: 200px;
}
2016-03-22 14:54:02 +00:00
.center,
.variation-id {
text-align: center;
}
2016-03-22 14:54:02 +00:00
.cost,
.tax,
.quantity,
.line_cost,
.line_tax,
.tax_class,
.item_cost {
text-align: right;
2016-03-22 14:54:02 +00:00
label {
white-space: nowrap;
color: #999;
font-size: 0.833em;
2016-03-22 14:54:02 +00:00
input {
display: inline;
}
}
input {
2016-03-22 14:54:02 +00:00
width: 70px;
vertical-align: middle;
text-align: right;
}
2016-03-22 14:54:02 +00:00
select {
width: 85px;
height: 26px;
vertical-align: middle;
font-size: 1em;
}
2016-03-22 14:54:02 +00:00
.split-input {
display: inline-block;
background: #fff;
border: 1px solid #ddd;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
2016-03-22 14:54:02 +00:00
margin: 1px 0;
min-width: 80px;
overflow: hidden;
line-height: 1em;
text-align: right;
div.input {
2016-03-21 18:35:00 +00:00
width: 100%;
box-sizing: border-box;
2016-03-22 14:54:02 +00:00
label {
font-size: 0.75em;
padding: 4px 6px 0;
color: #555;
display: block;
}
input {
width: 100%;
box-sizing: border-box;
border: 0;
box-shadow: none;
margin: 0;
padding: 0 6px 4px;
color: #555;
background: transparent;
&::-webkit-input-placeholder {
color: #ddd;
}
}
2016-03-21 18:35:00 +00:00
}
2016-03-22 14:54:02 +00:00
div.input:first-child {
border-bottom: 1px dashed #ddd;
background: #fff;
label {
color: #ccc;
}
input {
color: #ccc;
}
2016-03-21 18:35:00 +00:00
}
2014-07-22 15:44:02 +00:00
}
2016-03-22 14:54:02 +00:00
.view {
white-space: nowrap;
2016-03-22 14:54:02 +00:00
}
2016-03-22 14:54:02 +00:00
.edit {
text-align: left;
}
2016-03-21 18:35:00 +00:00
2016-03-22 14:54:02 +00:00
small.times, del, .wc-order-item-taxes, .wc-order-item-discount, .wc-order-item-refund-fields {
font-size: 0.92em !important;
color: #888;
2016-03-22 14:54:02 +00:00
}
2016-03-21 18:35:00 +00:00
2016-03-22 14:54:02 +00:00
.wc-order-item-taxes, .wc-order-item-refund-fields {
margin: 0;
label {
display: block;
}
2016-03-21 18:35:00 +00:00
}
2016-03-22 14:54:02 +00:00
.wc-order-item-discount {
display: block;
margin-top: 0.5em;
2016-03-22 14:54:02 +00:00
}
2016-03-21 18:35:00 +00:00
2016-03-22 14:54:02 +00:00
small.times {
margin-right: 0.25em;
2016-03-22 14:54:02 +00:00
}
2016-03-21 18:35:00 +00:00
}
2016-03-22 14:54:02 +00:00
.quantity {
text-align: center;
2016-03-22 14:54:02 +00:00
input {
text-align: center;
width: 50px;
}
}
2016-03-22 14:54:02 +00:00
span.subtotal {
opacity: 0.5;
}
2016-03-22 14:54:02 +00:00
td.tax_class,
th.tax_class {
text-align: left;
}
2016-03-22 14:54:02 +00:00
.calculated {
border-color: #ae8ca2;
border-style: dotted;
}
2016-03-22 14:54:02 +00:00
table.meta {
width: 100%;
}
2016-03-22 14:54:02 +00:00
table.meta,
table.display_meta {
margin: 0.5em 0 0;
font-size: 0.92em !important;
color: #888;
2016-03-22 14:54:02 +00:00
tr {
th {
border: 0;
padding: 0 4px 0.5em 0;
line-height: 1.5em;
2016-03-22 14:54:02 +00:00
width: 20%;
}
2016-03-22 14:54:02 +00:00
td {
padding: 0 4px 0.5em 0;
2016-03-22 14:54:02 +00:00
border: 0;
line-height: 1.5em;
2016-03-22 14:54:02 +00:00
input {
width: 100%;
margin: 0;
position: relative;
border-bottom: 0;
box-shadow: none;
}
textarea {
width: 100%;
height: 4em;
margin: 0;
box-shadow: none;
}
input:focus + textarea {
border-top-color: #999;
}
p {
margin: 0 0 0.5em;
2016-03-22 14:54:02 +00:00
line-height: 1.5em;
}
p:last-child {
margin: 0;
}
}
}
}
2016-03-22 14:54:02 +00:00
.refund_by {
border-bottom: 1px dotted #999;
}
2017-04-04 16:30:16 +00:00
tr.fee .thumb div {
@include ir();
font-size: 1.5em;
line-height: 1em;
vertical-align: middle;
2017-08-11 12:09:40 +00:00
margin: 0 auto;
2017-04-04 16:30:16 +00:00
&::before {
@include icon( '\e007' );
color: #ccc;
2014-07-22 13:27:47 +00:00
}
}
2017-04-04 16:30:16 +00:00
tr.refund .thumb div {
@include ir();
font-size: 1.5em;
line-height: 1em;
vertical-align: middle;
2017-08-11 12:09:40 +00:00
margin: 0 auto;
2017-04-04 16:30:16 +00:00
&::before {
@include icon( '\e014' );
color: #ccc;
2014-07-22 13:27:47 +00:00
}
}
2016-03-22 14:54:02 +00:00
tr.shipping {
.thumb div {
@include ir();
font-size: 1.5em;
line-height: 1em;
vertical-align: middle;
2017-08-11 12:09:40 +00:00
margin: 0 auto;
&::before {
@include icon( '\e01a' );
color: #ccc;
2016-03-22 14:54:02 +00:00
}
}
.shipping_method_name,
.shipping_method {
width: 100%;
margin: 0 0 0.5em;
2014-07-22 13:27:47 +00:00
}
}
2016-03-22 14:54:02 +00:00
th.line_tax {
white-space: nowrap;
}
2016-03-22 14:54:02 +00:00
th.line_tax,
td.line_tax {
.delete-order-tax {
@include ir();
float: right;
font-size: 14px;
visibility: hidden;
margin: 3px -18px 0 0;
2016-03-22 14:54:02 +00:00
&::before {
@include icon_dashicons( '\f153' );
color: #999;
2016-03-22 14:54:02 +00:00
}
2017-04-04 16:30:16 +00:00
&:hover::before {
color: $red;
2016-03-22 14:54:02 +00:00
}
}
2017-04-04 16:30:16 +00:00
&:hover .delete-order-tax {
visibility: visible;
}
}
2016-03-22 14:54:02 +00:00
small.refunded {
display: block;
color: $red;
white-space: nowrap;
margin-top: 0.5em;
&::before {
@include icon_dashicons( '\f171' );
2016-03-22 14:54:02 +00:00
position: relative;
top: auto;
left: auto;
margin: -1px 4px 0 0;
vertical-align: middle;
line-height: 1em;
2014-07-21 01:57:23 +00:00
}
}
}
}
2016-03-21 18:35:00 +00:00
.wc-order-edit-line-item {
padding-left: 0;
}
.wc-order-edit-line-item-actions {
2016-03-22 14:54:02 +00:00
width: 44px;
text-align: right;
2016-03-21 18:35:00 +00:00
padding-left: 0;
vertical-align: middle;
a {
color: #ccc;
display: inline-block;
cursor: pointer;
padding: 0 0 0.5em;
2016-03-21 18:35:00 +00:00
margin: 0 0 0 12px;
vertical-align: middle;
text-decoration: none;
line-height: 16px;
2016-03-22 14:54:02 +00:00
width: 16px;
overflow: hidden;
&::before {
2016-03-21 18:35:00 +00:00
margin: 0;
padding: 0;
font-size: 16px;
2016-03-22 14:54:02 +00:00
width: 16px;
height: 16px;
}
&:hover {
&::before {
color: #999;
}
}
2016-03-22 14:54:02 +00:00
&:first-child {
margin-left: 0;
}
}
2017-04-04 16:30:16 +00:00
.edit-order-item::before {
@include icon_dashicons( '\f464' );
position: relative;
}
.delete-order-item,
.delete_refund {
&::before {
@include icon_dashicons( '\f158' );
2016-03-21 18:35:00 +00:00
position: relative;
}
2017-04-04 16:30:16 +00:00
&:hover::before {
color: $red;
}
}
}
2016-03-22 14:54:02 +00:00
tbody tr .wc-order-edit-line-item-actions {
visibility: hidden;
}
tbody tr:hover .wc-order-edit-line-item-actions {
visibility: visible;
}
2016-03-22 14:54:02 +00:00
.wc-order-totals .wc-order-edit-line-item-actions {
width: 1.5em;
visibility: visible !important;
a {
padding: 0;
}
}
2011-08-09 15:16:18 +00:00
}
#woocommerce-order-downloads {
.buttons {
float: left;
padding: 0;
margin: 0;
vertical-align: top;
.add_item_id,
2015-01-12 15:43:13 +00:00
.select2-container {
width: 400px !important;
margin-right: 9px;
vertical-align: top;
float: left;
}
button {
margin: 2px 0 0;
}
}
h3 small {
color: #999;
}
}
2017-04-04 16:30:16 +00:00
#poststuff #woocommerce-order-actions .inside {
margin: 0;
padding: 0;
2017-04-04 16:30:16 +00:00
ul.order_actions li {
padding: 6px 10px;
box-sizing: border-box;
2017-04-04 16:30:16 +00:00
&:last-child {
border-bottom: 0;
2012-08-10 12:41:05 +00:00
}
}
}
2017-04-04 16:30:16 +00:00
#poststuff #woocommerce-order-notes .inside {
margin: 0;
padding: 0;
2017-04-04 16:30:16 +00:00
ul.order_notes li {
padding: 0 10px;
2012-08-10 12:41:05 +00:00
}
}
#woocommerce_customers {
p.search-box {
margin: 6px 0 4px;
float: left;
}
.tablenav {
float: right;
clear: none;
}
}
2012-08-02 22:13:20 +00:00
.widefat {
2017-04-04 16:30:16 +00:00
&.customers td {
vertical-align: middle;
padding: 4px 7px;
}
2011-08-09 15:16:18 +00:00
.column-order_title {
2013-07-31 14:12:53 +00:00
width: 15%;
2011-08-09 15:16:18 +00:00
time {
2011-08-20 15:41:42 +00:00
display: block;
color: #999;
2011-08-20 15:41:42 +00:00
margin: 3px 0;
2011-08-09 15:16:18 +00:00
}
}
.column-orders, .column-paying, .column-spent {
text-align: center;
width: 8%;
}
.column-last_order {
width: 11%;
}
.column-order_actions,
.column-user_actions,
.column-wc_actions {
width: 110px;
2011-12-21 23:52:52 +00:00
a.button {
float: left;
2011-12-21 23:52:52 +00:00
margin: 0 4px 2px 0;
2012-08-13 12:36:22 +00:00
cursor: pointer;
padding: 3px 4px;
height: auto;
2012-08-13 12:36:22 +00:00
img {
display: block;
width: 12px;
height: auto;
2012-08-13 12:36:22 +00:00
}
2011-12-21 23:52:52 +00:00
}
}
2011-08-20 15:41:42 +00:00
small.meta {
display: block;
color: #999;
2011-08-20 15:41:42 +00:00
font-size: inherit;
margin: 3px 0;
}
.column-order_total,
.column-order_date {
width: 9%;
2011-08-09 15:16:18 +00:00
}
2011-08-09 15:16:18 +00:00
.column-order_status {
width: 45px;
2012-08-02 22:13:20 +00:00
text-align: center;
2011-08-09 15:16:18 +00:00
mark {
2014-09-22 17:35:48 +00:00
@include ir();
2013-07-17 11:31:17 +00:00
background: none;
2013-07-31 14:12:53 +00:00
font-size: 1.4em;
margin: 0 auto;
2013-07-17 11:31:17 +00:00
}
mark.pending,
mark.completed,
mark.on-hold,
mark.failed,
mark.cancelled,
mark.processing,
mark.refunded {
&::after {
2014-09-22 17:35:48 +00:00
@include icon;
2013-07-17 11:31:17 +00:00
}
}
mark.pending::after {
content: '\e012';
2014-09-22 17:35:48 +00:00
color: $orange;
2013-07-17 11:31:17 +00:00
}
mark.completed::after {
content: '\e015';
2014-09-22 17:35:48 +00:00
color: $blue;
2013-07-17 11:31:17 +00:00
}
mark.on-hold::after {
content: '\e033';
2013-07-17 11:31:17 +00:00
color: #999;
}
mark.failed::after {
content: '\e016';
2013-07-17 11:31:17 +00:00
color: #d0c21f;
}
mark.cancelled::after {
content: '\e013';
2014-09-22 17:35:48 +00:00
color: $red;
2013-07-17 11:31:17 +00:00
}
mark.processing::after {
content: '\e011';
2013-07-17 11:31:17 +00:00
color: #73a724;
}
mark.refunded::after {
content: '\e014';
2013-07-17 11:31:17 +00:00
color: #999;
2011-08-09 15:16:18 +00:00
}
}
td.column-order_status {
padding-top: 9px;
}
2011-08-09 15:16:18 +00:00
}
2017-04-04 16:30:16 +00:00
.column-customer_message .note-on {
@include ir();
margin: 0 auto;
color: #999;
2017-04-04 16:30:16 +00:00
&::after {
@include icon( '\e026' );
line-height: 16px;
2013-07-17 11:48:48 +00:00
}
2013-07-31 14:12:53 +00:00
}
2017-04-04 16:30:16 +00:00
.column-order_notes .note-on {
@include ir();
margin: 0 auto;
color: #999;
2017-04-04 16:30:16 +00:00
&::after {
@include icon( '\e027' );
line-height: 16px;
2013-07-17 11:48:48 +00:00
}
}
2013-07-17 11:48:48 +00:00
.order_actions {
.processing,
.complete,
.view {
2014-09-22 17:35:48 +00:00
@include ir();
padding: 0 !important;
2013-07-17 11:48:48 +00:00
height: 2em !important;
width: 2em;
2013-07-17 11:48:48 +00:00
}
.processing::after {
@include icon( '\e00f' );
line-height: 1.85;
2013-07-17 11:48:48 +00:00
}
.complete::after {
@include icon_dashicons( '\f147' );
line-height: 1.85;
2013-07-17 11:48:48 +00:00
}
.view::after {
@include icon_dashicons( '\f177' );
line-height: 1.85;
2013-07-17 11:48:48 +00:00
}
}
2013-12-05 13:16:34 +00:00
.user_actions {
.edit,
.link,
.view,
.refresh {
2014-09-22 17:35:48 +00:00
@include ir();
padding: 0 !important;
2013-12-05 13:16:34 +00:00
height: 2em !important;
width: 2em;
&::after {
2014-09-22 17:35:48 +00:00
@include icon;
2013-12-05 13:16:34 +00:00
line-height: 1.85;
}
}
.edit::after {
font-family: 'Dashicons';
content: '\f464';
2013-12-05 13:16:34 +00:00
}
.link::after {
content: '\e00d';
2013-12-05 13:16:34 +00:00
}
.view::after {
content: '\e010';
2013-12-05 13:16:34 +00:00
}
.refresh::after {
content: '\e031';
}
2013-12-05 13:16:34 +00:00
}
2011-08-09 15:16:18 +00:00
2013-11-19 11:04:45 +00:00
.attributes-table {
td,
th {
2013-11-19 11:04:45 +00:00
width: 15%;
vertical-align: top;
}
2013-11-19 11:04:45 +00:00
.attribute-terms {
width: 32%;
2013-11-19 11:04:45 +00:00
}
2013-11-19 11:04:45 +00:00
.attribute-actions {
width: 2em;
2013-11-19 11:04:45 +00:00
.configure-terms {
2014-09-22 17:35:48 +00:00
@include ir();
padding: 0 !important;
2013-11-19 11:04:45 +00:00
height: 2em !important;
width: 2em;
&::after {
@include icon('\f111');
font-family: 'Dashicons';
2013-11-19 11:04:45 +00:00
line-height: 1.85;
}
}
}
}
/* Order notes */
ul.order_notes {
padding: 2px 0 0;
li {
.note_content {
padding: 10px;
background: #efefef;
position: relative;
p {
margin: 0;
padding: 0;
2013-10-25 13:42:05 +00:00
word-wrap: break-word;
}
}
p.meta {
padding: 10px;
color: #999;
margin: 0;
font-size: 11px;
2013-08-15 13:42:08 +00:00
.exact-date {
border-bottom: 1px dotted #999;
}
}
a.delete_note {
color: $red;
}
.note_content::after {
content: '';
display: block;
position: absolute;
bottom: -10px;
left: 20px;
width: 0;
height: 0;
border-width: 10px 10px 0 0;
border-style: solid;
border-color: #efefef transparent;
}
}
li.customer-note {
.note_content {
background: #a7cedc;
}
.note_content::after {
border-color: #a7cedc transparent;
}
}
li.system-note {
.note_content {
background: #d7cad2;
}
.note_content::after {
border-color: #d7cad2 transparent;
}
}
}
.add_note {
border-top: 1px solid #ddd;
padding: 10px 10px 0;
h4 {
margin-top: 5px !important;
}
#add_order_note {
width: 100%;
height: 50px;
}
}
table.wp-list-table {
.column-thumb {
2012-01-28 15:04:53 +00:00
width: 52px;
text-align: center;
white-space: nowrap;
}
.column-handle {
width: 17px;
}
tbody {
td.column-handle {
cursor: move;
width: 17px;
text-align: center;
vertical-align: text-top;
&::before {
content: '\f333';
font-family: 'Dashicons';
text-align: center;
line-height: 1;
color: #999;
display: block;
width: 17px;
height: 100%;
margin: 4px 0 0 0;
}
}
}
2013-03-15 15:32:30 +00:00
.column-name {
width: 22%;
2013-03-15 15:32:30 +00:00
}
.column-product_cat,
.column-product_tag {
2012-01-28 15:04:53 +00:00
width: 11% !important;
2012-01-27 20:21:36 +00:00
}
.column-featured,
.column-product_type {
width: 48px;
2012-02-13 13:06:56 +00:00
text-align: left !important;
}
.column-customer_message,
.column-order_notes {
width: 48px;
2012-02-21 12:53:36 +00:00
text-align: center;
img {
margin: 0 auto;
2012-02-21 13:12:57 +00:00
padding-top: 0 !important;
2012-02-21 12:53:36 +00:00
}
}
.manage-column.column-featured img,
.manage-column.column-product_type img {
2012-02-13 13:06:56 +00:00
padding-left: 2px;
2012-01-28 15:04:53 +00:00
}
2017-04-04 16:30:16 +00:00
.column-price .woocommerce-price-suffix {
display: none;
}
img {
margin: 1px 2px;
}
2013-11-12 16:19:03 +00:00
.row-actions {
color: #999;
}
2012-12-17 21:46:15 +00:00
td.column-thumb img {
margin: 0;
width: auto;
height: auto;
max-width: 40px;
max-height: 40px;
2015-10-01 05:53:16 +00:00
vertical-align: middle;
}
span.na {
color: #999;
}
2012-02-13 13:06:56 +00:00
.column-is_in_stock {
text-align: left !important;
}
span.wc-image,
span.wc-featured,
span.wc-type {
2014-09-22 17:35:48 +00:00
@include ir();
margin: 0 auto;
&::before {
@include icon_dashicons( '\f128' );
2013-07-19 16:13:25 +00:00
}
}
2013-07-19 16:13:25 +00:00
span.wc-featured {
&::before {
content: '\f155';
2013-07-19 16:13:25 +00:00
}
2017-04-04 16:30:16 +00:00
&.not-featured::before {
content: '\f154';
2013-07-19 16:13:25 +00:00
}
}
2017-04-04 16:30:16 +00:00
td.column-featured span.wc-featured {
font-size: 1.6em;
cursor: pointer;
2013-07-19 16:13:25 +00:00
}
2017-04-04 16:30:16 +00:00
span.wc-type::before {
font-family: 'WooCommerce';
content: '\e006';
2013-07-19 16:13:25 +00:00
}
2012-02-13 13:06:56 +00:00
span.product-type {
2014-09-22 17:35:48 +00:00
@include ir();
font-size: 1.6em;
margin: 0 auto;
2017-06-05 09:14:31 +00:00
-moz-osx-font-smoothing: grayscale;
&::before {
@include icon( '\e006' );
2013-07-19 16:13:25 +00:00
}
&.grouped::before {
content: '\e002';
2012-02-13 13:06:56 +00:00
}
&.external::before {
content: '\e034';
2012-02-13 13:06:56 +00:00
}
&.variable::before {
content: '\e003';
2012-02-13 13:06:56 +00:00
}
&.downloadable::before {
content: '\e001';
2012-02-13 13:06:56 +00:00
}
&.virtual::before {
content: '\e000';
2012-02-13 13:06:56 +00:00
}
}
2012-02-13 13:06:56 +00:00
mark.instock {
2014-11-13 14:16:32 +00:00
font-weight: 700;
2014-09-22 17:35:48 +00:00
color: $green;
2012-02-13 13:06:56 +00:00
background: transparent none;
line-height: 1;
}
2012-02-13 13:06:56 +00:00
mark.outofstock {
2014-11-13 14:16:32 +00:00
font-weight: 700;
2012-02-13 13:06:56 +00:00
color: #aa4444;
background: transparent none;
line-height: 1;
}
.order-notes_head,
.notes_head,
.status_head {
2014-09-22 17:35:48 +00:00
@include ir();
margin: 0 auto;
2013-07-31 14:12:53 +00:00
&::after {
2014-09-22 17:35:48 +00:00
@include icon;
2013-07-17 11:08:26 +00:00
}
}
.order-notes_head::after {
content: '\e028';
2013-07-17 11:08:26 +00:00
}
.notes_head::after {
content: '\e026';
2013-07-31 14:12:53 +00:00
}
.status_head::after {
content: '\e011';
2013-07-31 14:12:53 +00:00
}
2013-07-31 14:12:53 +00:00
.column-order_items {
width: 12%;
2013-07-31 14:12:53 +00:00
table.order_items {
width: 100%;
margin: 3px 0 0;
2013-07-31 14:12:53 +00:00
padding: 0;
display: none;
2013-07-31 14:12:53 +00:00
td {
border: 0;
margin: 0;
padding: 0 0 3px;
}
2013-07-31 14:12:53 +00:00
td.qty {
color: #999;
padding-right: 6px;
text-align: left;
}
2013-07-17 11:08:26 +00:00
}
}
2011-08-09 15:16:18 +00:00
}
2012-02-18 10:19:07 +00:00
mark.notice {
background: #fff;
2014-09-22 17:35:48 +00:00
color: $red;
2012-02-18 10:19:07 +00:00
margin: 0 0 0 10px;
}
a.export_rates,
a.import_rates {
float: right;
2012-09-10 11:26:26 +00:00
margin-left: 9px;
margin-top: -2px;
2012-09-10 11:26:26 +00:00
margin-bottom: 0;
}
2015-10-08 12:18:00 +00:00
#rates-search {
float: right;
input.wc-tax-rates-search-field {
padding: 4px 8px;
font-size: 1.2em;
}
}
#rates-pagination {
float: right;
margin-right: 0.5em;
.tablenav {
margin: 0;
}
}
2015-10-08 12:18:00 +00:00
table.wc_tax_rates,
table.wc_input_table {
width: 100%;
2013-11-22 17:18:04 +00:00
span.tips {
2014-09-22 17:35:48 +00:00
color: $blue;
2013-11-22 17:18:04 +00:00
}
2016-07-27 09:28:28 +00:00
th {
white-space: nowrap;
2016-07-27 10:39:50 +00:00
padding: 10px;
2016-07-27 09:28:28 +00:00
}
2012-12-02 21:31:43 +00:00
td {
padding: 0;
border-right: 1px solid #dfdfdf;
border-bottom: 1px solid #dfdfdf;
2012-12-02 21:31:43 +00:00
border-top: 0;
background: #fff;
2016-08-05 13:23:01 +00:00
cursor: default;
input[type='text'],
input[type='number'] {
2012-12-02 21:31:43 +00:00
width: 100%;
2016-07-27 10:39:50 +00:00
padding: 8px 10px;
2012-12-02 21:31:43 +00:00
margin: 0;
border: 0;
2016-07-27 10:30:12 +00:00
outline: 0;
2012-12-02 21:31:43 +00:00
background: transparent none;
2016-07-27 10:30:12 +00:00
&:focus {
outline: 0;
box-shadow: none;
}
2012-12-02 21:31:43 +00:00
}
&.compound,
&.apply_to_shipping {
2012-12-02 21:31:43 +00:00
padding: 5px 7px;
vertical-align: middle;
input {
width: auto;
padding: 0;
}
}
2011-10-24 14:51:54 +00:00
}
2012-12-02 21:31:43 +00:00
td:last-child {
border-right: 0;
2011-10-24 14:51:54 +00:00
}
2012-12-02 21:31:43 +00:00
tr.current td {
background-color: #fefbcc;
2011-10-24 14:51:54 +00:00
}
.item_cost,
.cost {
2012-12-02 21:31:43 +00:00
text-align: right;
input {
2012-12-02 21:31:43 +00:00
text-align: right;
}
2011-10-24 14:51:54 +00:00
}
2012-12-02 21:31:43 +00:00
th.sort {
width: 17px;
2015-08-13 16:59:41 +00:00
padding: 0 4px;
2011-12-14 12:17:05 +00:00
}
2012-12-02 21:31:43 +00:00
td.sort {
2013-12-05 15:19:48 +00:00
padding: 0 4px;
2015-08-13 16:59:41 +00:00
}
2017-04-04 16:30:16 +00:00
.ui-sortable:not( .ui-sortable-disabled ) td.sort {
cursor: move;
font-size: 15px;
background: #f9f9f9;
text-align: center;
vertical-align: middle;
2017-04-04 16:30:16 +00:00
&::before {
content: '\f333';
font-family: 'Dashicons';
text-align: center;
line-height: 1;
color: #999;
display: block;
width: 17px;
float: left;
height: 100%;
}
2017-04-04 16:30:16 +00:00
&:hover::before {
color: #333;
2013-01-18 11:48:17 +00:00
}
}
2012-12-02 21:31:43 +00:00
.button {
float: left;
margin-right: 5px;
2011-08-09 15:16:18 +00:00
}
.export,
.import {
2012-12-02 21:31:43 +00:00
float: right;
margin-right: 0;
margin-left: 5px;
}
2012-12-02 21:31:43 +00:00
span.tips {
padding: 0 3px;
2012-09-10 11:26:26 +00:00
}
2013-08-13 11:18:20 +00:00
.pagination {
float: right;
2013-08-13 11:18:20 +00:00
.button {
margin-left: 5px;
margin-right: 0;
}
2013-08-13 11:18:20 +00:00
.current {
background: #bbb;
text-shadow: none;
}
}
2017-04-04 16:30:16 +00:00
tr:last-child td {
border-bottom: 0;
2013-11-22 17:18:04 +00:00
}
2011-08-09 15:16:18 +00:00
}
table.wc_gateways,
table.wc_emails,
table.wc_shipping {
position: relative;
2011-12-06 16:45:08 +00:00
td {
vertical-align: middle;
padding: 7px;
line-height: 2em;
}
2017-04-04 16:30:16 +00:00
tr:nth-child( odd ) td {
background: #f9f9f9;
}
th {
padding: 9px 7px !important;
vertical-align: middle;
}
td.name {
2014-11-13 14:16:32 +00:00
font-weight: 700;
2011-12-06 16:45:08 +00:00
}
.settings {
text-align: right;
}
.radio,
.default,
.status {
2011-12-06 16:45:08 +00:00
text-align: center;
.tips {
margin: 0 auto;
}
input {
margin: 0;
}
2011-12-06 16:45:08 +00:00
}
th.sort {
width: 28px;
padding: 0;
}
td.sort {
padding: 0 7px;
cursor: move;
font-size: 15px;
text-align: center;
vertical-align: middle;
&::before {
content: '\f333';
font-family: 'Dashicons';
text-align: center;
line-height: 1;
color: #999;
display: block;
width: 17px;
float: left;
height: 100%;
}
}
.wc-email-settings-table-name {
font-weight: 700;
2015-11-03 15:04:29 +00:00
span {
font-weight: normal;
color: #999;
2015-11-03 16:12:13 +00:00
margin: 0 0 0 4px !important;
2015-11-03 15:04:29 +00:00
}
}
.wc-email-settings-table-status {
text-align: center;
width: 1em;
.tips {
margin: 0 auto;
}
}
2017-04-04 16:30:16 +00:00
.wc-email-settings-table-actions a {
@include ir();
padding: 0 !important;
height: 2em !important;
width: 2em;
2017-04-04 16:30:16 +00:00
&::after {
@include icon('\f111');
font-family: 'Dashicons';
line-height: 1.85;
}
}
2011-12-06 16:45:08 +00:00
}
2016-09-24 02:22:57 +00:00
.wc-shipping-zone-settings {
th {
padding: 24px 24px 24px 0;
}
td.forminp {
padding: 15px 10px;
input, textarea {
padding: 8px;
width: 448px;
max-width: 100% !important;
}
.wc-shipping-zone-region-select {
width: 448px;
max-width: 100% !important;
.select2-choices {
padding: 8px 8px 4px;
border-color: #DDDDDD;
min-height: 0;
line-height: 1;
input {
padding: 0;
}
li {
margin: 0 4px 4px 0;
}
}
}
}
.wc-shipping-zone-postcodes-toggle {
2017-01-31 16:25:57 +00:00
margin: 0.5em 0 0;
2016-09-24 02:22:57 +00:00
font-size: 0.9em;
text-decoration: underline;
2017-01-31 16:25:57 +00:00
display: block;
2016-09-24 02:22:57 +00:00
}
.wc-shipping-zone-postcodes-toggle + .wc-shipping-zone-postcodes {
display:none;
}
.wc-shipping-zone-postcodes {
textarea {
margin: 10px 0;
}
.description {
font-size: 0.9em;
color: #999;
}
}
}
2017-01-31 16:25:57 +00:00
.wc-shipping-zone-settings + p.submit {
margin-top: 0;
}
2016-10-11 10:46:23 +00:00
table {
tr, tr:hover {
table.wc-shipping-zone-methods {
2017-04-04 16:30:16 +00:00
tr .row-actions {
position: relative;
2016-10-11 10:46:23 +00:00
}
2017-04-04 16:30:16 +00:00
tr:hover .row-actions {
position: static;
2016-10-11 10:46:23 +00:00
}
}
}
}
.wc-shipping-zones-heading .page-title-action {
2017-02-21 11:39:17 +00:00
display: inline-block;
}
table.wc-shipping-zones, table.wc-shipping-zone-methods, table.wc-shipping-classes {
td, th {
vertical-align: top;
line-height: 24px;
2016-09-24 02:22:57 +00:00
padding: 1em !important;
font-size: 14px;
background: #fff;
2015-12-16 13:38:03 +00:00
li {
line-height: 24px;
2015-12-16 13:38:03 +00:00
font-size: 14px;
}
2016-09-24 02:22:57 +00:00
.woocommerce-help-tip {
margin: 0 !important;
}
}
thead {
th {
vertical-align: middle;
}
.wc-shipping-zone-sort {
text-align: center;
}
}
tbody td {
padding: 1.5em 1em !important;
}
2015-12-16 15:37:40 +00:00
td.wc-shipping-zones-blank-state, td.wc-shipping-zone-method-blank-state {
background: #f7f1f6 !important;
2015-12-15 19:10:41 +00:00
overflow: hidden;
position: relative;
2016-09-24 02:22:57 +00:00
padding: 7.5em 7.5% !important;
border-bottom: 2px solid #eee2ec;
2017-01-31 16:25:57 +00:00
&.wc-shipping-zone-method-blank-state {
padding: 2em !important;
p {
margin-bottom: 0;
}
}
2016-03-29 18:37:02 +00:00
p, li {
2015-12-15 19:10:41 +00:00
color: #a46497;
font-size: 1.5em;
line-height: 1.5em;
margin: 0 0 1em;
position: relative;
z-index: 1;
text-shadow: 1px 1px 1px white;
&.main {
font-size: 2em;
}
}
2016-03-29 18:37:02 +00:00
li {
margin-left: 1em;
list-style: circle inside;
}
&::before {
content: '\e01b';
font-family: 'WooCommerce';
2015-12-15 19:10:41 +00:00
text-align: center;
line-height: 1;
color: #eee2ec;
2015-12-15 19:10:41 +00:00
display: block;
2016-03-29 18:37:02 +00:00
width: 1em;
2015-12-16 15:37:40 +00:00
font-size: 40em;
2016-03-29 18:37:02 +00:00
top: 50%;
right: -3.75%;
margin-top: -0.1875em;
2015-12-15 19:10:41 +00:00
position: absolute;
}
.button-primary {
2016-06-03 11:22:05 +00:00
background-color: #804877;
border-color: #804877;
2015-12-15 19:10:41 +00:00
box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.2 ), 0 1px 0 rgba( 0, 0, 0, 0.15 );
margin: 0;
opacity: 1;
text-shadow: 0 -1px 1px #8a4f7f, 1px 0 1px #8a4f7f, 0 1px 1px #8a4f7f, -1px 0 1px #8a4f7f;
2015-12-15 19:10:41 +00:00
font-size: 1.5em;
padding: 0.75em 1em;
2015-12-15 19:10:41 +00:00
height: auto;
position: relative;
z-index: 1;
}
}
.wc-shipping-zone-method-rows {
tr:nth-child( even ) td {
2017-04-04 16:30:16 +00:00
background: #f9f9f9;
}
}
tr.odd, .wc-shipping-class-rows tr:nth-child( odd ) {
td {
background: #f9f9f9;
}
}
tbody.wc-shipping-zone-rows {
td {
border-top: 2px solid #f9f9f9;
}
tr:first-child {
td {
border-top: 0;
}
}
}
tr.wc-shipping-zone-worldwide {
td {
background: #f9f9f9;
border-top: 2px solid #e1e1e1;
}
}
2015-12-10 18:33:59 +00:00
ul, p {
margin: 0;
}
2015-12-15 17:48:03 +00:00
td.wc-shipping-zone-sort, td.wc-shipping-zone-method-sort {
cursor: move;
font-size: 15px;
text-align: center;
&::before {
content: '\f333';
font-family: 'Dashicons';
text-align: center;
line-height: 1;
color: #999;
display: block;
width: 17px;
float: left;
height: 100%;
line-height: 24px;
}
2017-04-04 16:30:16 +00:00
&:hover::before {
color: #333;
}
}
td.wc-shipping-zone-worldwide {
text-align: center;
&::before {
content: '\f319';
font-family: 'dashicons';
text-align: center;
line-height: 1;
color: #999;
display: block;
width: 17px;
float: left;
height: 100%;
line-height: 24px;
}
}
.wc-shipping-zone-name,
.wc-shipping-zone-methods {
width: 25%;
}
.wc-shipping-class-description,
.wc-shipping-class-name,
.wc-shipping-class-slug,
.wc-shipping-zone-name,
.wc-shipping-zone-region {
2015-12-10 18:33:59 +00:00
input, select, textarea {
width: 100%;
}
2016-05-12 11:18:35 +00:00
a.wc-shipping-zone-delete, a.wc-shipping-class-delete {
2016-09-02 10:12:27 +00:00
color: #a00;
}
a.wc-shipping-zone-delete:hover, a.wc-shipping-class-delete:hover {
color: red;
}
}
.wc-shipping-class-count {
text-align: center;
}
2016-02-05 15:48:31 +00:00
td.wc-shipping-zone-methods {
2016-10-10 16:50:29 +00:00
color: #555;
2016-01-08 11:57:49 +00:00
.method_disabled {
text-decoration: line-through;
}
2016-01-13 15:04:10 +00:00
ul {
position: relative;
padding-right: 32px;
2016-01-13 15:04:10 +00:00
li {
2016-10-10 16:50:29 +00:00
color: #555;
2016-01-13 15:04:10 +00:00
display: inline;
margin: 0;
2016-01-13 15:04:10 +00:00
}
li::before {
content: ', ';
2016-01-13 15:04:10 +00:00
}
2016-09-24 02:22:57 +00:00
li:first-child::before {
content: '';
2016-01-13 15:04:10 +00:00
}
}
.add_shipping_method {
display: block;
width: 24px;
padding: 24px 0 0;
height: 0;
overflow: hidden;
cursor: pointer;
&::before {
@include icon;
font-family: 'Dashicons';
content: '\f502';
color: #999;
vertical-align: middle;
line-height: 24px;
font-size: 16px;
margin: 0;
}
&.disabled {
cursor: not-allowed;
&::before {
color: #ccc;
}
}
2016-01-13 15:04:10 +00:00
}
2016-01-08 11:57:49 +00:00
}
.wc-shipping-zone-method-title {
2017-01-31 16:25:57 +00:00
width: 25%;
.wc-shipping-zone-method-delete {
color: red;
}
}
.wc-shipping-zone-method-enabled {
text-align: center;
2016-10-11 11:33:33 +00:00
a {
display: inline-block;
}
2016-10-11 11:33:33 +00:00
.woocommerce-input-toggle {
margin-top: 3px;
}
}
2017-01-31 16:25:57 +00:00
.wc-shipping-zone-method-type {
display: block;
}
tfoot {
2015-12-16 15:16:52 +00:00
input, select {
vertical-align: middle !important;
}
.button-secondary {
float: right;
}
}
2016-01-04 14:34:10 +00:00
.editing {
.wc-shipping-zone-view, .wc-shipping-zone-edit {
display: none;
}
}
}
2016-10-11 11:33:33 +00:00
.woocommerce-input-toggle {
height: 16px;
width: 32px;
border: 2px solid #935687;
background-color: #935687;
display: inline-block;
text-indent: -9999px;
border-radius: 10em;
position: relative;
&:before {
content: "";
display: block;
width: 16px;
height: 16px;
background: #fff;
position: absolute;
top: 0;
right: 0;
border-radius: 100%;
}
&.woocommerce-input-toggle--disabled {
border-color: #999;
background-color: #999;
&:before {
right: auto;
left: 0;
}
}
}
2016-03-24 17:26:40 +00:00
.wc-modal-shipping-method-settings {
background: #f8f8f8;
padding: 1em !important;
2017-04-04 16:30:16 +00:00
form .form-table {
width: 100%;
background: #fff;
margin: 0 0 1.5em;
tr {
th {
width: 30%;
position: relative;
.woocommerce-help-tip {
float: right;
margin: -8px -0.5em 0 0;
vertical-align: middle;
right: 0;
top: 50%;
position: absolute;
2016-03-24 17:26:40 +00:00
}
2017-04-04 16:30:16 +00:00
}
td {
input, select, textarea {
width: 50%;
min-width: 250px;
2016-03-24 17:26:40 +00:00
}
2017-04-04 16:30:16 +00:00
input[type='checkbox'] {
width: auto;
min-width: 16px;
2016-03-24 17:26:40 +00:00
}
}
2017-04-04 16:30:16 +00:00
td, th {
vertical-align: middle;
margin: 0;
line-height: 24px;
padding: 1em;
border-bottom: 1px solid #f8f8f8;
2016-03-24 17:26:40 +00:00
}
}
2017-04-04 16:30:16 +00:00
&:last-of-type {
margin-bottom: 0;
}
2016-03-24 17:26:40 +00:00
}
}
.wc-backbone-modal .wc-shipping-zone-method-selector {
2016-06-20 11:50:52 +00:00
p {
margin-top: 0;
}
.wc-shipping-zone-method-description {
margin: 0.75em 1px 0;
line-height: 1.5em;
2016-06-20 11:50:52 +00:00
color: #999;
font-style: italic;
}
select {
width: 100%;
2016-06-20 11:50:52 +00:00
cursor: pointer;
}
2016-01-13 15:04:10 +00:00
}
img.help_tip {
margin: 0 0 0 9px;
vertical-align: middle;
}
.postbox img.help_tip {
margin-top: 0;
}
2012-08-02 22:13:20 +00:00
.postbox .woocommerce-help-tip {
margin: 0 0 0 9px;
}
2015-11-03 15:40:10 +00:00
.status-enabled,
.status-manual,
.status-disabled {
font-size: 1.4em;
2014-09-22 17:35:48 +00:00
@include ir();
2015-11-03 15:40:10 +00:00
}
2017-04-04 16:30:16 +00:00
.status-manual::before {
@include icon( '\e008' );
color: #999;
2015-11-03 15:40:10 +00:00
}
2017-04-04 16:30:16 +00:00
.status-enabled::before {
@include icon( '\e015' );
color: $woocommerce;
2013-07-19 11:52:03 +00:00
}
2017-04-04 16:30:16 +00:00
.status-disabled::before {
@include icon( '\e013' );
color: #ccc;
}
2011-11-28 16:35:17 +00:00
.woocommerce {
h2.woo-nav-tab-wrapper {
margin-bottom: 1em;
}
nav.woo-nav-tab-wrapper {
margin: 1.5em 0 1em;
2015-04-29 09:47:57 +00:00
}
2015-04-29 09:47:57 +00:00
.subsubsub {
margin: -8px 0 0;
2015-04-29 09:47:57 +00:00
}
2016-01-08 12:10:40 +00:00
.wc-admin-breadcrumb {
margin-left: 0.5em;
2016-03-24 14:27:32 +00:00
a {
color: #a46497;
}
2016-01-08 12:10:40 +00:00
}
#template div {
margin: 0;
p .button {
float: right;
margin-left: 10px;
margin-top: -4px;
}
2017-04-04 16:30:16 +00:00
.editor textarea {
margin-bottom: 8px;
}
}
textarea[disabled='disabled'] {
background: #dfdfdf !important;
}
2011-11-28 16:35:17 +00:00
table.form-table {
2015-05-01 10:24:42 +00:00
margin: 0;
position: relative;
2012-12-03 15:01:07 +00:00
.forminp-radio ul {
margin: 0;
li {
line-height: 1.4em;
}
}
input[type="text"],
input[type="number"],
input[type="email"] {
padding: 6px;
height: auto;
}
2011-11-28 16:35:17 +00:00
textarea.input-text {
height: 100%;
min-width: 150px;
display: block;
}
2017-06-30 13:59:45 +00:00
// Give regular settings inputs a standard width and padding.
select,
textarea,
input[type="text"],
input[type="email"],
input[type="number"],
input.regular-input {
2016-12-21 11:36:48 +00:00
width: 400px;
2017-06-30 13:59:45 +00:00
margin: 0;
padding: 6px;
box-sizing: border-box;
2011-11-28 16:35:17 +00:00
}
2011-11-28 16:35:17 +00:00
textarea.wide-input {
width: 100%;
}
img.help_tip,
.woocommerce-help-tip {
padding: 0;
margin: -4px 0 0 5px;
vertical-align: middle;
cursor: help;
line-height: 1;
}
span.help_tip {
cursor: help;
2014-09-22 17:35:48 +00:00
color: $blue;
}
th {
position: relative;
padding-right: 24px;
}
2015-01-12 15:43:13 +00:00
.select2-container {
vertical-align: top;
margin-bottom: 3px;
}
table.widefat th {
padding-right: inherit;
}
th img.help_tip,
th .woocommerce-help-tip {
2016-12-21 11:24:28 +00:00
margin: 2px -24px 0 0;
2012-12-18 13:15:44 +00:00
float: right;
2012-11-26 13:48:22 +00:00
}
.wp-list-table .woocommerce-help-tip {
float: none;
}
fieldset {
2013-02-11 13:53:24 +00:00
margin-top: 4px;
img.help_tip,
.woocommerce-help-tip {
margin: -3px 0 0 5px;
}
2013-02-11 13:53:24 +00:00
p.description {
margin-bottom: 8px;
}
2013-02-11 13:53:24 +00:00
&:first-child {
margin-top: 0;
}
}
2013-07-24 12:34:30 +00:00
.iris-picker {
z-index: 100;
display: none;
2015-04-30 21:49:28 +00:00
position: absolute;
2013-07-24 12:34:30 +00:00
border: 1px solid #ccc;
2015-04-30 21:49:28 +00:00
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
2013-07-24 12:34:30 +00:00
.ui-slider {
border: 0 !important;
margin: 0 !important;
width: auto !important;
height: auto !important;
2015-04-30 21:49:28 +00:00
background: none transparent !important;
2013-07-24 12:34:30 +00:00
.ui-slider-handle {
margin-bottom: 0 !important;
}
}
}
.colorpickpreview {
2017-06-30 13:59:45 +00:00
padding: 6px;
padding-left: 20px;
border: 1px solid #ddd;
2017-03-22 20:12:07 +00:00
/* rtl:ignore */
border-right: 0;
/* rtl:ignore */
margin-left: -3px;
}
.colorpick {
2017-03-22 20:12:07 +00:00
/* rtl:ignore */
border-left: 0;
}
.image_width_settings {
vertical-align: middle;
label {
margin-left: 10px;
}
}
.wc_emails_wrapper {
padding: 0 15px 10px 0;
}
2011-11-28 16:35:17 +00:00
}
2011-08-09 15:16:18 +00:00
}
2011-08-10 17:11:11 +00:00
.woocommerce #tabs-wrap table a.remove {
2011-08-09 15:16:18 +00:00
margin-left: 4px;
}
2011-08-10 17:11:11 +00:00
.woocommerce #tabs-wrap table p {
2011-08-09 15:16:18 +00:00
margin: 0 0 4px !important;
overflow: hidden;
zoom: 1;
}
2011-08-10 17:11:11 +00:00
.woocommerce #tabs-wrap table p a.add {
2011-08-09 15:16:18 +00:00
float: left;
}
2012-07-22 12:50:45 +00:00
#wp-excerpt-editor-container {
background: #fff;
}
2011-08-24 19:32:33 +00:00
#product_variation-parent #parent_id {
width: 100%;
}
2017-04-04 16:30:16 +00:00
#postimagediv img {
border: 1px solid #d5d5d5;
max-width: 100%;
}
2017-04-04 16:30:16 +00:00
#woocommerce-product-images .inside {
margin: 0;
padding: 0;
2017-04-04 16:30:16 +00:00
.add_product_images {
padding: 0 12px 12px;
}
2017-04-04 16:30:16 +00:00
#product_images_container {
padding: 0 0 0 9px;
2017-04-04 16:30:16 +00:00
ul {
@include clearfix();
margin: 0;
padding: 0;
2017-04-04 16:30:16 +00:00
li.image,
li.add,
li.wc-metabox-sortable-placeholder {
width: 80px;
float: left;
cursor: move;
border: 1px solid #d5d5d5;
margin: 9px 9px 0 0;
background: #f7f7f7;
@include border-radius(2px);
position: relative;
box-sizing: border-box;
2017-04-04 16:30:16 +00:00
img {
width: 100%;
height: auto;
display: block;
2012-10-05 18:02:02 +00:00
}
2017-04-04 16:30:16 +00:00
}
2017-04-04 16:30:16 +00:00
li.wc-metabox-sortable-placeholder {
border: 3px dashed #dddddd;
position: relative;
2017-04-04 16:30:16 +00:00
&::after {
@include icon_dashicons( '\f161' );
font-size: 2.618em;
line-height: 72px;
color: #ddd;
2012-10-05 18:02:02 +00:00
}
2017-04-04 16:30:16 +00:00
}
2017-04-04 16:30:16 +00:00
ul.actions {
position: absolute;
top: -8px;
right: -8px;
padding: 2px;
display: none;
2017-04-04 16:30:16 +00:00
li {
float: right;
margin: 0 0 0 2px;
2017-04-04 16:30:16 +00:00
a {
width: 1em;
height: 1em;
margin: 0;
height: 0;
display: block;
overflow: hidden;
2017-04-04 16:30:16 +00:00
&.tips {
cursor: pointer;
2012-10-05 18:02:02 +00:00
}
2017-04-04 16:30:16 +00:00
}
2017-04-04 16:30:16 +00:00
a.delete {
@include ir();
font-size: 1.4em;
2017-04-04 16:30:16 +00:00
&::before {
@include icon_dashicons( '\f153' );
color: #999;
background: #fff;
border-radius: 50%;
height: 1em;
width: 1em;
line-height: 1em;
2017-04-04 16:30:16 +00:00
}
2017-04-04 16:30:16 +00:00
&:hover::before {
color: $red;
2012-10-05 18:02:02 +00:00
}
}
}
2017-04-04 16:30:16 +00:00
}
2017-04-04 16:30:16 +00:00
li:hover ul.actions {
display: block;
2012-10-05 18:02:02 +00:00
}
}
}
}
2012-07-22 12:50:45 +00:00
#woocommerce-product-data {
.hndle {
2013-11-08 11:38:45 +00:00
padding: 10px;
2012-07-22 12:50:45 +00:00
span {
display: block;
vertical-align: middle;
line-height: 24px;
2012-07-22 12:50:45 +00:00
span {
display: inline;
line-height: inherit;
vertical-align: baseline;
}
}
2012-07-22 12:50:45 +00:00
select {
margin: 0;
}
2012-07-22 12:50:45 +00:00
label {
padding-right: 1em;
font-size: 12px;
vertical-align: baseline;
}
2012-07-22 12:50:45 +00:00
label:first-child {
margin-right: 1em;
border-right: 1px solid #dfdfdf;
}
2012-07-22 12:50:45 +00:00
input, select {
margin-top: -3px 0 0;
2012-07-22 12:50:45 +00:00
vertical-align: middle;
}
select {
margin-left: 0.5em;
}
2012-07-22 12:50:45 +00:00
}
2013-11-12 16:41:29 +00:00
> .handlediv {
margin-top: 4px;
2013-11-08 11:38:45 +00:00
}
2013-11-14 19:42:17 +00:00
.wrap {
margin: 0;
2013-11-14 19:42:17 +00:00
}
2012-07-22 12:50:45 +00:00
}
2012-08-02 22:13:20 +00:00
#woocommerce-coupon-description {
padding: 3px 8px;
font-size: 1.7em;
line-height: 1.42em;
height: auto;
width: 100%;
outline: 0;
margin: 10px 0;
display: block;
&::-webkit-input-placeholder {
line-height: 1.42em;
color: #bbb;
}
&::-moz-placeholder {
line-height:
1.42em;
color: #bbb;
}
&:-ms-input-placeholder {
line-height: 1.42em;
color: #bbb;
}
&:-moz-placeholder {
line-height: 1.42em;
color: #bbb;
}
}
#woocommerce-product-data,
#woocommerce-coupon-data {
2012-11-22 13:27:17 +00:00
.panel-wrap {
2013-12-13 10:40:28 +00:00
background: #fff;
2012-11-22 13:27:17 +00:00
}
.woocommerce_options_panel,
.wc-metaboxes-wrapper {
2014-10-17 13:42:15 +00:00
float: left;
width: 80%;
.wc-radios {
display: block;
float: left;
margin: 0;
li {
display: block;
padding: 0 0 10px;
input {
width: auto;
}
}
}
2012-01-11 18:59:30 +00:00
}
2011-08-09 15:16:18 +00:00
}
#woocommerce-product-data,
#woocommerce-coupon-data,
.woocommerce {
2014-10-17 13:42:15 +00:00
.panel-wrap {
overflow: hidden;
}
ul.wc-tabs {
2012-11-22 13:27:17 +00:00
margin: 0;
width: 20%;
float: left;
line-height: 1em;
padding: 0 0 10px;
position: relative;
2014-10-17 13:42:15 +00:00
background-color: #fafafa;
border-right: 1px solid #eee;
box-sizing: border-box;
2014-10-17 13:42:15 +00:00
&::after {
content: '';
2014-10-17 13:42:15 +00:00
display: block;
width: 100%;
height: 9999em;
position: absolute;
bottom: -9999em;
left: 0;
background-color: #fafafa;
border-right: 1px solid #eee;
}
2012-12-02 21:31:43 +00:00
li {
2012-11-22 13:27:17 +00:00
margin: 0;
padding: 0;
display: block;
position: relative;
2012-12-02 21:31:43 +00:00
2012-11-22 13:27:17 +00:00
a {
margin: 0;
padding: 10px;
display: block;
box-shadow: none;
text-decoration: none;
line-height: 20px !important;
2014-10-17 13:42:15 +00:00
border-bottom: 1px solid #eee;
span {
margin-left: 0.618em;
margin-right: 0.618em;
}
&::before {
@include iconbeforedashicons( '\f107' );
}
2012-11-22 13:27:17 +00:00
}
2017-04-04 16:30:16 +00:00
&.general_options a::before {
content: '\f107';
}
2017-04-04 16:30:16 +00:00
&.inventory_options a::before {
content: '\f481';
2012-11-22 13:27:17 +00:00
}
2017-04-04 16:30:16 +00:00
&.shipping_options a::before {
font-family: 'WooCommerce';
content: '\e01a';
2012-11-22 13:27:17 +00:00
}
2017-04-04 16:30:16 +00:00
&.linked_product_options a::before {
content: '\f103';
2012-11-22 13:27:17 +00:00
}
2017-04-04 16:30:16 +00:00
&.attribute_options a::before {
content: '\f175';
2012-11-22 13:27:17 +00:00
}
2017-04-04 16:30:16 +00:00
&.advanced_options a::before {
font-family: 'Dashicons';
content: '\f111';
2012-11-22 13:27:17 +00:00
}
2017-04-04 16:30:16 +00:00
&.variations_options a::before {
content: '\f509';
}
2017-04-04 16:30:16 +00:00
&.usage_restriction_options a::before {
font-family: 'WooCommerce';
content: '\e602';
}
2017-04-04 16:30:16 +00:00
&.usage_limit_options a::before {
font-family: 'WooCommerce';
content: '\e601';
}
2017-04-04 16:30:16 +00:00
&.general_coupon_data a::before {
font-family: 'WooCommerce';
content: '\e600';
2012-11-22 13:27:17 +00:00
}
2017-04-04 16:30:16 +00:00
&.active a {
color: #555;
position: relative;
background-color: #eee;
2012-11-22 13:27:17 +00:00
}
2012-01-11 18:59:30 +00:00
}
}
2012-11-22 13:27:17 +00:00
}
2014-03-25 13:59:30 +00:00
/**
* Shipping
*/
.woocommerce_page_wc-settings {
input[type=url], input[type=email] {
direction: ltr;
}
2014-03-25 13:59:30 +00:00
.shippingrows {
th.check-column {
padding-top: 20px;
}
2017-04-04 16:30:16 +00:00
tfoot th {
padding-left: 10px;
2014-03-25 13:59:30 +00:00
}
.add.button::before {
@include iconbefore( '\e007' );
2014-03-25 13:59:30 +00:00
}
}
h3.wc-settings-sub-title {
2014-09-15 15:47:01 +00:00
font-size: 1.2em;
}
2014-03-25 13:59:30 +00:00
}
#woocommerce-product-data,
#woocommerce-product-type-options,
#woocommerce-order-data,
#woocommerce-order-downloads,
#woocommerce-coupon-data {
2012-11-22 13:27:17 +00:00
.inside {
margin: 0;
2015-10-01 05:53:16 +00:00
padding: 0;
2012-11-22 13:27:17 +00:00
}
2011-08-09 15:16:18 +00:00
}
2012-11-22 13:27:17 +00:00
.woocommerce_options_panel,
.panel {
2015-10-01 05:53:16 +00:00
padding: 9px;
color: #555;
2017-04-04 16:30:16 +00:00
.form-field .woocommerce-help-tip {
font-size: 1.4em;
}
2011-08-09 15:16:18 +00:00
}
.woocommerce_page_settings .woocommerce_options_panel,
.panel {
2011-08-09 15:16:18 +00:00
padding: 0;
}
#woocommerce-product-type-options .panel,
#woocommerce-product-specs .inside {
2011-08-09 15:16:18 +00:00
margin: 0;
2015-10-01 05:53:16 +00:00
padding: 9px;
2011-08-09 15:16:18 +00:00
}
.woocommerce_options_panel p,
#woocommerce-product-type-options .panel p,
.woocommerce_options_panel fieldset.form-field {
2011-08-09 15:16:18 +00:00
margin: 0 0 9px;
font-size: 12px;
padding: 5px 9px;
2011-08-09 15:16:18 +00:00
line-height: 24px;
&::after {
content: '.';
display: block;
height: 0;
clear: both;
visibility: hidden;
}
2011-08-09 15:16:18 +00:00
}
.woocommerce_options_panel .checkbox,
.woocommerce_variable_attributes .checkbox {
width: auto;
2016-12-19 15:49:25 +00:00
margin: 4px 0 !important;
2011-08-09 15:16:18 +00:00
vertical-align: middle;
2016-12-19 15:49:25 +00:00
float: left;
2011-08-09 15:16:18 +00:00
}
.woocommerce_variations,
.woocommerce_options_panel {
2017-04-04 16:30:16 +00:00
.downloadable_files table {
width: 100%;
padding: 0 !important;
2017-04-04 16:30:16 +00:00
th {
padding: 7px 0 7px 7px !important;
2017-04-04 16:30:16 +00:00
&.sort {
width: 17px;
padding: 7px !important;
}
2017-04-04 16:30:16 +00:00
.woocommerce-help-tip {
font-size: 1.1em;
margin-left: 0;
}
}
2017-04-04 16:30:16 +00:00
td {
vertical-align: middle !important;
padding: 4px 0 4px 7px !important;
position: relative;
2017-04-04 16:30:16 +00:00
&:last-child {
padding-right: 7px !important;
}
2017-04-04 16:30:16 +00:00
input.input_text {
width: 100%;
float: none;
min-width: 0;
margin: 1px 0;
}
2017-04-04 16:30:16 +00:00
.upload_file_button {
width: auto;
float: right;
cursor: pointer;
}
2017-04-04 16:30:16 +00:00
.delete {
@include ir();
font-size: 1.2em;
&::before {
2017-04-04 16:30:16 +00:00
@include icon_dashicons( '\f153' );
2014-01-22 10:36:51 +00:00
color: #999;
}
2014-01-22 10:36:51 +00:00
&:hover {
&::before {
2017-04-04 16:30:16 +00:00
color: $red;
2014-01-22 10:36:51 +00:00
}
2013-09-26 15:35:37 +00:00
}
}
}
2017-04-04 16:30:16 +00:00
td.sort {
width: 17px;
cursor: move;
font-size: 15px;
text-align: center;
2017-04-04 16:30:16 +00:00
background: #f9f9f9;
padding-right: 7px !important;
&::before {
content: '\f333';
font-family: 'Dashicons';
text-align: center;
2017-04-04 16:30:16 +00:00
line-height: 1;
color: #999;
display: block;
width: 17px;
float: left;
height: 100%;
}
2017-04-04 16:30:16 +00:00
&:hover::before {
color: #333;
}
}
}
2017-04-04 16:30:16 +00:00
}
.woocommerce_variation {
h3 .sort {
width: 17px;
height: 26px;
cursor: move;
float: right;
font-size: 15px;
font-weight: 400;
margin-right: 0.5em;
visibility: hidden;
text-align: center;
vertical-align: middle;
&::before {
content: '\f333';
font-family: 'Dashicons';
text-align: center;
line-height: 28px;
color: #999;
display: block;
width: 17px;
float: left;
height: 100%;
}
&:hover::before {
color: #777;
}
}
h3:hover, &.ui-sortable-helper {
.sort {
2015-08-26 11:53:48 +00:00
visibility: visible;
}
}
}
2012-07-22 12:50:45 +00:00
.woocommerce_options_panel {
2015-10-01 05:53:16 +00:00
min-height: 175px;
box-sizing: border-box;
.downloadable_files {
padding: 0 9px 0 162px;
position: relative;
margin: 9px 0;
label {
position: absolute;
left: 0;
margin: 0 0 0 12px;
line-height: 24px;
}
}
2012-07-22 12:50:45 +00:00
p {
2015-10-01 05:53:16 +00:00
margin: 9px 0;
2012-07-22 12:50:45 +00:00
}
p.form-field,
fieldset.form-field {
padding: 5px 20px 5px 162px !important; /** Padding for aligning labels left - 12px + 150 label width **/
}
2014-12-01 15:56:17 +00:00
.sale_price_dates_fields {
.short:first-of-type {
margin-bottom: 1em;
}
.short:nth-of-type( 2 ) {
2014-12-01 15:56:17 +00:00
clear: left;
}
}
label,
legend {
2012-07-22 12:50:45 +00:00
float: left;
width: 150px;
padding: 0;
margin: 0 0 0 -150px;
2012-08-02 22:13:20 +00:00
2012-07-22 12:50:45 +00:00
.req {
2014-11-13 14:16:32 +00:00
font-weight: 700;
2012-07-22 12:50:45 +00:00
font-style: normal;
2014-09-22 17:35:48 +00:00
color: $red;
2012-07-22 12:50:45 +00:00
}
}
2012-07-22 12:50:45 +00:00
.description {
padding: 0;
margin: 0 0 0 7px;
clear: none;
display: inline;
2012-07-22 12:50:45 +00:00
}
2012-07-22 12:50:45 +00:00
.description-block {
margin-left: 0;
display: block;
}
textarea,
input,
select {
2012-07-22 12:50:45 +00:00
margin: 0;
}
2012-07-22 12:50:45 +00:00
textarea {
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
float: left;
2012-07-22 12:50:45 +00:00
height: 3.5em;
line-height: 1.5em;
2015-10-01 05:53:16 +00:00
vertical-align: top;
2012-07-22 12:50:45 +00:00
}
input[type='text'],
input[type='email'],
input[type='number'],
input[type='password'] {
2012-07-22 12:50:45 +00:00
width: 50%;
float: left;
}
2012-07-22 12:50:45 +00:00
input.button {
width: auto;
margin-left: 8px;
}
2012-07-22 12:50:45 +00:00
select {
float: left;
}
input[type='text'].short,
input[type='email'].short,
input[type='number'].short,
input[type='password'].short,
2012-07-22 12:50:45 +00:00
.short {
2014-11-11 15:01:33 +00:00
width: 50%;
2012-07-22 12:50:45 +00:00
}
2012-07-22 12:50:45 +00:00
.sized {
width: auto !important;
margin-right: 6px;
}
2012-07-22 12:50:45 +00:00
.options_group {
border-top: 1px solid white;
2014-10-17 13:42:15 +00:00
border-bottom: 1px solid #eee;
2015-10-01 05:53:16 +00:00
&:first-child {
border-top: 0;
}
2015-10-01 05:53:16 +00:00
&:last-child {
border-bottom: 0;
2012-12-06 16:54:44 +00:00
}
2015-10-01 05:53:16 +00:00
fieldset {
margin: 9px 0;
font-size: 12px;
padding: 5px 9px;
line-height: 24px;
2015-10-01 05:53:16 +00:00
label {
2012-12-06 16:54:44 +00:00
width: auto;
2015-10-01 05:53:16 +00:00
float: none;
}
2015-10-01 05:53:16 +00:00
ul {
float: left;
width: 50%;
margin: 0;
padding: 0;
li {
margin: 0;
2012-12-06 16:54:44 +00:00
width: auto;
2015-10-01 05:53:16 +00:00
input {
width: auto;
float: none;
margin-right: 4px;
}
2012-12-06 16:54:44 +00:00
}
}
2017-04-04 16:30:16 +00:00
ul.wc-radios label {
margin-left: 0;
2014-02-21 16:16:23 +00:00
}
}
2012-12-06 16:54:44 +00:00
}
2017-04-04 16:30:16 +00:00
.dimensions_field .wrap {
display: block;
width: 50%;
2014-11-11 15:01:33 +00:00
2017-04-04 16:30:16 +00:00
input {
width: 30.75%;
margin-right: 3.8%;
}
2017-04-04 16:30:16 +00:00
.last {
margin-right: 0;
2012-07-22 12:50:45 +00:00
}
}
&.padded {
padding: 1em;
}
.select2-container {
float: left;
}
2012-01-11 18:59:30 +00:00
}
2011-08-10 17:11:11 +00:00
#woocommerce-product-data input.dp-applied {
2011-08-09 15:16:18 +00:00
float: left;
}
#grouped_product_options,
#virtual_product_options,
#simple_product_options {
2011-08-09 15:16:18 +00:00
padding: 12px;
font-style: italic;
color: #666;
}
/**
* WooCommerce meta boxes
*/
2012-02-25 11:43:25 +00:00
.wc-metaboxes-wrapper {
.toolbar {
2012-02-13 19:21:52 +00:00
margin: 0 !important;
border-top: 1px solid white;
2014-10-17 13:42:15 +00:00
border-bottom: 1px solid #eee;
2012-02-13 19:21:52 +00:00
padding: 9px 12px !important;
2012-08-06 13:28:49 +00:00
&:first-child {
border-top: 0;
2012-08-06 13:28:49 +00:00
}
2012-11-22 13:27:17 +00:00
&:last-child {
border-bottom: 0;
2012-11-22 13:27:17 +00:00
}
.add_variation {
2015-07-08 22:46:19 +00:00
float: right;
margin-left: 5px;
}
.save-variation-changes,
.cancel-variation-changes {
2015-07-08 22:46:19 +00:00
float: left;
margin-right: 5px;
}
2012-02-13 19:21:52 +00:00
}
p.toolbar {
overflow: hidden;
zoom: 1;
}
.expand-close {
margin-right: 2px;
color: #777;
font-size: 12px;
font-style: italic;
a {
background: none;
padding: 0;
font-size: 12px;
text-decoration: none;
}
}
2017-04-04 16:30:16 +00:00
&#product_attributes .expand-close {
float: right;
line-height: 28px;
}
button.add_variable_attribute,
.fr {
2012-02-13 19:21:52 +00:00
float: right;
2012-02-15 20:18:01 +00:00
margin: 0 0 0 6px;
2012-02-13 19:21:52 +00:00
}
2012-02-25 11:43:25 +00:00
.wc-metaboxes {
2014-10-17 13:42:15 +00:00
border-bottom: 1px solid #eee;
2012-02-13 19:21:52 +00:00
}
2012-02-25 11:43:25 +00:00
.wc-metabox-sortable-placeholder {
border-color: #bbb;
background-color: #f5f5f5;
2012-02-25 11:43:25 +00:00
margin-bottom: 9px;
border-width: 1px;
border-style: dashed;
2012-02-25 11:43:25 +00:00
}
2012-02-25 11:43:25 +00:00
.wc-metabox {
2013-11-12 16:41:29 +00:00
background: #fff;
2014-10-17 13:42:15 +00:00
border-bottom: 1px solid #eee;
margin: 0 !important;
select {
font-weight: 400;
}
&:last-of-type {
border-bottom: 0;
}
2013-11-12 16:41:29 +00:00
.handlediv {
width: 27px;
&::before {
content: '\f142' !important;
cursor: pointer;
display: inline-block;
font: 400 20px/1 'Dashicons';
line-height: 0.5 !important;
padding: 8px 10px;
position: relative;
right: 12px;
top: 0;
2013-11-12 16:41:29 +00:00
}
}
&.closed {
@include border-radius(3px);
2017-04-04 16:30:16 +00:00
.handlediv::before {
content: '\f140' !important;
2013-11-15 14:32:44 +00:00
}
2013-11-15 14:32:44 +00:00
h3 {
border: 0;
2013-11-15 14:32:44 +00:00
}
}
2012-02-13 19:21:52 +00:00
h3 {
margin: 0 !important;
padding: 0.75em 0.75em 0.75em 1em !important;
2012-02-13 19:21:52 +00:00
font-size: 1em !important;
overflow: hidden;
zoom: 1;
cursor: move;
2015-07-08 22:08:07 +00:00
button, a.delete {
2012-02-13 19:21:52 +00:00
float: right;
}
2015-07-08 22:08:07 +00:00
a.delete {
color: red;
font-weight: normal;
line-height: 26px;
text-decoration: none;
2015-08-24 15:05:09 +00:00
position: relative;
2015-08-26 11:53:48 +00:00
visibility: hidden;
2015-07-08 22:08:07 +00:00
}
2012-02-13 19:21:52 +00:00
strong {
font-weight: normal;
2015-07-08 22:08:07 +00:00
line-height: 26px;
2014-10-17 13:42:15 +00:00
font-weight: 700;
2012-02-13 19:21:52 +00:00
}
2012-02-13 19:21:52 +00:00
select {
font-family: sans-serif;
2015-08-26 11:53:48 +00:00
max-width: 20%;
margin: 0.25em 0.25em 0.25em 0;
2012-02-13 19:21:52 +00:00
}
2012-02-13 19:21:52 +00:00
.handlediv {
background-position: 6px 5px !important;
2015-08-26 11:53:48 +00:00
visibility: hidden;
2015-07-08 22:08:07 +00:00
height: 26px;
2012-02-13 19:21:52 +00:00
}
2012-02-25 11:43:25 +00:00
&.fixed {
cursor: pointer !important;
}
2012-02-13 19:21:52 +00:00
}
&.woocommerce_variation h3 {
cursor: pointer;
padding: 0.5em 0.75em 0.5em 1em !important;
2015-08-26 11:53:48 +00:00
a.delete, .handlediv, .sort {
margin-top: 0.25em;
2015-08-26 11:53:48 +00:00
}
}
h3:hover, &.ui-sortable-helper {
2015-07-08 22:08:07 +00:00
a.delete, .handlediv {
2015-08-26 11:53:48 +00:00
visibility: visible;
2015-07-08 22:08:07 +00:00
}
2012-02-13 19:21:52 +00:00
}
2012-02-13 19:21:52 +00:00
table {
2012-02-25 11:43:25 +00:00
width: 100%;
position: relative;
2014-10-17 13:42:15 +00:00
background-color: #fdfdfd;
padding: 1em;
border-top: 1px solid #eee;
2012-02-13 19:21:52 +00:00
td {
2012-02-25 11:43:25 +00:00
text-align: left;
2014-10-17 13:42:15 +00:00
padding: 0 6px 1em 0;
2012-02-13 19:21:52 +00:00
vertical-align: top;
border: 0;
2012-02-25 11:43:25 +00:00
label {
text-align: left;
display: block;
line-height: 21px;
}
2012-02-25 11:43:25 +00:00
input {
float: left;
min-width: 200px;
}
input,
textarea {
2012-02-25 11:43:25 +00:00
width: 100%;
margin: 0;
display: block;
font-size: 14px;
padding: 4px;
color: #555;
}
select,
.select2-container {
width: 100% !important;
2012-02-25 11:43:25 +00:00
}
input.short {
width: 200px;
}
2012-02-25 11:43:25 +00:00
input.checkbox {
2013-11-12 16:34:44 +00:00
width: 16px;
2012-02-25 11:43:25 +00:00
min-width: inherit;
2013-11-12 16:34:44 +00:00
vertical-align: text-bottom;
display: inline-block;
2012-02-25 11:43:25 +00:00
float: none;
}
2012-02-13 19:21:52 +00:00
}
2012-02-25 11:43:25 +00:00
td.attribute_name {
width: 200px;
2012-02-13 19:21:52 +00:00
}
.plus,
.minus {
2012-02-15 20:18:01 +00:00
margin-top: 6px;
}
.fl {
float: left;
}
.fr {
float: right;
}
2012-02-13 19:21:52 +00:00
}
2012-02-15 20:18:01 +00:00
}
2012-02-13 19:21:52 +00:00
}
2015-07-07 22:06:51 +00:00
.variations-pagenav {
float: right;
2015-07-10 23:04:16 +00:00
line-height: 24px;
2015-07-07 22:06:51 +00:00
.displaying-num {
2015-07-08 22:46:19 +00:00
color: #777;
font-size: 12px;
font-style: italic;
}
2015-07-07 22:06:51 +00:00
a {
padding: 0 10px 3px;
2015-07-07 22:06:51 +00:00
background: rgba(0, 0, 0, 0.05);
font-size: 16px;
font-weight: 400;
text-decoration: none;
}
a.disabled,
a.disabled:active,
a.disabled:focus,
a.disabled:hover {
color: #a0a5aa;
2015-07-07 22:06:51 +00:00
background: rgba(0, 0, 0, 0.05);
}
}
.variations-defaults {
float: left;
2015-08-26 11:53:48 +00:00
select {
margin: 0.25em 0.25em 0.25em 0;
2015-08-26 11:53:48 +00:00
}
2015-07-07 22:06:51 +00:00
}
.woocommerce_variable_attributes {
background-color: #fdfdfd;
2014-10-17 13:42:15 +00:00
border-top: 1px solid #eee;
.data {
@include clearfix;
2014-10-17 13:42:15 +00:00
padding: 1em 2em;
}
.upload_image_button {
display: block;
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
width: 64px;
height: 64px;
float: left;
margin-right: 20px;
position: relative;
2015-04-08 09:19:23 +00:00
cursor: pointer;
img {
width: 100%;
height: auto;
2015-04-08 09:19:23 +00:00
display: none;
}
&::before {
content: '\f128';
font-family: 'Dashicons';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
text-align: center;
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
line-height: 64px;
font-size: 64px;
font-weight: 400;
-webkit-font-smoothing: antialiased;
}
&.remove {
2015-04-08 09:19:23 +00:00
img {
display: block;
}
2014-10-17 13:42:15 +00:00
&::before {
content: '\f335';
2015-04-08 09:19:23 +00:00
display: none;
}
2017-04-04 16:30:16 +00:00
&:hover::before {
display: block;
2012-10-08 11:51:00 +00:00
}
}
}
.options {
border: 1px solid #eee;
border-width: 1px 0;
padding: 0.25em 0;
label {
display: inline-block;
padding: 4px 1em 2px 0;
}
input[type=checkbox] {
2017-01-31 18:05:21 +00:00
margin: 0 5px 0 .5em!important;
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
vertical-align: middle;
}
}
}
.form-row {
label {
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
display: inline-block;
}
.woocommerce-help-tip {
float: right;
}
input[type=text],
input[type=number],
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
select,
textarea {
width: 100%;
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
vertical-align: middle;
margin: 2px 0 0;
padding: 6px;
}
select {
height: 30px;
line-height: 30px;
}
&.dimensions_field {
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
.wrap {
clear:left;
display: block;
}
input {
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
width: 33%;
float: left;
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
vertical-align: middle;
&:last-of-type {
margin-right: 0;
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
width: 34%;
2012-10-08 11:51:00 +00:00
}
}
2011-08-09 15:16:18 +00:00
}
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
&.form-row-first,
&.form-row-last {
width: 48%;
float: right;
}
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
&.form-row-first {
clear: both;
float: left;
}
WIP - Product CRUD (#12065) * Created function to get the catalog visibility options * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Add related product functions and deprecate those in class. * No need to exclude ID * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Sanitize ids later * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Bump template version * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * Made abstract function useful * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * Allow WP_Query to preload post data, and meta in wc_get_products() Allow WP_Query to bulk query for post data and meta if more than just IDs are requested from wc_get_products(). Reduces query count significantly. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * First methods for WP_Product crud * Product set methods * Fixed several erros while setting data * Hardcode the get_type per product class * Initial look through getters and setters and abstract data * Missing var * Fixed coding standards and improved the docblocks * Get cached terms from wc_get_related_terms() * Fixed wrong variable in wc_get_related_terms * Use count() instead of sizeof() * Add related product functions and deprecate those in class. * No need to exclude ID * Sanitize ids later * Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it. * Remove unneeded comments * wc_get_product_term_ids instead of related wording and use in other places. get_the_terms is used here and also handles caching, something wp_get_post_terms does not. * Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function * External Product CRUD * _virtual meta should be 'no', not taxable, in product unit test helper * Bump template version * Made abstract function useful * Grouped product class * Tests * Move children to meta and update test * Use get_upsell_ids * Spacing in query * Moving and refactoring methods * Availability html * Tidy/add todos * Rename method * Put back review functions (still todo) * missing $this * get_price_including_tax/excluding_tax functions * wc_get_price_to_display * Price handling * [Product CRUD] Variable (#12146) * [Product CRUD] Variable Products * Handle PR feedback. * [Product CRUD] Grouped Handling (#12151) * Handle grouped product saving * Update routine * [Product CRUD] Product crud terms (#12149) * Category and tag id handling * Replace template functions * Remove todo * Handle default name in save function * Product crud admin save routine (#12174) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Spacing * Fix comment * wc_implode_text_attributes helper function * [Product CRUD] Product crud admin use getters (#12196) * Initial props * Work on admin saving * Set/get attributes * Atom was moaning about this before but no longer. * Update get_shipping_class * WC_Product_Attribute * Use getter in admin panel * Fix attribute saving * Move settings into new files * Refactor panels and use getters * Use getters for variation panel * Revert save variation changes for now * Add todos * Fix downloads * REST API CRUD Updates * Additional API updates/fixes. Added some todos * Fix final failing tests and implementing setters/getters and attributes functionality. * Fix comparison for is_on_sale and remove download_type from WC_Product. * Add a wc_get_products wrapper. * Remove the download type input from the product data metabox for downloadable products. (#12221) * [Product CRUD] Variations - setters, getters and admin. (#12228) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * Feedback fixes * Implement CRUD in the legacy REST API * Handle PR feedback * [Product CRUD] Getter setter proxy methods (#12236) * Started on variation changes * Stock functions * Variation class * Bulk change ->id to get_id() to fix variation form display * Missing status * Fix add to cart * Start on stored data save * save variation * Save_variations * Variation edit panel * Save variations code works. * Remove stored data code and fix save * Improve legacy class * wc_bool_to_string * prepare_set_attributes * Use wc_get_products * More feedback fixes * get_prop implementation in abstract and data classes * Implement set_prop * Change handling * Array key exists * set_object_read * Use get_the_terms() instead of wp_get_post_terms() wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not use the object cache, and generates a database query every time it is used. get_the_terms() however can use data from the object cache if present. * [Product CRUD] Variable, variation, notices, and stock handling (#12277) * No longer needed * Remove old todos * Use getters in admin list * Related and upsells update for CRUD * Fix notice in gallery * Variable fixes and todos * Context * Price sync * Revert variation attributes change * Return parent data in view context * Defer term counting * wc_find_matching_product_variation * Stock manage tweaks * Stock fixes * Correct id * correct id * Better sync * Data logic setter fix * feedback * Prevent notices * Handle image_id from parent * Fix error * Remove _wc_save_product_price * Remove todo * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * [Product CRUD] Abstract todos (#12305) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Revert "[Product CRUD] Abstract todos (#12305)" This reverts commit 9a6136fcf88fec16f97457b7c8a4388f7587bfa2. * Remove deprecated get_variation_id() * New default attributes method * [Product CRUD] Product Datastore (#12317) * Fix up tests in the product/* folder. * Handle data store updates for grouped, variable, external, simple, and general data store updates for products. * Variations & variable changes. * Update -functions.php calls to use data store. * Add an interface for the public product data store methods. * Finished product factory tests * Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods. * Fix up delete in all versions of the api * Handle feedback * Match protected decloration to parent * Product crud abstract todos (#12316) * Get dimensions and weights, with soft deprecation * Product attributes * Ratings * Fix read method * Downloads * Feedback * Fix up store * Fixed method returning in write context * Fix error in variation admin * Check for parent value - fixes tax class * Remove old/complete todos * Allow set tax class as "parent" * Removed duplicated sync * Fixed wrong variation URLs * Fixed undefined $image_id in WC_Product_Variation::get_image_id() * Allow wc_rest_prepare_date_response() handle timestamps * Updated get methods on REST API for variations * Use variations CRUD to save variations metadata * Remove deprecated get_variation_id() * New default attributes method * Fixed method returning in write context * Allow set tax class as "parent" * Removed duplicated sync * Fixed coding standards * TODO is not accurate. * Should pass WC_Product instancies to WC_Comments methods (#12327) * Use new method in abstract order class to prevent headers sent issue in tests * Fixed variable description in REST API * Updated how create initial product variation * Fixed a few fatal errors and warnings in Products CRUD (#12329) * Fixed a few fatal errors and warnings in Products CRUD * Fixed sync functions * Add variations CRUD to legacy API (#12331) * Apply crud to variable products in legacy API v1 * New REST API do not need fallback for default attributes * Apply variations CRUD to legacy API v2 * Legacy v2 - save default attributes * Variations in legacy API v2 do not have descriptions * Fixed legacy API v2 variations params * Applied variations CRUD to legacy API v3 * Sync before save in legacy apis * Punc * Removed API todos * Removed test * Products endpoint tweaks (#12354) * Var type already normalized on CRUD * Let Product CRUD handle with validation, sanitization and conditional checks * Set downloads using WC_Product_Download * Stop try catch exceptions more than one time * Handle WC_Data_Exception in legacy API * Complete remove products when fails on creating * On creating I mean! * Already have a method to complete delete products * Fixed standards using WP CodeSniffer * get_the_terms() returns false when empty * get_manage_stock returns boolean @claudiosanches * Merge conflict * Variations API endpoint fixes * Product CRUD improvements (#12359) * args is not used any more - remove todo * Added test for attributes * wc_get_price_excluding_tax usage * parent usage * Fix rating counts * Test fixes * Cleanup after tests * Make sure status transition code runs even during API calls, not just in admin. * Default visibility * Fix attribute setting in API * Use get name instead of get title * variation id usage * Improved cross sell templates * variation_data * Grouped product sync * Notices * Sync is not needed in API * Delete * Rename interfaces * Update counts in data store
2016-11-16 12:38:24 +00:00
&.form-row-full {
clear: both;
}
}
/**
* Tooltips
*/
2011-08-20 15:41:42 +00:00
.tips {
cursor: help;
text-decoration: none;
}
img.tips {
padding: 5px 0 0;
2011-08-20 15:41:42 +00:00
}
#tiptip_holder {
display: none;
z-index: 8675309;
position: absolute;
top: 0;
/*rtl:ignore*/
left: 0;
2017-04-18 11:37:59 +00:00
&.tip_top {
padding-bottom: 5px;
#tiptip_arrow_inner {
margin-top: -7px;
margin-left: -6px;
2015-04-08 09:27:14 +00:00
border-top-color: #333;
}
}
&.tip_bottom {
padding-top: 5px;
#tiptip_arrow_inner {
margin-top: -5px;
margin-left: -6px;
2015-04-08 09:27:14 +00:00
border-bottom-color: #333;
}
}
&.tip_right {
padding-left: 5px;
#tiptip_arrow_inner {
margin-top: -6px;
margin-left: -5px;
2015-04-08 09:27:14 +00:00
border-right-color: #333;
}
}
&.tip_left {
padding-right: 5px;
#tiptip_arrow_inner {
margin-top: -6px;
margin-left: -7px;
2015-04-08 09:27:14 +00:00
border-left-color: #333;
}
}
}
#tiptip_content,
.chart-tooltip,
.wc_error_tip {
2011-08-20 15:41:42 +00:00
color: #fff;
font-size: 0.8em;
max-width: 150px;
2015-04-08 09:27:14 +00:00
background: #333;
text-align: center;
2015-04-08 09:27:14 +00:00
border-radius: 3px;
padding: 0.618em 1em;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
code {
padding: 1px;
background: #888;
}
}
#tiptip_arrow,
#tiptip_arrow_inner {
position: absolute;
border-color: transparent;
border-style: solid;
border-width: 6px;
height: 0;
width: 0;
}
/*rtl:raw:
#tiptip_arrow {
2017-04-18 11:37:59 +00:00
right: 50%;
margin-right: -6px;
}
*/
.wc_error_tip {
max-width: 20em;
line-height: 1.8em;
position: absolute;
white-space: normal;
background: #d82223;
margin: 1.5em 1px 0 -1em;
z-index: 9999999;
&::after {
content: '';
display: block;
border: 8px solid #d82223;
border-right-color: transparent;
border-left-color: transparent;
border-top-color: transparent;
position: absolute;
top: -3px;
left: 50%;
margin: -1em 0 0 -3px;
}
2011-08-20 15:41:42 +00:00
}
/**
* Date picker
*/
img.ui-datepicker-trigger {
vertical-align: middle;
margin-top: -1px;
cursor: pointer;
}
.woocommerce_options_panel img.ui-datepicker-trigger,
.wc-metabox-content img.ui-datepicker-trigger {
float: left;
margin-right: 8px;
margin-top: 4px;
margin-left: 4px;
}
#ui-datepicker-div {
display: none;
}
2011-08-10 17:11:11 +00:00
/**
* Reports
*/
.woocommerce-reports-wrap,
.woocommerce-reports-wide {
2013-06-22 10:37:59 +00:00
&.woocommerce-reports-wrap {
margin-left: 300px;
padding-top: 18px;
}
2011-09-20 10:30:21 +00:00
&.halved {
margin: 0;
overflow: hidden;
zoom: 1;
}
2017-04-04 16:30:16 +00:00
.widefat td {
vertical-align: top;
padding: 7px;
.description {
margin: 4px 0 0;
2013-07-09 10:48:56 +00:00
}
}
2011-09-16 23:07:40 +00:00
.postbox {
&::after {
content: '.';
display: block;
height: 0;
clear: both;
visibility: hidden;
2013-06-28 16:33:37 +00:00
}
2011-09-16 23:07:40 +00:00
h3 {
cursor: default !important;
}
2013-07-10 11:05:45 +00:00
.inside {
padding: 10px;
margin: 0 !important;
}
div.stats_range,
h3.stats_range {
border-bottom-color: #dfdfdf;
2015-11-06 15:32:33 +00:00
margin: 0;
padding: 0 !important;
2013-07-18 11:56:12 +00:00
.export_csv {
float: right;
line-height: 26px;
border-left: 1px solid #dfdfdf;
2013-11-08 11:46:44 +00:00
padding: 10px;
2013-07-18 11:56:12 +00:00
display: block;
text-decoration: none;
&::before {
@include iconbeforedashicons( '\f346' );
margin-right: 4px;
2013-07-19 11:41:38 +00:00
}
2013-07-18 11:56:12 +00:00
}
2013-06-22 10:37:59 +00:00
ul {
list-style: none outside;
margin: 0;
padding: 0;
zoom: 1;
2013-12-13 10:45:13 +00:00
background: #f5f5f5;
border-bottom: 1px solid #ccc;
&::before,
&::after {
content: ' ';
display: table;
2013-07-16 11:42:46 +00:00
}
&::after {
clear: both;
2013-07-16 11:42:46 +00:00
}
2013-06-22 10:37:59 +00:00
li {
float: left;
margin: 0;
padding: 0;
2013-06-24 16:47:28 +00:00
line-height: 26px;
font-weight: bold;
font-size: 14px;
2013-06-22 10:37:59 +00:00
a {
border-right: 1px solid #dfdfdf;
2013-11-08 11:46:44 +00:00
padding: 10px;
2013-06-22 10:37:59 +00:00
display: block;
2013-06-24 16:47:28 +00:00
text-decoration: none;
}
2013-06-24 16:47:28 +00:00
&.active {
2013-11-08 11:46:44 +00:00
background: #fff;
box-shadow: 0 4px 0 0 #fff;
2013-06-25 13:59:20 +00:00
a {
color: #777;
}
2013-06-24 16:47:28 +00:00
}
2013-06-24 16:47:28 +00:00
&.custom {
padding: 9px 10px;
vertical-align: middle;
form,
div {
2013-06-24 16:47:28 +00:00
display: inline;
margin: 0;
2013-06-24 16:47:28 +00:00
input.range_datepicker {
padding: 0;
margin: 0 10px 0 0;
2013-06-24 16:47:28 +00:00
background: transparent;
border: 0;
color: #777;
text-align: center;
box-shadow: none;
&.from {
margin-right: 0;
}
2013-06-24 16:47:28 +00:00
}
}
2013-06-22 10:37:59 +00:00
}
}
}
}
.chart-with-sidebar {
2013-06-24 16:47:28 +00:00
padding: 12px 12px 12px 249px;
2013-06-22 10:37:59 +00:00
margin: 0 !important;
.chart-sidebar {
2013-06-24 16:47:28 +00:00
width: 225px;
margin-left: -237px;
2013-06-22 10:37:59 +00:00
float: left;
}
}
.chart-widgets {
margin: 0;
2013-06-24 16:47:28 +00:00
padding: 0;
li.chart-widget {
2013-06-24 16:47:28 +00:00
margin: 0 0 1em;
2013-07-16 11:42:46 +00:00
background: #fafafa;
border: 1px solid #dfdfdf;
2013-06-27 15:12:17 +00:00
&::after {
content: '.';
display: block;
height: 0;
clear: both;
visibility: hidden;
2013-06-27 15:12:17 +00:00
}
2013-06-24 16:47:28 +00:00
h4 {
2013-07-16 11:42:46 +00:00
background: #fff;
border: 1px solid #dfdfdf;
2013-07-18 08:20:49 +00:00
border-left-width: 0;
border-right-width: 0;
2013-07-16 11:42:46 +00:00
padding: 10px;
margin: 0;
2014-09-22 17:35:48 +00:00
color: $blue;
border-top-width: 0;
background-image: linear-gradient(to top, #ececec, #f9f9f9);
2013-07-18 08:20:49 +00:00
&.section_title:hover {
color: $red;
2013-07-16 11:42:46 +00:00
}
2013-06-24 16:47:28 +00:00
}
2013-06-27 15:12:17 +00:00
.section_title {
cursor: pointer;
2013-06-27 15:12:17 +00:00
span {
display: block;
&::after {
@include iconafter( '\e035' );
2013-11-22 17:09:05 +00:00
float: right;
font-size: 0.9em;
2013-11-22 17:09:05 +00:00
line-height: 1.618;
}
2013-06-27 15:12:17 +00:00
}
2013-06-27 15:12:17 +00:00
&.open {
2013-07-16 11:42:46 +00:00
color: #333;
span::after {
2013-11-22 17:09:05 +00:00
display: none;
2013-06-27 15:12:17 +00:00
}
}
}
2013-07-16 11:42:46 +00:00
.section {
border-bottom: 1px solid #dfdfdf;
2015-01-12 15:43:13 +00:00
.select2-container {
width: 100% !important;
2013-11-22 17:09:05 +00:00
}
2013-07-16 11:42:46 +00:00
&:last-of-type {
border-radius: 0 0 3px 3px;
2013-07-16 11:42:46 +00:00
}
}
2013-06-24 16:47:28 +00:00
table {
2013-06-25 13:59:20 +00:00
width: 100%;
2013-06-24 16:47:28 +00:00
td {
2013-06-25 13:59:20 +00:00
padding: 7px 10px;
2013-06-24 16:47:28 +00:00
vertical-align: top;
border-top: 1px solid #e5e5e5;
2013-06-25 13:59:20 +00:00
line-height: 1.4em;
2013-06-24 16:47:28 +00:00
}
2013-07-16 11:42:46 +00:00
tr:first-child td {
border-top: 0;
2013-07-16 11:42:46 +00:00
}
2013-06-24 16:47:28 +00:00
td.count {
background: #f5f5f5;
2013-06-24 16:47:28 +00:00
}
2013-06-25 13:59:20 +00:00
td.name {
2014-10-30 14:02:51 +00:00
max-width: 175px;
a {
word-wrap: break-word;
}
2013-06-25 13:59:20 +00:00
}
2013-06-25 13:59:20 +00:00
td.sparkline {
vertical-align: middle;
}
2013-06-25 13:59:20 +00:00
.wc_sparkline {
width: 32px;
height: 1em;
display: block;
float: right;
}
tr.active td {
background: #f5f5f5;
}
}
form,
p {
2013-07-16 11:42:46 +00:00
margin: 0;
padding: 10px;
2013-06-27 15:12:17 +00:00
.submit {
margin-top: 10px;
}
}
#product_ids {
width: 100%;
2013-06-24 16:47:28 +00:00
}
.select_all,
.select_none {
2013-06-27 17:39:55 +00:00
float: right;
color: #999;
margin-left: 4px;
margin-top: 10px;
}
2013-06-24 16:47:28 +00:00
}
}
2013-06-22 10:37:59 +00:00
.chart-legend {
list-style: none outside;
2013-07-18 08:20:49 +00:00
margin: 0 0 1em;
2013-06-22 10:37:59 +00:00
padding: 0;
border: 1px solid #dfdfdf;
border-right-width: 0;
border-bottom-width: 0;
2013-07-16 11:42:46 +00:00
background: #fff;
2013-06-22 10:37:59 +00:00
li {
2013-07-16 11:42:46 +00:00
border-right: 5px solid #aaa;
2013-06-22 10:37:59 +00:00
color: #aaa;
2014-02-13 09:42:24 +00:00
padding: 1em;
2013-06-22 10:37:59 +00:00
display: block;
2013-07-16 11:42:46 +00:00
margin: 0;
2017-05-05 13:33:33 +00:00
transition: all ease 0.5s;
2013-07-16 11:42:46 +00:00
box-shadow:
inset 0 -1px 0 0 #dfdfdf;
2013-06-22 10:37:59 +00:00
strong {
2014-02-13 09:42:24 +00:00
font-size: 1.618em;
2013-06-22 10:37:59 +00:00
line-height: 1.2em;
color: #464646;
font-weight: normal;
display: block;
font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', sans-serif;
2015-02-13 13:38:30 +00:00
del {
color: #e74c3c;
font-weight: normal;
}
2013-06-22 10:37:59 +00:00
}
2013-07-16 11:42:46 +00:00
&:hover {
box-shadow:
inset 0 -1px 0 0 #dfdfdf,
2014-09-22 17:48:26 +00:00
inset 300px 0 0 rgba(156, 93, 144, 0.1);
2013-07-16 11:42:46 +00:00
border-right: 5px solid #9c5d90 !important;
padding-left: 1.5em;
2013-07-16 11:42:46 +00:00
color: #9c5d90;
}
2013-06-22 10:37:59 +00:00
}
}
2013-07-09 14:31:22 +00:00
.pie-chart-legend {
margin: 12px 0 0;
2013-07-09 14:31:22 +00:00
overflow: hidden;
2013-07-09 14:31:22 +00:00
li {
float: left;
margin: 0;
padding: 6px 0 0;
2013-07-09 14:31:22 +00:00
border-top: 4px solid #999;
text-align: center;
box-sizing: border-box;
2013-07-09 14:31:22 +00:00
width: 50%;
}
}
2011-09-16 23:07:40 +00:00
.stat {
font-size: 1.5em !important;
2014-11-13 14:16:32 +00:00
font-weight: 700;
2011-09-16 23:07:40 +00:00
text-align: center;
}
2013-06-22 10:37:59 +00:00
.chart-placeholder {
width: 100%;
height: 650px;
overflow: hidden;
position: relative;
2013-06-22 10:37:59 +00:00
}
.chart-prompt {
line-height: 650px;
2013-06-27 15:12:17 +00:00
margin: 0;
color: #999;
font-size: 1.2em;
font-style: italic;
text-align: center;
}
2013-06-22 10:37:59 +00:00
.chart-container {
background: #fff;
padding: 12px;
position: relative;
border: 1px solid #dfdfdf;
border-radius: 3px;
2013-06-22 10:37:59 +00:00
}
2013-06-22 10:37:59 +00:00
.main .chart-legend {
margin-top: 12px;
2013-06-22 10:37:59 +00:00
li {
border-right: 0;
margin: 0 8px 0 0;
float: left;
border-top: 4px solid #aaa;
}
2011-09-16 23:07:40 +00:00
}
}
2011-09-16 23:07:40 +00:00
.woocommerce-reports-main {
float: left;
min-width: 100%;
2017-04-04 16:30:16 +00:00
table td {
padding: 9px;
2012-07-20 19:08:39 +00:00
}
2011-09-16 23:07:40 +00:00
}
2011-09-16 23:07:40 +00:00
.woocommerce-reports-sidebar {
display: inline;
width: 281px;
margin-left: -300px;
clear: both;
float: left;
}
2011-09-20 10:30:21 +00:00
.woocommerce-reports-left {
width: 49.5%;
float: left;
}
2011-09-20 10:30:21 +00:00
.woocommerce-reports-right {
width: 49.5%;
float: right;
}
2014-02-13 09:37:39 +00:00
.column-wc_actions {
a.edit,
a.view {
2014-09-22 17:35:48 +00:00
@include ir();
padding: 0 !important;
2014-02-13 09:37:39 +00:00
height: 2em !important;
width: 2em;
&::after {
@include icon_dashicons;
2014-02-13 09:37:39 +00:00
line-height: 1.85;
}
}
2017-04-04 16:30:16 +00:00
a.edit::after {
content: '\f464';
2014-02-13 09:37:39 +00:00
}
2017-04-04 16:30:16 +00:00
a.view::after {
content: '\f177';
2014-02-13 09:37:39 +00:00
}
}
2011-09-16 23:07:40 +00:00
}
2012-08-31 13:11:30 +00:00
.woocommerce-wide-reports-wrap {
padding-bottom: 11px;
2012-08-31 13:11:30 +00:00
.widefat {
.export-data {
float: right;
}
th,
td {
2012-08-31 13:11:30 +00:00
vertical-align: middle;
padding: 7px;
}
}
}
form.report_filters {
p {
vertical-align: middle;
}
label,
input,
div {
2012-08-31 13:11:30 +00:00
vertical-align: middle;
}
}
2013-06-22 10:37:59 +00:00
.chart-tooltip {
position: absolute;
display: none;
line-height: 1;
2011-09-16 12:45:46 +00:00
}
2011-08-24 16:23:04 +00:00
2011-09-16 17:39:37 +00:00
table.bar_chart {
width: 100%;
2011-09-16 17:39:37 +00:00
thead th {
text-align: left;
color: #ccc;
padding: 6px 0;
}
2011-09-16 17:39:37 +00:00
tbody {
th {
padding: 6px 0;
width: 25%;
text-align: left !important;
font-weight: normal !important;
border-bottom: 1px solid #fee;
}
2011-09-16 17:39:37 +00:00
td {
2011-12-05 12:10:49 +00:00
text-align: right;
line-height: 24px;
padding: 6px 6px 6px 0;
border-bottom: 1px solid #fee;
2011-12-05 12:10:49 +00:00
span {
color: #8a4b75;
display: block;
}
2011-12-05 12:10:49 +00:00
span.alt {
color: #47a03e;
margin-top: 6px;
}
}
2011-12-05 12:10:49 +00:00
td.bars {
2011-09-16 17:39:37 +00:00
position: relative;
text-align: left;
2011-12-05 12:10:49 +00:00
padding: 6px 6px 6px 0;
2011-09-16 17:39:37 +00:00
border-bottom: 1px solid #fee;
span,
a {
text-decoration: none;
2011-09-16 17:39:37 +00:00
clear: both;
background: #8a4b75;
float: left;
display: block;
line-height: 24px;
height: 24px;
border-radius: 3px;
2011-09-16 17:39:37 +00:00
}
2011-09-16 17:39:37 +00:00
span.alt {
clear: both;
background: #47a03e;
2011-09-16 17:39:37 +00:00
span {
margin: 0;
2011-11-16 22:52:46 +00:00
color: #c5dec2 !important;
2011-09-16 17:39:37 +00:00
text-shadow: 0 1px 0 #47a03e;
background: transparent;
}
}
}
}
}
2017-04-04 16:30:16 +00:00
.post-type-shop_order .woocommerce-BlankState-message::before {
@include icon( '\e01d' );
2016-06-03 13:36:27 +00:00
}
2016-06-03 13:07:41 +00:00
2017-04-04 16:30:16 +00:00
.post-type-shop_coupon .woocommerce-BlankState-message::before {
@include icon( '\e600' );
2016-06-03 13:36:27 +00:00
}
2016-06-03 13:07:41 +00:00
2017-04-04 16:30:16 +00:00
.post-type-product .woocommerce-BlankState-message::before {
@include icon( '\e006' );
2016-06-03 13:36:27 +00:00
}
2016-06-03 13:07:41 +00:00
2017-04-27 11:23:16 +00:00
.woocommerce-BlankState--api .woocommerce-BlankState-message::before {
@include icon( '\e01c' );
}
.woocommerce-BlankState--webhooks .woocommerce-BlankState-message::before {
@include icon( '\e01b' );
}
2016-06-03 13:36:27 +00:00
.woocommerce-BlankState {
text-align: center;
padding: 5em 0 0;
.woocommerce-BlankState-message {
color: #aaa;
margin: 0 auto 1.5em;
line-height: 1.5em;
font-size: 1.2em;
max-width: 500px;
&::before {
2016-06-03 13:36:27 +00:00
color: #ddd;
text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.8);
2016-06-03 13:36:27 +00:00
font-size: 8em;
display: block;
position: relative !important;
top: auto;
left: auto;
line-height: 1em;
margin: 0 0 0.1875em;
2016-06-03 13:07:41 +00:00
}
}
2016-06-03 13:36:27 +00:00
.woocommerce-BlankState-cta {
font-size: 1.2em;
padding: 0.75em 1.5em;
2016-06-03 13:36:27 +00:00
height: auto;
2017-05-16 14:36:56 +00:00
display: inline-block !important
2016-06-03 13:36:27 +00:00
}
2016-06-03 13:07:41 +00:00
}
/**
* Small screen optimisation
*/
2013-06-03 09:46:25 +00:00
@media only screen and (max-width: 1280px) {
#order_data {
.order_data_column {
width: 48%;
2013-06-03 09:46:25 +00:00
&:first-child {
width: 100%;
2013-06-03 09:46:25 +00:00
}
}
}
.woocommerce_options_panel {
.description {
display: block;
clear: both;
margin-left: 0;
}
.short,
input[type='text'].short,
input[type='email'].short,
input[type='number'].short,
input[type='password'].short,
2014-11-11 15:01:33 +00:00
.dimensions_field .wrap {
width: 80%;
}
}
.woocommerce_variations,
.woocommerce_options_panel {
.downloadable_files {
padding: 0;
clear: both;
label {
position: static;
}
table {
margin: 0 12px 24px;
width: 94%;
.sort {
2015-08-26 11:53:48 +00:00
visibility: hidden;
}
}
}
2014-10-17 13:50:18 +00:00
2017-04-04 16:30:16 +00:00
.woocommerce_variable_attributes .downloadable_files table {
margin: 0 0 1em;
width: 100%;
2014-10-17 13:50:18 +00:00
}
2013-12-13 10:40:28 +00:00
}
}
/**
* Optimisation for screens 900px and smaller
*/
2013-12-13 10:40:28 +00:00
@media only screen and (max-width: 900px) {
#woocommerce-coupon-data ul.coupon_data_tabs,
2013-12-13 10:40:28 +00:00
#woocommerce-product-data ul.product_data_tabs,
#woocommerce-product-data .wc-tabs-back {
2014-10-17 13:42:15 +00:00
width: 10%;
2013-12-13 10:40:28 +00:00
}
#woocommerce-coupon-data .wc-metaboxes-wrapper,
#woocommerce-coupon-data .woocommerce_options_panel,
#woocommerce-product-data .wc-metaboxes-wrapper,
#woocommerce-product-data .woocommerce_options_panel {
2014-10-17 13:42:15 +00:00
width: 90%;
2013-12-13 10:40:28 +00:00
}
#woocommerce-coupon-data ul.coupon_data_tabs li a,
2013-12-13 10:40:28 +00:00
#woocommerce-product-data ul.product_data_tabs li a {
position: relative;
text-indent: -999px;
padding: 10px;
&::before {
2013-12-13 10:40:28 +00:00
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
text-indent: 0;
text-align: center;
line-height: 40px;
2014-10-17 13:42:15 +00:00
width: 100%;
2013-12-13 10:40:28 +00:00
height: 40px;
}
}
2013-06-03 09:46:25 +00:00
}
/**
* Optimisation for screens 782px and smaller
*/
2013-12-12 14:00:32 +00:00
@media only screen and (max-width: 782px) {
#wp-excerpt-media-buttons a {
font-size: 16px;
line-height: 37px;
height: 39px;
padding: 0 20px 0 15px;
}
#wp-excerpt-editor-tools {
padding-top: 20px;
padding-right: 15px;
overflow: hidden;
margin-bottom: -1px;
}
#woocommerce-product-data .checkbox {
2014-07-15 22:56:07 +00:00
width: 25px;
}
2015-07-07 22:06:51 +00:00
.variations-pagenav {
float: none;
text-align: center;
font-size: 18px;
.displaying-num {
font-size: 16px;
}
a {
padding: 8px 20px 11px;
font-size: 18px;
}
select {
padding: 0 20px;
}
}
.variations-defaults {
float: none;
text-align: center;
margin-top: 10px;
}
.post-type-product {
.wp-list-table {
.column-thumb {
display: none;
text-align: left;
padding-bottom: 0;
&::before {
display: none !important;
}
img {
max-width: 32px;
}
}
2017-04-04 16:30:16 +00:00
.is-expanded td:not( .hidden ) {
overflow: visible;
}
.toggle-row {
top: -28px;
}
}
}
.post-type-shop_order {
.wp-list-table {
.column-order_status {
display: none;
text-align: left;
padding-bottom: 0;
mark {
margin: 0;
}
&::before {
display: none !important;
}
}
.column-customer_message,
.column-order_notes {
text-align: inherit;
}
2017-04-04 16:30:16 +00:00
.column-order_notes .note-on {
font-size: 1.3em;
margin: 0;
}
2017-04-04 16:30:16 +00:00
.is-expanded td:not(.hidden ) {
overflow: visible;
}
.toggle-row {
top: -15px;
}
}
}
2013-12-12 14:00:32 +00:00
}
@media only screen and (max-width: 500px) {
.woocommerce_options_panel label,
.woocommerce_options_panel legend {
float: none;
width: auto;
display: block;
margin: 0;
}
.woocommerce_options_panel fieldset.form-field,
.woocommerce_options_panel p.form-field {
padding: 5px 20px !important;
}
2017-06-05 15:28:28 +00:00
.addons-wcs-banner-block {
flex-direction: column;
}
.wc_addons_wrap {
.addons-wcs-banner-block {
padding: 40px;
}
.addons-wcs-banner-block-image {
padding: 1em;
text-align: center;
width: 100%;
padding: 2em 0;
margin: 0;
.addons-img {
margin: 0;
}
}
}
}
/**
* Backbone modal dialog
*/
2014-07-15 22:56:07 +00:00
.wc-backbone-modal {
* {
box-sizing: border-box;
2014-07-15 22:56:07 +00:00
}
.wc-backbone-modal-content {
position: fixed;
2014-07-15 22:56:07 +00:00
background: #fff;
z-index: 100000;
2016-03-24 18:31:39 +00:00
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 500px;
article {
overflow: auto;
}
2016-03-24 18:31:39 +00:00
}
2017-04-04 16:30:16 +00:00
&.wc-backbone-modal-shipping-method-settings .wc-backbone-modal-content {
width: 75%;
min-width: 500px;
2014-07-15 22:56:07 +00:00
}
2016-12-21 13:23:26 +00:00
.select2-container {
width: 100% !important;
}
2014-07-15 22:56:07 +00:00
}
.wc-backbone-modal-backdrop {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
min-height: 360px;
background: #000;
opacity: 0.7;
z-index: 99900;
2014-07-15 22:56:07 +00:00
}
.wc-backbone-modal-main {
2016-06-20 11:50:52 +00:00
padding-bottom: 55px;
2014-07-23 09:49:39 +00:00
2014-07-15 22:56:07 +00:00
header,
article {
display: block;
position: relative;
}
.wc-backbone-modal-header {
2016-06-20 11:50:52 +00:00
height: auto;
background: #fcfcfc;
2016-06-20 11:50:52 +00:00
padding: 1em 1.5em;
2014-07-23 09:49:39 +00:00
border-bottom: 1px solid #ddd;
h1 {
margin: 0;
2015-04-04 08:28:03 +00:00
font-size: 18px;
font-weight: 700;
2016-06-20 11:50:52 +00:00
line-height: 1.5em;
}
.modal-close-link {
cursor: pointer;
color: #777;
2016-06-20 11:50:52 +00:00
height: 54px;
width: 54px;
padding: 0;
position: absolute;
top: 0;
right: 0;
text-align: center;
border: 0;
border-left: 1px solid #ddd;
background-color: transparent;
transition: color 0.1s ease-in-out, background 0.1s ease-in-out;
&::before {
font: normal 22px/50px 'dashicons' !important;
color: #666;
display: block;
content: '\f335';
font-weight: 300;
}
&:hover,
&:focus {
background: #ddd;
border-color: #ccc;
color: #000;
2015-04-04 08:23:02 +00:00
}
&:focus {
outline: none;
}
}
2014-07-23 09:49:39 +00:00
}
2014-07-23 09:49:39 +00:00
article {
2016-06-20 11:50:52 +00:00
padding: 1.5em;
p {
margin: 1.5em 0;
}
p:first-child {
margin-top: 0;
}
2016-06-20 11:50:52 +00:00
p:last-child {
margin-bottom: 0;
}
.pagination {
padding: 10px 0 0;
text-align: center;
}
2014-07-23 09:49:39 +00:00
}
2014-07-15 22:56:07 +00:00
footer {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 100;
2016-06-20 11:50:52 +00:00
padding: 1em 1.5em;
background: #fcfcfc;
border-top: 1px solid #dfdfdf;
box-shadow: 0 -4px 4px -4px rgba(0, 0, 0, 0.1);
2014-07-15 22:56:07 +00:00
.inner {
float: right;
line-height: 23px;
.button {
margin-bottom: 0;
}
}
2014-07-15 22:56:07 +00:00
}
}
2015-01-12 17:11:01 +00:00
/**
2016-12-21 11:06:47 +00:00
* Select2 elements.
2015-01-12 17:11:01 +00:00
*/
2016-12-21 13:23:26 +00:00
.select2-drop,
.select2-dropdown {
2015-04-01 10:01:35 +00:00
z-index: 999999 !important;
2015-01-12 17:11:01 +00:00
}
2016-12-21 11:06:47 +00:00
.select2-results {
line-height: 1.5em;
.select2-results__option, .select2-results__group {
2016-12-20 16:45:22 +00:00
margin: 0;
2016-12-21 11:06:47 +00:00
padding: 8px;
}
2017-06-12 12:37:52 +00:00
.description {
display: block;
color: #999;
padding-top: 4px;
}
2016-12-21 11:06:47 +00:00
}
2016-12-21 11:24:28 +00:00
.select2-dropdown {
border-color: #ddd;
}
2016-12-21 11:06:47 +00:00
.select2-dropdown--below {
2016-12-21 11:24:28 +00:00
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
2016-12-21 11:06:47 +00:00
}
.select2-dropdown--above {
2016-12-21 11:24:28 +00:00
box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.1);
}
.select2-container {
.select2-selection__rendered.ui-sortable li {
cursor: move;
}
2016-12-21 11:24:28 +00:00
.select2-selection {
border-color: #ddd;
}
2016-12-21 13:23:26 +00:00
.select2-search__field {
min-width: 150px;
}
2016-12-21 11:24:28 +00:00
.select2-selection--single {
height: 32px;
.select2-selection__rendered {
line-height: 32px;
padding-right: 24px;
}
.select2-selection__arrow {
right: 3px;
height: 30px;
}
}
2016-12-21 11:06:47 +00:00
.select2-selection--multiple {
min-height: 28px;
2016-12-21 13:23:26 +00:00
border-radius: 0;
line-height: 1.5;
2016-12-21 11:06:47 +00:00
li {
margin: 0;
}
.select2-selection__choice {
padding: 2px 6px;
2017-06-12 12:37:52 +00:00
.description {
display: none;
}
2016-12-21 11:06:47 +00:00
}
}
2016-12-21 11:24:28 +00:00
.select2-selection__clear {
color: #999;
margin-top: -1px;
}
2017-04-04 16:30:16 +00:00
.select2-search--inline .select2-search__field {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
padding: 3px 0;
2016-12-20 16:45:22 +00:00
}
}
2017-04-04 16:30:16 +00:00
.woocommerce table.form-table .select2-container {
min-width: 400px !important;
2015-01-27 13:58:03 +00:00
}
.post-type-product .tablenav,
2017-04-04 16:30:16 +00:00
.post-type-shop_order .tablenav {
.actions {
overflow: visible;
}
select,
input {
line-height: 32px;
height: 32px;
}
.select2-container {
float: left;
width: 200px !important;
font-size: 14px;
vertical-align: middle;
margin: 1px 6px 4px 1px;
2016-12-21 11:06:47 +00:00
}
}
2017-05-17 13:22:41 +00:00
.woocommerce-progress-form-wrapper,
2017-05-17 21:55:20 +00:00
.woocommerce-exporter-wrapper,
.woocommerce-importer-wrapper {
text-align: center;
max-width: 700px;
margin: 40px auto;
2017-05-19 12:25:03 +00:00
.error {
text-align: left;
}
.wc-progress-steps {
padding: 0 0 24px;
margin: 0;
list-style: none outside;
overflow: hidden;
color: #ccc;
width:100%;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
li {
width: 25%;
float: left;
padding: 0 0 0.8em;
margin: 0;
text-align: center;
position: relative;
border-bottom: 4px solid #ccc;
line-height: 1.4em;
}
li::before {
content: '';
border: 4px solid #ccc;
border-radius: 100%;
width: 4px;
height: 4px;
position: absolute;
bottom: 0;
left: 50%;
margin-left: -6px;
margin-bottom: -8px;
background: #fff;
}
li.active {
border-color: #a16696;
color: #a16696;
&::before {
border-color: #a16696;
}
}
li.done {
border-color: #a16696;
color: #a16696;
&::before {
border-color: #a16696;
background: #a16696;
}
}
}
2017-05-17 13:22:41 +00:00
.wc-actions {
overflow: hidden;
2017-05-19 12:25:03 +00:00
border-top: 1px solid #eee;
margin: 0;
padding: 23px 24px 24px;
2017-05-23 14:05:32 +00:00
line-height: 3em;
2017-05-19 12:25:03 +00:00
.button {
float: right;
font-size: 1.25em;
padding: 0.5em 1em !important;
line-height: 1.5em !important;
margin-right: 0.5em;
margin-bottom: 2px;
height: auto !important;
border-radius: 4px;
background-color: #bb77ae;
border-color: #a36597;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
text-shadow: 0 -1px 1px #a36597, 1px 0 1px #a36597, 0 1px 1px #a36597, -1px 0 1px #a36597;
margin: 0;
opacity: 1;
&:hover, &:focus, &:active {
background: #a36597;
border-color: #a36597;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #a36597;
}
}
2017-05-23 14:05:32 +00:00
.woocommerce-importer-toggle-advanced-options {
color: #999;
}
}
2017-05-17 13:22:41 +00:00
.woocommerce-exporter,
2017-05-17 21:55:20 +00:00
.woocommerce-importer,
2017-05-17 13:22:41 +00:00
.wc-progress-form-content {
background: #fff;
overflow: hidden;
2017-05-19 12:25:03 +00:00
padding: 0;
2017-05-17 13:22:41 +00:00
margin: 0 0 16px;
box-shadow: 0 1px 3px rgba(0,0,0,.13);
2017-05-12 19:40:54 +00:00
color: #555;
2017-05-17 13:22:41 +00:00
text-align: left;
2017-05-12 13:48:30 +00:00
2017-05-17 13:22:41 +00:00
header {
border-bottom: 1px solid #eee;
margin: 0;
2017-05-19 12:25:03 +00:00
padding: 24px 24px 0;
}
section {
padding: 24px 24px 0;
2017-05-17 13:22:41 +00:00
}
2017-05-12 13:48:30 +00:00
2017-05-17 13:22:41 +00:00
h2 {
margin: 0 0 24px;
2017-05-12 19:40:54 +00:00
color: #555;
2017-05-17 13:22:41 +00:00
font-size: 24px;
font-weight: normal;
2017-05-17 13:22:41 +00:00
line-height: 1em;
}
2017-05-17 13:22:41 +00:00
p {
font-size: 1em;
line-height: 1.75em;
font-size: 16px;
color: #555;
margin: 0 0 24px;
}
2017-05-17 13:22:41 +00:00
.form-row {
margin-top: 24px;
}
.spinner {
2017-05-17 13:22:41 +00:00
display: none;
}
2017-05-17 13:22:41 +00:00
2017-05-19 12:25:03 +00:00
.woocommerce-importer-options th,
.woocommerce-importer-options td,
2017-05-17 13:22:41 +00:00
.woocommerce-exporter-options th,
.woocommerce-exporter-options td {
vertical-align: top;
2017-05-19 11:03:34 +00:00
line-height: 1.75em;
2017-05-19 12:25:03 +00:00
padding: 0 0 24px 0;
2017-05-17 13:22:41 +00:00
label {
color: #555;
font-weight: normal;
}
2017-05-19 11:03:34 +00:00
input[type="checkbox"] {
margin: 0 4px 0 0;
padding: 7px;
}
input[type="text"],
input[type="number"] {
padding: 7px;
height: auto;
margin: 0;
}
2017-05-23 14:05:32 +00:00
.woocommerce-importer-file-url-field-wrapper {
border: 1px solid #ddd;
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
background-color: #fff;
color: #32373c;
outline: 0;
line-height: 1;
display: block;
code {
background: none;
font-size: smaller;
padding: 0;
margin: 0;
color: #999;
padding: 7px 0 0 7px;
display: inline-block;
}
input {
font-family: Consolas,Monaco,monospace;
border: 0;
margin: 0;
outline: 0;
box-shadow: none;
display: inline-block;
min-width: 100%;
2017-05-23 14:05:32 +00:00
}
}
2017-05-19 11:03:34 +00:00
}
.woocommerce-exporter-options th,
.woocommerce-importer-options th {
2017-05-23 14:05:32 +00:00
width: 35%;
2017-05-19 12:25:03 +00:00
padding-right: 20px;
2017-05-17 13:22:41 +00:00
}
progress {
2017-05-17 13:22:41 +00:00
width: 100%;
height: 42px;
2017-05-19 12:25:03 +00:00
margin: 0 auto 24px;
display: block;
2017-05-17 13:22:41 +00:00
-webkit-appearance: none;
border: none;
display: none;
2017-05-17 13:22:41 +00:00
background: #f5f5f5;
border: 2px solid #eee;
border-radius: 4px;
padding: 0;
box-shadow: 0 1px 0px 0 rgba(255, 255, 255, 0.2);
}
2017-05-25 14:39:53 +00:00
progress::-webkit-progress-bar {
background: transparent none;
border: 0;
border-radius: 4px;
padding: 0;
box-shadow: none;
}
2017-05-17 13:22:41 +00:00
progress::-webkit-progress-value {
border-radius: 3px;
box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
2017-05-25 14:39:53 +00:00
background: #A46497;
background: linear-gradient( top, #A46497, #66405F ), #A46497;
transition: width 1s ease;
}
progress::-moz-progress-bar {
border-radius: 3px;
box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
background: #A46497;
background: linear-gradient( top, #A46497, #66405F ), #A46497;
transition: width 1s ease;
}
progress::-ms-fill {
border-radius: 3px;
box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
background: #A46497;
background: linear-gradient( to bottom, #A46497, #66405F ), #A46497;
2017-05-17 13:22:41 +00:00
transition: width 1s ease;
}
&.woocommerce-exporter__exporting,
&.woocommerce-importer__importing {
.spinner {
display: block;
}
progress {
display: block;
}
.wc-actions,
.woocommerce-exporter-options {
display: none;
}
}
2017-05-19 12:25:03 +00:00
2017-05-23 14:05:32 +00:00
.wc-importer-mapping-table-wrapper,
.wc-importer-error-log {
2017-05-19 12:25:03 +00:00
padding: 0;
}
2017-05-23 14:05:32 +00:00
.wc-importer-mapping-table,
.wc-importer-error-log-table {
2017-05-19 12:25:03 +00:00
margin: 0;
border: 0;
box-shadow: none;
2017-06-21 12:06:25 +00:00
width: 100%;
2017-05-19 12:25:03 +00:00
td, th {
border: 0;
padding: 12px;
vertical-align: middle;
select {
width: 100%;
}
}
2017-05-23 14:05:32 +00:00
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
2017-05-19 12:25:03 +00:00
background: #fbfbfb;
}
th {
font-weight: bold;
}
td:first-child,
th:first-child {
padding-left: 24px;
}
td:last-child,
th:last-child {
padding-right: 24px;
}
.wc-importer-mapping-table-name {
width: 50%;
.description {
color: #999;
margin-top: 4px;
display: block;
code {
background: none;
padding: 0;
2017-06-21 12:06:25 +00:00
white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
word-wrap: break-word; /* IE */
word-break: break-all;
2017-05-19 12:25:03 +00:00
}
}
}
}
.woocommerce-importer-done {
text-align: center;
padding: 48px 24px;
font-size: 1.5em;
2017-05-23 14:05:32 +00:00
line-height: 1.75em;
2017-05-19 12:25:03 +00:00
&::before {
@include icon( '\e015' );
color: #A16696;
position: static;
font-size: 100px;
display: block;
float: none;
margin: 0 0 24px;
}
}
}
}
.wc-pointer {
.wc-pointer-buttons {
.close {
float: left;
margin: 6px 0 0 15px;
}
}
}