PageSourceSearch

https://theandystratton.com/2015/woocommerce-bug-group-products-show-on-sale

html theandystratton.com collected 2026-10-02 06:44:16 UTC 44,621 bytes, 347 lines download raw bytes

1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5	<title>On Sale Bug in WooCommerce Grouped Product</title>
6<link data-rocket-prefetch href="https://gist.github.com" rel="dns-prefetch">
7<link data-rocket-prefetch href="https://ssl.google-analytics.com" rel="dns-prefetch"><link rel="preload" data-rocket-preload as="image" href="https://theandystratton.com/wp-content/themes/theandystratton/images/bg_level1.png" fetchpriority="high">
8	<link data-minify="1" rel="stylesheet" type="text/css" href="https://theandystratton.com/wp-content/cache/min/1/wp-content/themes/theandystratton/style.css?ver=1782332982" />
9	<!--[if IE 6]>
10	<link rel="stylesheet" type="text/css" href="https://theandystratton.com/wp-content/themes/theandystratton/style.ie6.css" />
11	<![endif]-->
12	
13	
14	
15		
16	<meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />
17
18	<!-- This site is optimized with the Yoast SEO plugin v28.6 - https://yoast.com/product/yoast-seo-wordpress/ -->
19	<meta name="description" content="Do you have grouped products showing on sale, but the group and no products in the group are on sale? It&#039;s a bug." />
20	<link rel="canonical" href="https://theandystratton.com/2015/woocommerce-bug-group-products-show-on-sale" />
21	<meta property="og:locale" content="en_US" />
22	<meta property="og:type" content="article" />
23	<meta property="og:title" content="On Sale Bug in WooCommerce Grouped Product" />
24	<meta property="og:description" content="Do you have grouped products showing on sale, but the group and no products in the group are on sale? It&#039;s a bug." />
25	<meta property="og:url" content="https://theandystratton.com/2015/woocommerce-bug-group-products-show-on-sale" />
26	<meta property="og:site_name" content="ANDY STRATTON" />
27	<meta property="article:published_time" content="2015-10-23T01:11:40+00:00" />
28	<meta property="article:modified_time" content="2015-10-23T01:12:35+00:00" />
29	<meta name="author" content="Andy" />
30	<meta name="twitter:card" content="summary_large_image" />
31	<meta name="twitter:label1" content="Written by" />
32	<meta name="twitter:data1" content="Andy" />
33	
33<script type="application/ld+json" class="yoast-schema-graph">{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/theandystratton.com\/2015\/woocommerce-bug-group-products-show-on-sale#article","isPartOf":{"@id":"https:\/\/theandystratton.com\/2015\/woocommerce-bug-group-products-show-on-sale"},"author":{"name":"Andy","@id":"https:\/\/theandystratton.com\/#\/schema\/person\/87e986b4f88ca77734628eefb47d41a4"},"headline":"WooCommerce Bug: Group Products Show &#8220;On&nbsp;Sale&#8221;","datePublished":"2015-10-23T01:11:40+00:00","dateModified":"2015-10-23T01:12:35+00:00","mainEntityOfPage":{"@id":"https:\/\/theandystratton.com\/2015\/woocommerce-bug-group-products-show-on-sale"},"wordCount":90,"commentCount":0,"keywords":["WooCommerce"],"articleSection":["Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/theandystratton.com\/2015\/woocommerce-bug-group-products-show-on-sale#respond"]}]},{"@type":"WebPage","@id":"https:\/\/theandystratton.com\/2015\/woocommerce-bug-group-products-show-on-sale","url":"https:\/\/theandystratton.com\/2015\/woocommerce-bug-group-products-show-on-sale","name":"On Sale Bug in WooCommerce Grouped Product","isPartOf":{"@id":"https:\/\/theandystratton.com\/#website"},"datePublished":"2015-10-23T01:11:40+00:00","dateModified":"2015-10-23T01:12:35+00:00","author":{"@id":"https:\/\/theandystratton.com\/#\/schema\/person\/87e986b4f88ca77734628eefb47d41a4"},"description":"Do you have grouped products showing on sale, but the group and no products in the group are on sale? It's a bug.","breadcrumb":{"@id":"https:\/\/theandystratton.com\/2015\/woocommerce-bug-group-products-show-on-sale#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theandystratton.com\/2015\/woocommerce-bug-group-products-show-on-sale"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theandystratton.com\/2015\/woocommerce-bug-group-products-show-on-sale#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theandystratton.com\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/theandystratton.com\/blog"},{"@type":"ListItem","position":3,"name":"WooCommerce Bug: Group Products Show &#8220;On&nbsp;Sale&#8221;"}]},{"@type":"WebSite","@id":"https:\/\/theandystratton.com\/#website","url":"https:\/\/theandystratton.com\/","name":"ANDY STRATTON","description":"WordPress and PHP Developer","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theandystratton.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/theandystratton.com\/#\/schema\/person\/87e986b4f88ca77734628eefb47d41a4","name":"Andy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a7bf885a89d46b33845f1c6cce6b84c9d37461e8af8d1fdeb7644aad541bdda0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a7bf885a89d46b33845f1c6cce6b84c9d37461e8af8d1fdeb7644aad541bdda0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a7bf885a89d46b33845f1c6cce6b84c9d37461e8af8d1fdeb7644aad541bdda0?s=96&d=mm&r=g","caption":"Andy"},"url":"https:\/\/theandystratton.com\/author\/szbl-theandystratton"}]}</script>
33
34	<!-- / Yoast SEO plugin. -->
35
36
37
38<link rel="alternate" type="application/rss+xml" title="ANDY STRATTON &raquo; WooCommerce Bug: Group Products Show &#8220;On&nbsp;Sale&#8221; Comments Feed" href="https://theandystratton.com/2015/woocommerce-bug-group-products-show-on-sale/feed" />
39<link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://theandystratton.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Ftheandystratton.com%2F2015%2Fwoocommerce-bug-group-products-show-on-sale" />
40<link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://theandystratton.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Ftheandystratton.com%2F2015%2Fwoocommerce-bug-group-products-show-on-sale&#038;format=xml" />
41<style id="wp-img-auto-sizes-contain-inline-css">
42img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px}
43/*# sourceURL=wp-img-auto-sizes-contain-inline-css */
44</style>
45<style id="wp-emoji-styles-inline-css">
46
47	img.wp-smiley, img.emoji {
48		display: inline !important;
49		border: none !important;
50		box-shadow: none !important;
51		height: 1em !important;
52		width: 1em !important;
53		margin: 0 0.07em !important;
54		vertical-align: -0.1em !important;
55		background: none !important;
56		padding: 0 !important;
57	}
58/*# sourceURL=wp-emoji-styles-inline-css */
59</style>
60<style id="wp-block-library-inline-css">
61:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;
61--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:root .has-text-align-center{text-align:center}:root .has-text-align-left{text-align:left}:root .has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal!important}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style^=border-color],[style*=";border-color"],[style*="; border-color"]){border-style:solid}html :where([style^=border-top-color],[style*=";border-top-color"],[style*="; border-top-color"]){border-top-style:solid}html :where([style^=border-right-color],[style*=";border-right-color"],[style*="; border-right-color"]){border-right-style:solid}html :where([style^=border-bottom-color],[style*=";border-bottom-color"],[style*="; border-bottom-color"]){border-bottom-style:solid}html :where([style^=border-left-color],[style*=";border-left-color"],[style*="; border-left-color"]){border-left-style:solid}html :where([style^=border-width],[style*=";border-width"],[style*="; border-width"]){border-style:solid}html :where([style^=border-top-width],[style*=";border-top-width"],[style*="; border-top-width"]){border-top-style:solid}html :where([style^=border-right-width],[style*=";border-right-width"],[style*="; border-right-width"]){border-right-style:solid}html :where([style^=border-bottom-width],[style*=";border-bottom-width"],[style*="; border-bottom-width"]){border-bottom-style:solid}html :where([style^=border-left-width],[style*=";border-left-width"],[style*="; border-left-width"]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
62
63/*# sourceURL=/wp-includes/css/dist/block-library/common.min.css */
64</style>
65<style id="classic-theme-styles-inline-css">
66/*! This file is auto-generated */
67.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
68/*# sourceURL=/wp-includes/css/classic-themes.min.css */
69</style>
70
71<style id="global-styles-inline-css">
72:root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #ffffff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgb(6,147,227) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgb(252,185,
720) 0%,rgb(255,105,0) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgb(255,105,0) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgb(255, 255, 255), 6px 6px rgb(0, 0, 0);--wp--preset--shadow--crisp: 6px 6px 0px rgb(0, 0, 0);}.wp-block-button{--wp--preset--dimension--25: 25%;--wp--preset--dimension--50: 50%;--wp--preset--dimension--75: 75%;--wp--preset--dimension--100: 100%;}:where(body) { margin: 0; }:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}body{padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;}:root :where(.wp-element-button, .wp-block-button__link){background-color: #32373c;border-width: 0;color: #fff;font-family: inherit;font-size: inherit;font-style: inherit;font-weight: inherit;letter-spacing: inherit;line-height: inherit;padding-top: calc(0.667em + 2px);padding-right: calc(1.333em + 2px);padding-bottom: calc(0.667em + 2px);padding-left: calc(1.333em + 2px);text-decoration: none;text-transform: inherit;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}
72.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;}
73/*# sourceURL=global-styles-inline-css */
74</style>
75
76<link rel="https://api.w.org/" href="https://theandystratton.com/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://theandystratton.com/wp-json/wp/v2/posts/720" /><link rel='shortlink' href='https://theandystratton.com/?p=720' />
77
78
79<style type="text/css">
80#hosting-callout { margin: 2em 0 0; background: #fff; color: #333; background: rgba(255,255,255,.8); padding: 1em; border: 1px solid; border-radius: 1em; text-align: center; }
81#hosting-callout h3 { margin: 0; }
82#hosting-callout .button { margin: 1em 0 0; display: block; background: #fff; border-radius: .5em; border-bottom: 1px solid #ccc; padding: .5em; text-decoration: none; background: #080; background: rgba(0,88,0,.8); color: #fff; font-size: 1.25em; font-weight: bold; }
83#hosting-callout .close { cursor: pointer; display: block; margin-top: 1em;}
84</style>
85
86<noscript><style id="rocket-lazyload-nojs-css">.rll-youtube-player, [data-lazy-src]{display:none !important;}</style></noscript>	
87
88<meta name="generator" content="WP Rocket 3.23.4" data-wpr-features="wpr_minify_concatenate_js wpr_lazyload_images wpr_lazyload_iframes wpr_preconnect_external_domains wpr_oci wpr_minify_css wpr_cdn wpr_preload_links wpr_desktop" /></head>
89<body id="content_page">
90
91<div  id="page">
92	<div  id="container">
93
94		<div  id="header">
95			<div class="wrap">
96				<span class="logo">
97					<a href="https://theandystratton.com">the ANDY STRATTON</a>
98				</span>
99				
100				<ul>
101					<li class="home"><a class="" href="https://theandystratton.com">Home</a></li>
102					<li><a class="" href="https://theandystratton.com/about">About</a></li>
103					<li><a class="" href="https://theandystratton.com/portfolio">Portfolio</a></li>
104					<li><a class="" href="https://theandystratton.com/blog">Blog</a></li>
105					<li><a class="active" href="https://theandystratton.com/archives">Archives</a></li>
106					<li><a class="" href="https://theandystratton.com/plugins">Plugins</a></li>
107					<li><a class="" href="https://theandystratton.com/contact">Contact &amp; Hire</a></li>
108				</ul>
109				
110				<div id="quick_quote">
111					<a href="https://theandystratton.com/contact?quote">Get a QUICK QUOTE &raquo;</a>
112				</div>
113			</div>
114		</div>
115
116		<div  id="body">
117		
118		
119			<div id="post_content">
120				<h1>WooCommerce Bug: Group Products Show &#8220;On&nbsp;Sale&#8221;</h1>
121				<p>Do you have grouped products showing on sale, but the group and no products in the group are on sale? It&#8217;s a bug. </p>
122<h2>Another WooCommerce Bug I found at <a href="http://wpmaintainer.com" target="_blank">WP Maintainer</a>.</h2>
123<p>I have a fix, for now, you can edit the plugin (not recommended, but hey if you have to get it fixed before it&#8217;s updated in the core plugin&#8230;).</p>
124<p>Edit <code>/woocommerce/includes/class-wc-product-grouped.php</code> and replace the <code>foreach</code> statement at line 132 to the following (lines 5–7 below are the new code):</p>
125<p>
125<script src="https://gist.github.com/theandystratton/981a1a7fa77d49999e7f.js"></script>
125</p>
126<p>Hope this helps you out!</p>
127				
128				
129<h2 id="comments">No Comments</h2>
130
131	<p>No comments yet.</p>
132
133<p><a href="https://theandystratton.com/2015/woocommerce-bug-group-products-show-on-sale/feed"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a>	<a href="https://theandystratton.com/2015/woocommerce-bug-group-products-show-on-sale/trackback" rel="trackback">TrackBack <abbr title="Universal Resource Locator">URL</abbr></a>
134</p>
135
136<h2 id="reply">Leave a Comment</h2>
137
138
139<form action="https://theandystratton.com/wp-comments-post.php" method="post" id="commentform">
140
141
142<p>
143<label for="author">Name (required)</label>
144<input type="text" name="author" id="author" value="" size="22" tabindex="1" />
145</p>
146
147<p>
148<label for="email">Mail (will not be published) (required)</label>
149<input type="text" name="email" id="email" value="" size="22" tabindex="2" />
150</p>
151
152<p>
153<input type="text" name="url" id="url" value="" size="22" tabindex="3" />
154<label for="url">Website</label>
155</p>
156
157
158<p>
159	<label for="comment">Your Message</label>
160	<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
161</p>
162
163<p>
164	<input name="submit" type="submit" class="submit" tabindex="5" value="Submit Comment" />
165	<input type="hidden" name="comment_post_ID" value="720" />
166</p>
167<p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="b842003e58" /></p><p style="display: none !important;" class="akismet-fields-container" data-prefix="ak_"><label>&#916;<textarea name="ak_hp_textarea" cols="45" rows="8" maxlength="100"></textarea></label><input type="hidden" id="ak_js_1" name="ak_js" value="114"/>
168</p>
169</form>
170
171
172				
173			</div>
174			
175			<div id="post_meta">
176				<p class="date">October 22, 2015</p>
177				<p>
178					Filed in <a href="https://theandystratton.com/category/development" rel="category tag">Development</a>				</p>
179				<p>
180					There are <a href="#comments">0 comments &raquo;</a>
181				</p>
182				
183				<p>
184					<br />
185					<a href="https://theandystratton.com/blog">&laquo; Back to the Blog</a>
186					<br /><br />
187				</p>
188				
189				<form method="get" action="https://theandystratton.com">
190					<br />
191					<p>
192						<label for="s">
193							<strong>Search:</strong>
194							<br />
195							<input type="text" name="s" id="s" value="" />
196						</label>
197						<input type="submit" value="Go" id="submit" class="submit" />
198					</p>
199				</form>
200				
201				<!-- 
202				
203				<form method="get" action="https://theandystratton.com">
204					<p>
205						<label for="s">
206							Search:
207						</label>
208						<input type="text" name="s" id="s" />
209					</p>
210					<p>
211						<input type="submit" value="Search &raquo;" class="submit" />
212					</p>
213				</form>
214				
215				 -->
216				
217			</div>
218			
219		
220		</div>
221		
222		<div  class="clear"></div>
223		
224	</div>
225</div>
226
227<div  id="footer">
228	<a href="https://theandystratton.com/about">About</a> |
229	<a href="https://theandystratton.com/portfolio">Portfolio</a> | 
230	<a href="/blog">Blog</a> | 
231	<a href="https://theandystratton.com/contact">Contact Me</a> | 
232	<a href="https://theandystratton.com/contact?quote">Get a Quote</a>
233	<br />
234	Andy Stratton built this site by hand using XHTML, CSS, and Javascript/jQuery and WordPress.
235</div>
236
237<script type="text/javascript">
238var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
239document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
240</script>
240
241
242
243<script type="speculationrules">
244{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/theandystratton/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}
245</script>
245
246
247<script id="syntaxhighlighter-core-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shCore.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 247
247
248<script id="syntaxhighlighter-brush-as3-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushAS3.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 248
248
249<script id="syntaxhighlighter-brush-arduino-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushArduino.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 249
249
250<script id="syntaxhighlighter-brush-bash-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushBash.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 250
250
251<script id="syntaxhighlighter-brush-coldfusion-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushColdFusion.js?ver=3.0.9b"></script>
251
252
253<script id="syntaxhighlighter-brush-cpp-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushCpp.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 253
253
254<script id="syntaxhighlighter-brush-csharp-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushCSharp.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 254
254
255<script id="syntaxhighlighter-brush-css-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushCss.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 255
255
256<script id="syntaxhighlighter-brush-delphi-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushDelphi.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 256
256
257<script id="syntaxhighlighter-brush-diff-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushDiff.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 257
257
258<script id="syntaxhighlighter-brush-erlang-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushErlang.js?ver=3.0.9b"></script>
258
259
260<script id="syntaxhighlighter-brush-go-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushGo.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 260
260
261<script id="syntaxhighlighter-brush-groovy-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushGroovy.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 261
261
262<script id="syntaxhighlighter-brush-haskell-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushHaskell.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 262
262
263<script id="syntaxhighlighter-brush-java-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJava.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 263
263
264<script id="syntaxhighlighter-brush-javafx-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJavaFX.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 264
264
265<script id="syntaxhighlighter-brush-jscript-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJScript.js?ver=3.0.9b"></script>
265
266
267
268
269<script id="syntaxhighlighter-brush-perl-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPerl.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 269
269
270<script id="syntaxhighlighter-brush-php-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPhp.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 270
270
271<script id="syntaxhighlighter-brush-plain-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPlain.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 271
271
272<script id="syntaxhighlighter-brush-powershell-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPowerShell.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 272
272
273<script id="syntaxhighlighter-brush-python-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPython.js?ver=3.0.9b"></script>
273
274
275<script id="syntaxhighlighter-brush-ruby-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushRuby.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 275
275
276<script id="syntaxhighlighter-brush-scala-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushScala.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 276
276
277<script id="syntaxhighlighter-brush-sql-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushSql.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 277
277
278<script id="syntaxhighlighter-brush-swift-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushSwift.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 278
278
279<script id="syntaxhighlighter-brush-vb-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushVb.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 279
279
280<script id="syntaxhighlighter-brush-xml-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushXml.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 280
280
281<script id="syntaxhighlighter-brush-yaml-js" src="https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/scripts/shBrushYaml.js?ver=3.0.9b"></script>
vendor: 1 bytes, line 281
281
282<script type='text/javascript'>
283	(function(){
284		var corecss = document.createElement('link');
285		var themecss = document.createElement('link');
286		var corecssurl = "https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shCore.css?ver=3.0.9b";
287		if ( corecss.setAttribute ) {
288				corecss.setAttribute( "rel", "stylesheet" );
289				corecss.setAttribute( "type", "text/css" );
290				corecss.setAttribute( "href", corecssurl );
291		} else {
292				corecss.rel = "stylesheet";
293				corecss.href = corecssurl;
294		}
295		document.head.appendChild( corecss );
296		var themecssurl = "https://theandystratton.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3/styles/shThemeDefault.css?ver=3.0.9b";
297		if ( themecss.setAttribute ) {
298				themecss.setAttribute( "rel", "stylesheet" );
299				themecss.setAttribute( "type", "text/css" );
300				themecss.setAttribute( "href", themecssurl );
301		} else {
302				themecss.rel = "stylesheet";
303				themecss.href = themecssurl;
304		}
305		document.head.appendChild( themecss );
306	})();
307	SyntaxHighlighter.config.strings.expandSource = '+ expand source';
308	SyntaxHighlighter.config.strings.help = '?';
309	SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n';
310	SyntaxHighlighter.config.strings.noBrush = 'Can\'t find brush for: ';
311	SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn\'t configured for html-script option: ';
312	SyntaxHighlighter.defaults['auto-links'] = false;
313	SyntaxHighlighter.defaults['pad-line-numbers'] = false;
314	SyntaxHighlighter.all();
315
316	// Infinite scroll support
317	if ( typeof( jQuery ) !== 'undefined' ) {
318		jQuery( function( $ ) {
319			$( document.body ).on( 'post-load', function() {
320				SyntaxHighlighter.highlight();
321			} );
322		} );
323	}
324</script>
vendor: 1 bytes, line 324
324
325<script id="rocket-browser-checker-js-after">
326"use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}();
327//# sourceURL=rocket-browser-checker-js-after
328</script>
vendor: 1 bytes, line 328
328
329<script id="rocket-preload-links-js-extra">
330var RocketPreloadLinksConfig = {"excludeUris":"/(?:.+/)?feed(?:/(?:.+/?)?)?$|/(?:.+/)?embed/|/(index.php/)?(.*)wp-json(/.*|$)|/refer/|/go/|/recommend/|/recommends/","usesTrailingSlash":"","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php|html|htm","siteUrl":"https://theandystratton.com","onHoverDelay":"100","rateThrottle":"3"};
331//# sourceURL=rocket-preload-links-js-extra
332</script>
vendor: 1 bytes, line 332
332
333<script id="rocket-preload-links-js-after">
334(function() {
335"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run();
336}());
337
338//# sourceURL=rocket-preload-links-js-after
339</script>
339
340
341<script>window.lazyLoadOptions=[{elements_selector:"img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:".rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,}];window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){if(typeof mutation.addedNodes[i].getElementsByTagName!=='function'){continue}
342if(typeof mutation.addedNodes[i].getElementsByClassName!=='function'){continue}
343images=mutation.addedNodes[i].getElementsByTagName('img');is_image=mutation.addedNodes[i].tagName=="IMG";iframes=mutation.addedNodes[i].getElementsByTagName('iframe');is_iframe=mutation.addedNodes[i].tagName=="IFRAME";rocket_lazy=mutation.addedNodes[i].getElementsByClassName('rocket-lazyload');image_count+=images.length;iframe_count+=iframes.length;rocketlazy_count+=rocket_lazy.length;if(is_image){image_count+=1}
344if(is_iframe){iframe_count+=1}}});if(image_count>0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)</script>
344<script data-no-minify="1" async src="https://theandystratton.com/wp-content/plugins/wp-rocket/assets/js/lazyload/17.8.3/lazyload.min.js"></script>
vendor: 1 bytes, line 344
344
345<script src="https://theandystratton.com/wp-content/cache/min/1/c0c59eb5b4e70de7c145f39e4dcf482c.js" data-minify="1"></script>
345<script>(function(){function c(){var b=a.contentDocument||(a.contentWindow&&a.contentWindow.document);if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a441bcc6acc82220',t:'MTc5MDkyMzQ1NA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>
345</body>
346</html>
347<!-- This website is like a Rocket, isn't it? Performance optimized by WP Rocket. Learn more: https://wp-rocket.me -->

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.