Only fade in image if variation has children
This commit is contained in:
parent
86c9d7c4b8
commit
8f951d449a
File diff suppressed because one or more lines are too long
|
@ -1909,7 +1909,7 @@ p.demo_store {
|
|||
}
|
||||
|
||||
/* added to get around variation image flicker issue */
|
||||
.product.has-default-attributes {
|
||||
.product.has-default-attributes.has-children {
|
||||
> .images {
|
||||
opacity: 0;
|
||||
}
|
||||
|
|
|
@ -308,10 +308,14 @@ function wc_product_post_class( $classes, $class = '', $post_id = '' ) {
|
|||
}
|
||||
}
|
||||
|
||||
if ( is_product() && 'variable' === $product->product_type && $product->has_default_attributes() ) {
|
||||
if ('variable' === $product->product_type && $product->has_default_attributes() ) {
|
||||
$classes[] = 'has-default-attributes';
|
||||
}
|
||||
|
||||
if ( 'variable' === $product->product_type && $product->has_child() ) {
|
||||
$classes[] = 'has-children';
|
||||
}
|
||||
|
||||
$classes[] = $product->stock_status;
|
||||
}
|
||||
|
||||
|
|
|
@ -192,6 +192,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Tweak - Use new "question" mark icon font for help tips.
|
||||
* Tweak - Improved review verification status retrieval.
|
||||
* Tweak - Improve appearance when only 1 gateway is active.
|
||||
* Tweak - Aligned terms box left and added required asterisk.
|
||||
* Dev - API - Added /products/shipping_classes endpoint.
|
||||
* Dev - API - Added support to POST, PUT, and DELETE categories and tags.
|
||||
* Dev - API - Added support to filter products by tag, category, shipping class, and attribute.
|
||||
|
|
Loading…
Reference in New Issue