From: Laury GvR Date: Wed, 11 Feb 2015 20:15:15 +0000 (-0500) Subject: Shop styles updates X-Git-Tag: v1.0.0^2~58 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=65c17e1a8d5b6b53d182c3f0e9026288e34283b9;p=WP-Themes%2FTomsMomsCookies.git Shop styles updates --- diff --git a/front-page.php b/front-page.php index 87f7677..eb64fe6 100755 --- a/front-page.php +++ b/front-page.php @@ -7,29 +7,36 @@

Tom's Mom's Cookies

-

For 30 years, we have been baking award-winning cookies using the same recipe, in the same smallresort town in northern Michigan. Our chocolate chunks are hand-cut from 10 lb. bars of creamy semi-sweet chocolate and we use only the finest pecans, walnuts, almonds, macadamia nuts and locally grown Michigan dried cherries available. Weighing in at a hefty 3 ounces each, our soft and chewy cookies are for the serious cookie lover!

+

For 30 years, we have been baking award-winning cookies using the same recipe, in the same small resort town in northern Michigan. Our chocolate chunks are hand-cut from 10 lb. bars of creamy semi-sweet chocolate and we use only the finest pecans, walnuts, almonds, macadamia nuts and locally grown Michigan dried cherries available. Weighing in at a hefty 3 ounces each, our soft and chewy cookies are for the serious cookie lover!

- +

subscribe

-

for special offers

+

for special offers

+
diff --git a/functions.php b/functions.php index cb48813..51f5437 100755 --- a/functions.php +++ b/functions.php @@ -74,4 +74,30 @@ function glm_site_scripts() } add_action('wp_enqueue_scripts', 'glm_site_scripts'); + + +add_action( 'after_setup_theme', 'woocommerce_support' ); + function woocommerce_support() { + add_theme_support( 'woocommerce' ); +} + + + + +// Remove each style one by one +add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' ); +function jk_dequeue_styles( $enqueue_styles ) { +unset( $enqueue_styles['woocommerce-general'] ); // Remove the gloss +unset( $enqueue_styles['woocommerce-layout'] ); // Remove the layout +unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation +return $enqueue_styles; +} +// Or just remove them all in one line +add_filter( 'woocommerce_enqueue_styles', '__return_false' ); + + + + + ?> + diff --git a/header.php b/header.php index ea7455e..0ed204a 100755 --- a/header.php +++ b/header.php @@ -20,16 +20,16 @@
- +

your cart

$0.00 for 0 items

- checkout + checkout
@@ -40,14 +40,14 @@
+ +
diff --git a/nggallery/album-glmalbums.php b/nggallery/album-glmalbums.php new file mode 100644 index 0000000..b971e71 --- /dev/null +++ b/nggallery/album-glmalbums.php @@ -0,0 +1,64 @@ + + If you would like to show the timestamp of the image ,you can use +**/ +?> + + +
+ + + + +
+
+ +
+ + + + +

+ > + title); ?> + +

+ + +
+ + + + +
+ +
+ + diff --git a/nggallery/gallery-glmphotos-narrow.php b/nggallery/gallery-glmphotos-narrow.php new file mode 100644 index 0000000..bc07527 --- /dev/null +++ b/nggallery/gallery-glmphotos-narrow.php @@ -0,0 +1,55 @@ + + If you would like to show the timestamp of the image ,you can use +**/ +?> + + + + + + + + + + diff --git a/nggallery/gallery-glmphotos.php b/nggallery/gallery-glmphotos.php new file mode 100644 index 0000000..74ac570 --- /dev/null +++ b/nggallery/gallery-glmphotos.php @@ -0,0 +1,55 @@ + + If you would like to show the timestamp of the image ,you can use +**/ +?> + + + + + + + + + + diff --git a/nggallery/gallery-glmvideos.php b/nggallery/gallery-glmvideos.php new file mode 100644 index 0000000..599e8d8 --- /dev/null +++ b/nggallery/gallery-glmvideos.php @@ -0,0 +1,74 @@ + + If you would like to show the timestamp of the image ,you can use +**/ +?> + + + + diff --git a/page.php b/page.php index 31fc960..0dae632 100755 --- a/page.php +++ b/page.php @@ -25,13 +25,11 @@
- +

subscribe

for special offers

- - - submit +
diff --git a/scss/_settings.scss b/scss/_settings.scss index d2219ca..17158e9 100755 --- a/scss/_settings.scss +++ b/scss/_settings.scss @@ -115,10 +115,12 @@ $column-gutter: rem-calc(30); // $jet : #222222; // $black : #000000; $brown : #675237; +$lightbrown : #c5ab92; // We use these as default colors throughout -$primary-color: #f5e282; +$primary-color: #fdf3b6; $secondary-color: $brown; +$tertiary-color: #f5e282; // $alert-color: #f04124; // $success-color: #43AC6A; // $warning-color: #f08a24; @@ -199,7 +201,7 @@ $body-font-family: 'Emilys Candy', cursive; $header-font-family: $body-font-family; // $header-font-weight: $font-weight-normal; //$header-font-style: normal; -$header-font-color: #a0e2e2; +$header-font-color: #675237; //$header-line-height: 1.4; //$header-top-margin: .2rem; //$header-bottom-margin: .5rem; diff --git a/scss/_structure.scss b/scss/_structure.scss index 51318b9..c1223fc 100755 --- a/scss/_structure.scss +++ b/scss/_structure.scss @@ -13,9 +13,10 @@ $headerPropSides: $headerColor, sides; $containerColor: #fff; $containerPropSides: $containerColor, sides; .container2 { - .mainContainerWrapper { + @include scallopBorder($containerPropSides...); + padding-top: 10px; } } @@ -28,6 +29,9 @@ $footerPropSides: $footerColor, sides; @include scallopBorder($footerPropSides...); } } +a { + color: #675237; +} header { background: url(../assets/header_bg.png); .row { @@ -41,6 +45,13 @@ footer { font-family: Arial, sans-serif; } } +input[type="text"], +select, +.sku_wrapper, +.label +{ + font-family: Arial, sans-serif; +} .inner-wrap:before { display: none; } @@ -89,11 +100,19 @@ footer { padding: 0 5px; margin-left: 55px; margin-top: 10px; + background-color: white; + color: #97c9ea; + + } + a.button:hover { + background-color: #97c9ea; + color: white; } } } } .top-bar { + margin-bottom: 0px; position: static; .top-bar-section { margin-left: 325px; @@ -105,7 +124,10 @@ footer { padding: 0; a { padding: 0 1rem; - text-shadow: 1px 0 2px $brown, -1px 0 2px $brown, 0 1px 2px $brown, 0 -1px 2px $brown; + text-shadow: 1px 0 2px $brown, -1px 0 2px $lightbrown, 0 1px 2px $lightbrown, 0 -1px 2px $lightbrown; + } + > a { + color: $tertiary-color; } } &:not(.has-form) a:hover:not(.button) { @@ -137,6 +159,9 @@ footer { } #left_side { margin-top: 25px; + #cookie:hover { + transform: rotate(180deg); + } a { img { margin: 35px 0 15px 25px; @@ -148,8 +173,9 @@ footer { p { font-family: Arial, sans-serif; margin-bottom: 10px; + margin-top: -15px; } - a.button { + .button { text-align: center; margin-left: 50px; padding: 0 25px; @@ -166,6 +192,9 @@ footer { } } #boxes { + > div > a { + display:block; + } h4 { color: $brown; margin-top: -3px; @@ -296,3 +325,1645 @@ footer { } } } + +/* Ninja Forms */ + +.ninja-forms-form-wrap { + margin-left: auto; + margin-right: auto; + margin-top: 40px; + max-width: 400px; + .ninja-forms-required-items { + display: none; + } + + .ninja-forms-success-msg { + padding-top: 10px; + padding-bottom: 10px; + } +} +.ninja-forms-form-wrap input { + font-size: 1rem; +} +/* End Ninja Forms */ + +/* NextGen Gallery */ +.gallery { + text-align: center; +} +/* End NextGen Gallery */ + +/* WooCommerce */ +ul.products, .products ol, .products dl { + list-style-type: none; +} +.woocommerce-error, .woocommerce-info, .woocommerce-message, .woocommerce-noreviews, p.no-comments { + background-color: #fdf3b6; + border-left: 0.618em solid rgba(0, 0, 0, 0.15); + clear:both; + color: #675237; + margin-bottom: 20px; + margin-left: 0px; + padding: 10px 15px; + font-family: arial, sans-serif; + color: #675237; + font-weight: bold; + .button { + float:right; + } + +} +.products { + .product.type-product { + border: none; + .price { + color: black; + } + > div { + margin: 5px; + padding: 5px; + text-align:center; + border: 4px solid #f4d8cc; + border-radius: 5px; + img { + border: 2px solid #f4d8cc; + border-radius: 3px; + } + } + & > div { + background-color: white; + h3 { + color:#17c6c6; + text-shadow: 1px 1px 5px #f5e282; + } + .button { + background-color: #f4d8cc; + color: black; + } + .button:hover, .button:focus { + background-color: #17c6c6; + color: black; + } + } + } +} + +.page-numbers { + list-style-type: none; + li { + margin: 0 10px; + } +} +.button { + color: black; + background-color: #f4d8cc; + border-radius: 3px; + &:hover { + background-color: #17c6c6; + color: black; + } +} +#text > .product { + border: 2px solid #675237; + background-color: #fdf3b6; +} +.product.type-product { + margin-bottom: 20px; + border: 2px solid #675437; + color: black; + a { + color: #675237; + } + > div { + margin: 5px; + padding: 5px; + text-align:center; + border-radius: 5px; + img { + border: 2px solid #f4d8cc; + border-radius: 3px; + } + } + .variations_form { + clear: both; + display: table; + width: 100%; + @media #{$small-only} { + .variations, + .single_variation_wrap, + .single_variation_wrap .variations_button, + .single_variation_wrap .variations_button .quantity { + text-align:center; + float: none; + margin-left: auto; + margin-right: auto; + clear: both; + } + } + @media #{$medium-only} { + + .variations, + .single_variation_wrap, + .single_variation_wrap .variations_button, + .single_variation_wrap .variations_button .quantity { + text-align:center; + float: none; + margin-left: auto; + margin-right: auto; + clear: both; + } + .single_variation_wrap .variations_button .quantity { + width: 170px; + } + } + @media #{$large-up} { + .variations { + float: left; + } + .single_variation_wrap { + float: right; + .quantity { + float: left; + } + } + } + } + +} +.woocommerce { + a { + color: #675237; + } +} +.single_variation_wrap .quantity { + display: flex; + text-align:center; + width: 170px; + margin-bottom: 10px; + input { + background-color: white; + height:37px; + width: 45px; + margin: 0 5px; + } +} +.quantity .qty { + -moz-appearance: textfield; + max-width: 3.631em; + text-align: center; +} +.shop_table .quantity { + display:table; + .input-text { + margin: 0; + } + .minus, + .plus { + background-color: transparent; + box-shadow: none; + color: #a46497; + font-weight: 700; + width: 50px; + height: 40px; + } +} +.quantity .minus:hover, .quantity .plus:hover { + background-color: transparent; + color: inherit !important; +} + +/* + +.woocommerce-tabs { + -moz-border-bottom-colors: none; + -moz-border-left-colors: none; + -moz-border-right-colors: none; + -moz-border-top-colors: none; + border-color: rgba(0, 0, 0, 0.1); + border-image: none; + border-style: solid; + border-width: 1px 0; +} +.woocommerce-tabs { + margin-bottom: 2.618em; + padding-bottom: 2.618em; + padding-top: 2.618em; +} + +.woocommerce-tabs ul.tabs { + float: left; + margin-right: 5.88235%; + text-align: left; + width: 29.4118%; +} + +#tab-description { + display: block; +} + +.woocommerce-tabs ul.tabs li.active:after { + content: ""; + left: auto; + margin: -0.5em 0 0; + right: 0; + top: 50%; +} + +.woocommerce-tabs ul.tabs li.active:after { + content: ""; + font-family: FontAwesome; + height: 1em; + left: 50%; + line-height: 1; + margin-left: -0.5em; + position: absolute; + top: 100%; + width: 1em; +} + +.woocommerce-tabs ul.tabs li { + border-bottom: 1px dotted rgba(0, 0, 0, 0.1); + display: block; + margin: 0; +} + +.woocommerce-tabs ul.tabs li { + position: relative; +} + + + + + div.product form.cart { + border-bottom: 3px solid rgba(0, 0, 0, 0.024); + border-top: 3px solid rgba(0, 0, 0, 0.024); + margin-bottom: 1.618em; + padding: 1.618em 0; +} +.single-product div.product form.cart:after { + clear: both; + content: ""; + display: table; +} + +h1, .alpha { + font-size: 2.244em; + font-weight: 300; + letter-spacing: -1px; + line-height: 1.214; +} +.single-product div.product form.cart .quantity { + float: left; + margin-left: -1em; +} + +.single-product div.product .images .woocommerce-main-image { + display: block; + margin-bottom: 1.618em; +} + + + + + + + +.woocommerce-active .site-header .col-full { + position: relative; +} +.woocommerce-active .site-branding, .woocommerce-active .site-logo-anchor { + float: left; + margin-right: 2.618em; +} +.site-header-cart { + list-style-type: none; + margin-left: 0; + padding: 0; +} +.site-header-cart .cart-contents { + background-color: rgba(0, 0, 0, 0.05); + display: block; + height: 2.244em; + position: absolute; + right: 0; + text-indent: -9999px; + top: 0; + width: 2.244em; +} +.site-header-cart .cart-contents:after { + content: ""; + font-family: FontAwesome; + line-height: 2.244; + position: absolute; + right: 0; + text-align: center; + text-indent: 0; + top: 0; + width: 100%; +} +.site-header-cart .cart-contents span { + display: none; +} +.site-header-cart .widget_shopping_cart { + background-color: #2c2d33; + display: none; +} +.site-search { + clear: both; + font-size: 0.857em; +} +.site-search .widget_product_search input[type="search"], .site-search .widget_product_search input[type="text"] { + line-height: 1; + padding: 1.387em 1.618em 1.387em 3.631em; +} +.site-search .widget_product_search form:before { + left: 1.618em; + top: 1.387em; +} +.site-search .widget_product_search #searchsubmit { + display: none; +} +ul.products { + clear: both; + margin-left: 0; +} +ul.products:after { + clear: both; + content: ""; + display: table; +} +ul.products li.product { + list-style: outside none none; + margin-bottom: 4.236em; + margin-left: 0; + overflow: hidden; + position: relative; + text-align: center; +} +ul.products li.product .price, ul.products li.product .star-rating { + margin: 0 auto 1em; +} +ul.products li.product .price { + color: #787e87; + display: block; + font-weight: 400; +} +ul.products li.product .price ins { + background-color: transparent; + font-weight: 700; + margin-left: 0.618em; +} +ul.products li.product img { + display: block; + margin: 0 auto 1.618em; +} +ul.products li.product.product-category img { + margin-bottom: 1.618em; +} +ul.products li.product .button { + margin-bottom: 0.236em; +} +div.product { + overflow: hidden; + position: relative; +} +div.product:after { + clear: both; + content: ""; + display: table; +} +div.product .images, div.product .summary { + margin-bottom: 2.618em; + margin-top: 0; +} + div.product .images .woocommerce-main-image { + display: block; + margin-bottom: 1.618em; +} + div.product .images .thumbnails a.zoom { + display: block; + float: left; + margin-bottom: 1em; + margin-right: 3.8%; + width: 22.05%; +} + div.product .images .thumbnails a.zoom.last { + margin-right: 0; +} + div.product .images .thumbnails a.zoom.first { + clear: both; +} + div.product form.cart { + border-bottom: 3px solid rgba(0, 0, 0, 0.024); + border-top: 3px solid rgba(0, 0, 0, 0.024); + margin-bottom: 1.618em; + padding: 1.618em 0; +} + div.product form.cart:after { + clear: both; + content: ""; + display: table; +} + div.product form.cart .quantity { + float: left; + margin-left: -1em; +} + div.product form.cart .button { + float: right; +} + div.product .price { + font-weight: 700; +} + div.product table.variations { + margin: 0; +} + div.product table.variations td, div.product table.variations th { + background-color: transparent; + display: list-item; + list-style: outside none none; + padding: 0; +} + div.product table.variations .value { + margin-bottom: 1em; +} + div.product .single_variation .price { + display: block; + margin-bottom: 1em; +} + div.product .variations_button { + border-top: 1px solid rgba(0, 0, 0, 0.1); + padding-top: 1em; +} + div.product .variations_button:after { + clear: both; + content: ""; + display: table; +} + div.product .woocommerce-product-rating { + border-bottom: 1px solid rgba(0, 0, 0, 0.1); + line-height: 1; + margin-bottom: 2.618em; + margin-top: -0.618em; + padding: 0 0 1.618em; +} + div.product .woocommerce-product-rating:after { + clear: both; + content: ""; + display: table; +} + div.product .woocommerce-product-rating a { + font-size: 0.857em; +} + div.product .woocommerce-product-rating .star-rating { + float: right; +} + div.product .product_meta { + font-size: 0.857em; +} + div.product p.stock:before { + font-family: FontAwesome; + margin-right: 0.53em; +} + div.product p.stock.in-stock:before { + content: ""; +} + div.product p.stock.out-of-stock:before { + content: ""; +} +#reviews #comments { + padding-top: 0; +} +#reviews .commentlist { + list-style: outside none none; + margin-left: 0; +} +#reviews .commentlist li { + border-bottom: 1px solid rgba(0, 0, 0, 0.1); + list-style: outside none none; + margin-bottom: 3.631em; +} +#reviews .commentlist li time { + opacity: 0.8; +} +#reviews .commentlist li .avatar { + float: right; + height: auto; + width: 2.618em; +} +#reviews .commentlist li p.meta { + margin-bottom: 1em; +} +#reviews .commentlist li .description { + padding-bottom: 1.618em; +} +#reviews .commentlist li ul.children { + border-top: 1px solid rgba(0, 0, 0, 0.1); + float: right; + margin-right: 0; + padding-top: 2.618em; + width: 81.8182%; +} +#reviews .comment-form-author, #reviews .comment-form-email { + width: 47%; +} +#reviews .comment-form-email { + margin-right: 0; +} +#reviews .comment-form-rating { + clear: both; +} +.woocommerce-breadcrumb { + border-bottom: 1px solid rgba(0, 0, 0, 0.05); + font-size: 0.857em; + margin-bottom: 4.236em; + padding: 1em 0; +} +.woocommerce-breadcrumb a.home:before { + content: ""; + font-family: FontAwesome; + font-weight: 400; + margin-right: 0.53em; +} +.product_list_widget { + list-style: outside none none; + margin-left: 0; +} +.product_list_widget li { + border-bottom: 1px dotted rgba(0, 0, 0, 0.1); + padding: 1em 0; +} +.product_list_widget li:after { + clear: both; + content: ""; + display: table; +} +.product_list_widget li img { + float: right; + max-width: 2.618em; +} +.product_list_widget li .quantity { + color: #aeb2b7; + display: block; +} +.product_list_widget a { + color: #60656c; +} +.product_list_widget a:hover { + color: #a46497; +} +.widget_shopping_cart .product_list_widget { + margin-bottom: 0; +} +.widget_shopping_cart .product_list_widget li { + padding-left: 2em; + position: relative; +} +.widget_shopping_cart .product_list_widget li a.remove { + left: 0; + opacity: 1; + position: absolute; + top: 1em; +} +.widget_shopping_cart p.buttons, .widget_shopping_cart p.total { + margin: 0; + padding: 1em 0; + text-align: center; +} +.widget_shopping_cart p.total { + border-bottom: 1px solid rgba(0, 0, 0, 0.1); +} +.widget_product_categories ul { + margin: 0; +} +.widget_product_categories ul li { + list-style: outside none none; + margin-bottom: 0.618em; +} +.widget_product_categories ul li:before { + content: ""; + display: inline-block; + font-family: FontAwesome; + margin-right: 0.53em; + opacity: 0.25; +} +.widget_product_categories ul li.current-cat:before { + content: ""; +} +.widget_product_categories .children { + margin-left: 1.618em; + margin-top: 0.618em; +} +.site-header .widget_shopping_cart li, .site-header .widget_shopping_cart p.buttons, .site-header .widget_shopping_cart p.total { + background-color: rgba(0, 0, 0, 0.024); + padding-left: 1.387em; + padding-right: 1.387em; +} +.widget_layered_nav li { + margin-bottom: 0.618em; +} +.widget_layered_nav .chosen:before { + color: #e2401c; + content: ""; + font-family: FontAwesome; + margin-right: 0.53em; +} +.widget.woocommerce li .count { + float: right; + font-size: 1em; +} +.widget_price_filter .price_slider { + margin-bottom: 1em; +} +.widget_price_filter .price_slider_amount { + line-height: 2.4em; + text-align: right; +} +.widget_price_filter .price_slider_amount .button { + float: left; +} +.widget_price_filter .ui-slider { + position: relative; + text-align: left; +} +.widget_price_filter .ui-slider .ui-slider-handle { + background: none repeat scroll 0 0 #a46497; + border-radius: 1em; + box-sizing: border-box; + cursor: ew-resize; + height: 1em; + margin-top: -0.25em; + opacity: 1; + outline: 0 none; + position: absolute; + width: 1em; + z-index: 2; +} +.widget_price_filter .ui-slider .ui-slider-handle:last-child { + margin-left: -1em; +} +.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active, .widget_price_filter .ui-slider .ui-slider-handle:hover { + box-shadow: 0 0 0 0.236em rgba(0, 0, 0, 0.1); +} +.widget_price_filter .ui-slider .ui-slider-range { + background: none repeat scroll 0 0 #a46497; + border: 0 none; + border-radius: 1em; + display: block; + font-size: 0.7em; + position: absolute; + z-index: 1; +} +.widget_price_filter .price_slider_wrapper .ui-widget-content { + background: none repeat scroll 0 0 rgba(0, 0, 0, 0.1); + border-radius: 1em; +} +.widget_price_filter .ui-slider-horizontal { + height: 0.5em; +} +.widget_price_filter .ui-slider-horizontal .ui-slider-range { + height: 100%; + top: 0; +} +.widget_price_filter .ui-slider-horizontal .ui-slider-range-min { + left: -1px; +} +.widget_price_filter .ui-slider-horizontal .ui-slider-range-max { + right: -1px; +} +table.cart { + margin-bottom: 3.631em; +} +table.cart thead { + text-indent: -999em; +} +table.cart thead th { + padding: 0; +} +table.cart .product-quantity .minus, table.cart .product-quantity .plus, table.cart .product-thumbnail { + display: none; +} +table.cart td, table.cart th { + padding: 0.53em; +} +table.cart .qty { + max-width: 1.618em; + padding: 0.236em; +} +table.cart td.actions label { + display: none; +} +table.cart td.actions .coupon { + border-bottom: 1px dotted rgba(0, 0, 0, 0.1); + margin-bottom: 1em; + padding-bottom: 1em; +} +table.cart td.actions input { + display: block; + margin: 0.236em 0; + width: 100%; +} +.wc-proceed-to-checkout { + margin-bottom: 1.618em; +} +.wc-proceed-to-checkout:after { + clear: both; + content: ""; + display: table; +} +.wc-proceed-to-checkout .button { + display: block; + margin-bottom: 1em; + text-align: center; +} +.wc-proceed-to-checkout .button.checkout-button { + font-size: 1.387em; +} +ul#shipping_method { + list-style: outside none none; + margin: 0; +} +a.remove { + display: block; + font-weight: 400; + height: 1.618em; + line-height: 1.618; + position: relative; + text-indent: -9999px; + width: 1.618em; +} +a.remove:before { + bottom: 0; + color: #e2401c; + content: ""; + font-family: FontAwesome; + font-weight: 400; + left: 0; + line-height: 1.618; + position: absolute; + right: 0; + text-align: center; + text-indent: 0; + top: 0; +} +.checkout_coupon { + margin-bottom: 2.618em; +} +form.checkout:after { + clear: both; + content: ""; + display: table; +} +#payment { + border-top: 3px solid rgba(0, 0, 0, 0.1); +} +#payment:after { + clear: both; + content: ""; + display: table; +} +#payment .create-account { + clear: both; +} +#payment .payment_methods { + border-bottom: 1px dotted rgba(0, 0, 0, 0.1); + margin: 0 !important; + padding: 0 !important; +} +#payment .payment_methods li { + border-bottom: 1px dotted rgba(0, 0, 0, 0.1); + list-style: outside none none !important; + margin-left: 0; + padding: 1.387em !important; +} +#payment .payment_methods li img { + border: 0 none; + float: right; + max-height: 1.618em; + padding: 0; +} +#payment .payment_methods li:last-child { + border-bottom: 0 none; + padding-bottom: 0; +} +#payment .payment_methods li label { + font-weight: 700; + margin-left: 0.618em; + padding-top: 0 !important; + width: 92%; +} +#payment .payment_methods li p { + margin: 0; +} +#payment .payment_methods li .payment_box { + background: none repeat scroll 0 0 rgba(0, 0, 0, 0.035); + border-top: 1px dotted rgba(0, 0, 0, 0.1); + margin: 1.387em -1.387em -1.387em; + padding: 1.387em; +} +#payment .payment_methods li .payment_box fieldset { + border: 0 none; + font-size: 0.857em; + margin: 0; + padding: 1em 0 0; +} +#payment .payment_methods li .payment_box fieldset label { + margin-left: 0; + width: auto; +} +#payment .payment_methods li .payment_box fieldset .form-row { + margin-bottom: 1em; +} +#payment .payment_methods li .payment_box fieldset .form-row-first select { + width: 48%; +} +#payment .payment_methods li .payment_box fieldset .form-row-first select:nth-child(2n) { + float: right; +} +#payment .payment_methods li .payment_box fieldset #cvv { + width: 22% !important; +} +#payment .payment_methods li .payment_box fieldset .help { + float: right; + width: 75%; +} +#payment .terms { + clear: both; + float: none; + margin-bottom: 0; + margin-top: 1em; + width: 100%; +} +#payment .terms label { + display: inline; +} +#payment .terms input { + display: inline-block; + float: left; + margin: 0.327em 0.53em 0 0; + width: auto; +} +#payment .place-order { + float: none; + margin-bottom: 0; + padding: 1.387em; + width: 100%; +} +#payment .place-order .button { + font-size: 1.387em; + width: 100%; +} +#customer_login .col-1 { + border-bottom: 1px dotted rgba(0, 0, 0, 0.1); + margin-bottom: 1.618em; + padding-bottom: 1.618em; +} +ul.order_details { + border: 1px solid rgba(0, 0, 0, 0.1); + list-style: outside none none; + margin-left: 0; + position: relative; +} +ul.order_details:after { + clear: both; + content: ""; + display: table; +} +ul.order_details li { + border-right: 1px solid rgba(0, 0, 0, 0.1); + float: left; + font-size: 0.8em; + padding: 1em 1.618em; + text-transform: uppercase; +} +ul.order_details li:last-child { + border-right: 0 none; +} +ul.order_details li strong { + display: block; + font-size: 1.387em; + text-transform: none; +} +ul.digital-downloads { + list-style: outside none none; + margin-left: 0; +} +ul.digital-downloads li { + border-bottom: 1px dotted rgba(0, 0, 0, 0.1); + margin-bottom: 1em; + padding-bottom: 1em; +} +ul.digital-downloads li:before { + content: ""; + font-family: FontAwesome; + margin-right: 0.53em; +} +.my_account_orders .button { + font-size: 0.857em; + padding: 0.53em 1em; +} +.form-row label { + display: block; +} +.form-row input, .form-row textarea { + width: 100%; +} +.form-row .button, .form-row input[type="checkbox"], .form-row input[type="radio"] { + width: auto; +} +.form-row.create-account label { + display: inline-block; +} +.form-row.woocommerce-validated input.input-text { + box-shadow: 2px 0 0 #17ba6f inset; +} +.form-row.woocommerce-invalid input.input-text { + box-shadow: 2px 0 0 #e2401c inset; +} +.form-row-last { + margin-right: 0 !important; +} +.form-row-wide { + clear: both; + width: 100%; +} +.required { + border-bottom: 0 none !important; + color: red; +} +.demo_store { + background-color: #3d9cd2; + bottom: 0; + color: #fff; + left: 0; + margin: 0; + padding: 1em 1.387em; + position: fixed; + right: 0; +} +.demo_store:before { + content: ""; + font-family: FontAwesome; + margin-right: 0.53em; +} +.star-rating { + font-family: fontawesome; + font-size: 1em; + font-weight: 400; + height: 1em; + line-height: 1em; + overflow: hidden; + position: relative; + width: 4.64em; +} +.star-rating:before { + color: rgba(0, 0, 0, 0.2); + content: ""; + float: left; + left: 0; + position: absolute; + top: 0; +} +.star-rating span { + float: left; + left: 0; + overflow: hidden; + padding-top: 1.618em; + position: absolute; + top: 0; +} +.star-rating span:before { + color: #a46497; + content: ""; + left: 0; + position: absolute; + top: 0; +} +p.stars { + font-size: 1.618em; + position: relative; +} +p.stars a { + color: #787e87; + display: block; + font-weight: 700; + margin-right: 1em; + position: relative; + text-indent: -9999px; +} +p.stars a:hover { + color: #a46497; +} +p.stars a:last-child { + border-right: 0 none; +} +p.stars a.star-1:after, p.stars a.star-2:after, p.stars a.star-3:after, p.stars a.star-4:after, p.stars a.star-5:after { + font-family: FontAwesome; + left: 0; + padding-right: 1em; + position: absolute; + text-indent: 0; + top: 0; +} +p.stars a.star-1 { + width: 2em; +} +p.stars a.star-1:after { + content: ""; +} +p.stars a.star-1.active:after, p.stars a.star-1:hover:after { + content: ""; +} +p.stars a.star-2 { + width: 3em; +} +p.stars a.star-2:after { + content: ""; +} +p.stars a.star-2.active:after, p.stars a.star-2:hover:after { + content: ""; +} +p.stars a.star-3 { + width: 4em; +} +p.stars a.star-3:after { + content: ""; +} +p.stars a.star-3.active:after, p.stars a.star-3:hover:after { + content: ""; +} +p.stars a.star-4 { + width: 5em; +} +p.stars a.star-4:after { + content: ""; +} +p.stars a.star-4.active:after, p.stars a.star-4:hover:after { + content: ""; +} +p.stars a.star-5 { + border: 0 none; + width: 6em; +} +p.stars a.star-5:after { + content: ""; +} +p.stars a.star-5.active:after, p.stars a.star-5:hover:after { + content: ""; +} +.onsale { + border: 2px solid #787e87; + color: #787e87; + display: inline-block; + font-size: 0.857em; + font-weight: 700; + margin-bottom: 1em; + padding: 0.202em 0.618em; + text-transform: uppercase; +} +.quantity .qty { + -moz-appearance: textfield; + max-width: 3.631em; + text-align: center; +} +.quantity .minus, .quantity .plus { + background-color: transparent; + box-shadow: none; + color: #a46497; + font-weight: 700; +} +.quantity .minus:hover, .quantity .plus:hover { + background-color: transparent; + color: inherit !important; +} +.woocommerce-ordering, .woocommerce-result-count { + font-size: 0.857em; + margin-bottom: 2.618em; +} +.woocommerce-tabs { + -moz-border-bottom-colors: none; + -moz-border-left-colors: none; + -moz-border-right-colors: none; + -moz-border-top-colors: none; + border-color: rgba(0, 0, 0, 0.1); + border-image: none; + border-style: solid; + border-width: 1px 0; + padding: 1em 0; +} +.woocommerce-tabs ul.tabs { + list-style: outside none none; + margin-left: 0; + text-align: center; +} +.woocommerce-tabs ul.tabs li { + display: inline-block; + margin-right: 1em; + position: relative; +} +.woocommerce-tabs ul.tabs li.active a { + color: #787e87; +} +.woocommerce-tabs ul.tabs li.active:after { + content: ""; + font-family: FontAwesome; + height: 1em; + left: 50%; + line-height: 1; + margin-left: -0.5em; + position: absolute; + top: 100%; + width: 1em; +} +.woocommerce-error, .woocommerce-info, .woocommerce-message, .woocommerce-noreviews, p.no-comments { + background-color: #17ba6f; + border-left: 0.618em solid rgba(0, 0, 0, 0.15); + clear: both; + color: #fff; + margin-bottom: 2.618em; + margin-left: 0; + padding: 1em 1.618em; +} +.woocommerce-error:after, .woocommerce-info:after, .woocommerce-message:after, .woocommerce-noreviews:after, p.no-comments:after { + clear: both; + content: ""; + display: table; +} +.woocommerce-error a, .woocommerce-info a, .woocommerce-message a, .woocommerce-noreviews a, p.no-comments a { + color: #fff; +} +.woocommerce-error a:hover, .woocommerce-info a:hover, .woocommerce-message a:hover, .woocommerce-noreviews a:hover, p.no-comments a:hover { + color: #fff; + opacity: 0.7; +} +.woocommerce-error a.button:hover, .woocommerce-info a.button:hover, .woocommerce-message a.button:hover, .woocommerce-noreviews a.button:hover, p.no-comments a.button:hover { + opacity: 1; +} +.woocommerce-error .button, .woocommerce-info .button, .woocommerce-message .button, .woocommerce-noreviews .button, p.no-comments .button { + background: none repeat scroll 0 0 rgba(0, 0, 0, 0); + border-left-color: rgba(255, 255, 255, 0.25) !important; + border-left-style: solid; + border-radius: 0; + border-width: 0 0 0 1px; + box-shadow: none; + color: #fff; + float: right; + line-height: 1.618; + padding: 0 0 0 1em; +} +.woocommerce-error .button:hover, .woocommerce-info .button:hover, .woocommerce-message .button:hover, .woocommerce-noreviews .button:hover, p.no-comments .button:hover { + background: none repeat scroll 0 0 rgba(0, 0, 0, 0); + color: #fff; + opacity: 0.7; +} +.wc-forward:after { + content: ""; + font-family: FontAwesome; + font-weight: 400; + margin-left: 0.53em; +} +.woocommerce-error { + list-style: outside none none; +} +.woocommerce-info, .woocommerce-noreviews, p.no-comments { + background-color: #3d9cd2; +} +.woocommerce-error { + background-color: #e2401c; +} +dl.variation { + font-size: 0.857em; +} +dl.variation dd { + margin: 0 0 1em; +} +.storefront-product-section { + border-bottom: 3px solid rgba(0, 0, 0, 0.024); + margin-bottom: 4.236em; +} +.storefront-product-section .section-title { + text-align: center; +} +.storefront-product-section:last-child { + border-bottom: 0 none; +} +@media screen and (min-width: 768px) { +p.stars { + font-size: 1em; +} +p.stars a { + display: inline-block; +} +p.stars a.star-1, p.stars a.star-2, p.stars a.star-3, p.stars a.star-4 { + border-right: 1px solid rgba(0, 0, 0, 0.1); +} +.site-header-cart { + position: relative; +} +.site-header-cart .cart-contents { + background-color: transparent; + display: block; + height: auto; + padding: 0 1em 2.244em; + position: relative; + text-indent: 0; + width: auto; +} +.site-header-cart .cart-contents:after { + height: 1em; + line-height: 1.387; + right: 1.618em; + top: 0; + width: 1em; +} +.site-header-cart .cart-contents .amount { + margin-right: 0.327em; +} +.site-header-cart .cart-contents .count { + font-size: 0.857em; + font-weight: 400; + opacity: 0.5; +} +.site-header-cart .cart-contents span { + display: inline; +} +.site-header-cart .widget_shopping_cart { + display: none; + font-size: 0.857em; + left: 0; + position: absolute; + top: 100%; + width: 100%; + z-index: 999999; +} +.site-header-cart .widget_shopping_cart h2.widgettitle { + display: none; +} +.site-header-cart .widget_shopping_cart .product_list_widget li a.remove { + float: left; + position: relative; + top: auto; +} +.site-header-cart .widget_shopping_cart .product_list_widget li a.remove:before { + text-align: left; +} +.site-header-cart:hover .widget_shopping_cart { + display: block; +} +ul.products li.product { + clear: none; + float: left; + font-size: 0.857em; + width: 100%; +} +ul.products li.product.first { + clear: both !important; +} +ul.products li.product.last { + margin-right: 0 !important; +} +.page-template-template-fullwidth-php .site-main .columns-1 ul.products li.product, .page-template-template-homepage-php .site-main .columns-1 ul.products li.product, .storefront-full-width-content .site-main .columns-1 ul.products li.product { + float: none; + margin-right: 0; + width: 100%; +} +.page-template-template-fullwidth-php .site-main .columns-2 ul.products li.product, .page-template-template-homepage-php .site-main .columns-2 ul.products li.product, .storefront-full-width-content .site-main .columns-2 ul.products li.product { + float: left; + margin-right: 4.34783%; + width: 47.8261%; +} +.page-template-template-fullwidth-php .site-main .columns-3 ul.products li.product, .page-template-template-homepage-php .site-main .columns-3 ul.products li.product, .storefront-full-width-content .site-main .columns-3 ul.products li.product { + float: left; + margin-right: 4.34783%; + width: 30.4348%; +} +.page-template-template-fullwidth-php .site-main .columns-4 ul.products li.product, .page-template-template-homepage-php .site-main .columns-4 ul.products li.product, .storefront-full-width-content .site-main .columns-4 ul.products li.product { + float: left; + margin-right: 4.34783%; + width: 21.7391%; +} +.page-template-template-fullwidth-php .site-main .columns-5 ul.products li.product, .page-template-template-homepage-php .site-main .columns-5 ul.products li.product, .storefront-full-width-content .site-main .columns-5 ul.products li.product { + margin-right: 3.8%; + width: 16.9%; +} +.site-main .columns-1 ul.products li.product { + float: none; + margin-right: 0; + width: 100%; +} +.site-main .columns-2 ul.products li.product { + margin-right: 3.8%; + width: 48%; +} +.site-main .columns-3 ul.products li.product { + float: left; + margin-right: 5.88235%; + width: 29.4118%; +} +.site-main .columns-4 ul.products li.product { + margin-right: 3.8%; + width: 22.05%; +} +.site-main .columns-5 ul.products li.product { + margin-right: 3.8%; + width: 16.9%; +} +.site-main ul.products li.product { + float: left; + margin-right: 5.88235%; + width: 29.4118%; +} + div.product .images { + float: left; + margin-bottom: 3.631em; + margin-right: 5.88235%; + width: 41.1765%; +} + div.product .images .thumbnails:after { + clear: both; + content: ""; + display: table; +} + div.product .images .thumbnails a.zoom { + float: left; + margin-right: 14.2857%; + width: 14.2857%; +} + div.product .images .thumbnails a.zoom.last { + float: right; + margin-right: 0; +} + div.product .summary { + float: right; + margin-bottom: 3.631em; + margin-right: 0; + width: 52.9412%; +} + div.product .woocommerce-tabs { + clear: both; +} +.storefront-full-width-content div.product .images { + float: left; + margin-bottom: 3.631em; + margin-right: 4.34783%; + width: 30.4348%; +} +.storefront-full-width-content div.product .images .thumbnails a.zoom { + float: left; + margin-right: 14.2857%; + width: 14.2857%; +} +.storefront-full-width-content div.product .images .thumbnails a.zoom.last { + margin-right: 0; +} +.storefront-full-width-content div.product .summary { + float: right; + margin-bottom: 3.631em; + margin-right: 0; + width: 65.2174%; +} +.storefront-full-width-content div.product .woocommerce-tabs { + clear: both; +} +.storefront-full-width-content .related ul.products li.product, .storefront-full-width-content .upsells ul.products li.product { + float: left; + margin-right: 4.34783%; + width: 30.4348%; +} +.woocommerce .page-description { + float: left; + margin-bottom: 1.618em; + margin-right: 5.88235%; + width: 64.7059%; +} +.woocommerce-result-count { + clear: both; + float: left; + padding-bottom: 1em; + position: relative; +} +.woocommerce-ordering { + float: right; +} +.page-template-template-fullwidth-php table.cart .product-thumbnail { + display: table-cell; +} +.page-template-template-fullwidth-php table.cart .product-thumbnail img { + border: 0.327em solid #fff; + height: auto; + max-width: 3.631em; +} +.page-template-template-fullwidth-php table.cart thead { + font-size: 1em; + text-indent: 0; +} +.page-template-template-fullwidth-php table.cart thead th, table.cart td, table.cart th { + padding: 0.857em 1.387em; +} +table.cart .qty { + max-width: 3.632em; + padding: 0.857em; +} +table.cart .product-remove { + display: table-cell; +} +table.cart .product-quantity .minus, table.cart .product-quantity .plus { + display: inline-block; +} +table.cart .quantity { + min-width: 9.505em; +} +table.cart .quantity .minus, table.cart .quantity .plus, table.cart .quantity .qty { + padding: 0.618em; +} +table.cart td.actions { + text-align: right; +} +table.cart td.actions label { + display: none; +} +table.cart td.actions .coupon { + border-bottom: medium none; + display: inline-block; + float: left; + margin-bottom: 0; + padding-bottom: 0; +} +table.cart td.actions input { + display: inline-block; + margin: 0; + width: auto; +} +.cart-collaterals:after { + clear: both; + content: ""; + display: table; +} +.cart-collaterals .cross-sells { + float: left; + margin-right: 5.88235%; + width: 41.1765%; +} +.cart-collaterals .cross-sells ul.products li.product { + float: left; + margin-right: 14.2857%; + width: 42.8571%; +} +.cart-collaterals .cart_totals, .cart-collaterals .shipping_calculator { + clear: right; + float: right; + margin: 0; + width: 52.9412%; +} +.cart-collaterals .shipping_calculator { + clear: right; +} +.page-template-template-fullwidth-php .cart-collaterals .cross-sells { + float: left; + margin-right: 4.34783%; + width: 47.8261%; +} +.page-template-template-fullwidth-php .cart-collaterals .cross-sells ul.products li.product { + float: left; + margin-right: 9.09091%; + width: 45.4546%; +} +.page-template-template-fullwidth-php .cart-collaterals .cart_totals, .page-template-template-fullwidth-php .cart-collaterals .shipping_calculator { + float: right; + margin-right: 0; + width: 47.8261%; +} +#customer_details { + float: left; + margin-right: 5.88235%; + width: 52.9412%; +} +#customer_details .form-row-first { + float: left; + margin-right: 11.1111%; + width: 33.3333%; +} +#customer_details .form-row-last { + float: right; + margin-right: 0; + width: 55.5556%; +} +#customer_details .col-1, #customer_details .col-2 { + margin-bottom: 1.618em; +} +#order_review, #order_review_heading { + border: 3px solid #a46497; + clear: none; + float: right; + margin-right: 0; + width: 41.1765%; +} +#order_review_heading { + border-width: 3px 3px 0; + margin-bottom: 0; + padding: 0.618em 2.08333%; +} +#order_review { + border-width: 0 3px 3px; +} +#wc_checkout_add_ons { + float: left; + margin-right: 5.88235%; + width: 41.1765%; +} +.page-template-template-fullwidth-php #customer_details { + float: left; + margin-right: 4.34783%; + width: 47.8261%; +} +.page-template-template-fullwidth-php #customer_details .form-row-first { + float: left; + margin-right: 9.09091%; + width: 45.4546%; +} +.page-template-template-fullwidth-php #customer_details .form-row-last { + float: right; + margin-right: 0; + width: 45.4546%; +} +.page-template-template-fullwidth-php #order_review, .page-template-template-fullwidth-php #order_review_heading, .page-template-template-fullwidth-php #wc_checkout_add_ons { + float: right; + margin-right: 0; + width: 47.8261%; +} +.page-template-template-fullwidth-php #order_review { + font-size: 0.857em; +} +#order_review .shop_table { + margin-bottom: 2.618em; +} +.form-row-first { + clear: both; + float: left; + margin-right: 5.88235%; + width: 47.0588%; +} +.form-row-last { + float: right; + margin-right: 0; + width: 47.0588%; +} +.page-template-template-fullwidth-php .form-row-first { + float: left; + margin-right: 4.34783%; + width: 47.8261%; +} +.page-template-template-fullwidth-php .form-row-last { + float: right; + margin-right: 0; + width: 47.8261%; +} +.storefront-full-width-content .woocommerce-tabs ul.tabs { + float: left; + margin-right: 4.34783%; + width: 30.4348%; +} +.storefront-full-width-content .woocommerce-tabs .panel { + float: right; + margin-bottom: 3.631em; + margin-right: 0; + width: 65.2174%; +} +.woocommerce-tabs { + margin-bottom: 2.618em; + padding-bottom: 2.618em; + padding-top: 2.618em; +} +.woocommerce-tabs:after { + clear: both; + content: ""; + display: table; +} +.woocommerce-tabs ul.tabs { + float: left; + margin-right: 5.88235%; + text-align: left; + width: 29.4118%; +} +.woocommerce-tabs ul.tabs li { + border-bottom: 1px dotted rgba(0, 0, 0, 0.1); + display: block; + margin: 0; +} +.woocommerce-tabs ul.tabs li a { + display: block; + padding: 1em 0; +} +.woocommerce-tabs ul.tabs li.active:after { + content: ""; + left: auto; + margin: -0.5em 0 0; + right: 0; + top: 50%; +} +.woocommerce-tabs .panel { + float: right; + margin-right: 0; + margin-top: 0; + width: 64.7059%; +} +}*/ diff --git a/sidebar.php b/sidebar.php new file mode 100644 index 0000000..6f05ef7 --- /dev/null +++ b/sidebar.php @@ -0,0 +1,19 @@ + + diff --git a/woocommerce.php b/woocommerce.php new file mode 100644 index 0000000..7086811 --- /dev/null +++ b/woocommerce.php @@ -0,0 +1,39 @@ + +
+
+
+ +
+ +
+

subscribe

+

for special offers

+ + + submit +
+
+
+
+ +
+
+
+ diff --git a/woocommerce/archive-product.php b/woocommerce/archive-product.php new file mode 100644 index 0000000..45539d2 --- /dev/null +++ b/woocommerce/archive-product.php @@ -0,0 +1,91 @@ + + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?> + + + + + + + + + + \ No newline at end of file diff --git a/woocommerce/cart/cart-empty.php b/woocommerce/cart/cart-empty.php new file mode 100644 index 0000000..d4547bb --- /dev/null +++ b/woocommerce/cart/cart-empty.php @@ -0,0 +1,20 @@ + + +

+ + + +

\ No newline at end of file diff --git a/woocommerce/cart/cart-item-data.php b/woocommerce/cart/cart-item-data.php new file mode 100644 index 0000000..9ab4685 --- /dev/null +++ b/woocommerce/cart/cart-item-data.php @@ -0,0 +1,21 @@ + +
+ +
:
+
+ +
diff --git a/woocommerce/cart/cart-shipping.php b/woocommerce/cart/cart-shipping.php new file mode 100644 index 0000000..5e4ab73 --- /dev/null +++ b/woocommerce/cart/cart-shipping.php @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + customer->get_shipping_state() || ! WC()->customer->get_shipping_postcode() ) : ?> + + + +

+ + + +

+ + + +

+ + + + + + + +

' . __( 'There doesn‘t seem to be any available shipping methods. Please double check your address, or contact us if you need any help.', 'woocommerce' ) . '

' + ); ?> + + + + ' . __( 'There doesn‘t seem to be any available shipping methods. Please double check your address, or contact us if you need any help.', 'woocommerce' ) . '

' + ); ?> + + + + + + + $values ) { + if ( $values['data']->needs_shipping() ) { + $product_names[] = $values['data']->get_title() . ' ×' . $values['quantity']; + } + } + + echo '

' . __( 'Shipping', 'woocommerce' ) . ': ' . implode( ', ', $product_names ) . '

'; + ?> + + + diff --git a/woocommerce/cart/cart-totals.php b/woocommerce/cart/cart-totals.php new file mode 100644 index 0000000..f534a2f --- /dev/null +++ b/woocommerce/cart/cart-totals.php @@ -0,0 +1,97 @@ + +
+ + + +

+ + + + + + + + + cart->get_coupons( 'cart' ) as $code => $coupon ) : ?> + + + + + + + cart->needs_shipping() && WC()->cart->show_shipping() ) : ?> + + + + + + + + + + cart->get_fees() as $fee ) : ?> + + + + + + + cart->tax_display_cart == 'excl' ) : ?> + + cart->get_tax_totals() as $code => $tax ) : ?> + + + + + + + + + + + + + + cart->get_coupons( 'order' ) as $code => $coupon ) : ?> + + + + + + + + + + + + + + + +
name ); ?>
label ); ?>formatted_amount ); ?>
countries->tax_or_vat() ); ?>
+ + cart->get_cart_tax() ) : ?> +

customer->is_customer_outside_base() && ! WC()->customer->has_calculated_shipping() + ? sprintf( ' ' . __( ' (taxes estimated for %s)', 'woocommerce' ), WC()->countries->estimated_for_prefix() . __( WC()->countries->countries[ WC()->countries->get_base_country() ], 'woocommerce' ) ) + : ''; + + printf( __( 'Note: Shipping and taxes are estimated%s and will be updated during checkout based on your billing and shipping information.', 'woocommerce' ), $estimated_text ); + + ?>

+ + + + +
\ No newline at end of file diff --git a/woocommerce/cart/cart.php b/woocommerce/cart/cart.php new file mode 100644 index 0000000..c3558f9 --- /dev/null +++ b/woocommerce/cart/cart.php @@ -0,0 +1,150 @@ + + +
+ + + + + + + + + + + + + + + + + + cart->get_cart() as $cart_item_key => $cart_item ) { + $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); + $product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); + + if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_cart_item_visible', true, $cart_item, $cart_item_key ) ) { + ?> + + + + + + + + + + + + + + + + + + + + + +
  
+ ×', esc_url( WC()->cart->get_remove_url( $cart_item_key ) ), __( 'Remove this item', 'woocommerce' ) ), $cart_item_key ); + ?> + + get_image(), $cart_item, $cart_item_key ); + + if ( ! $_product->is_visible() ) + echo $thumbnail; + else + printf( '%s', $_product->get_permalink(), $thumbnail ); + ?> + + is_visible() ) + echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ); + else + echo apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', $_product->get_permalink(), $_product->get_title() ), $cart_item, $cart_item_key ); + + // Meta data + echo WC()->cart->get_item_data( $cart_item ); + + // Backorder notification + if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) + echo '

' . __( 'Available on backorder', 'woocommerce' ) . '

'; + ?> +
+ cart->get_product_price( $_product ), $cart_item, $cart_item_key ); + ?> + + is_sold_individually() ) { + $product_quantity = sprintf( '1 ', $cart_item_key ); + } else { + $product_quantity = woocommerce_quantity_input( array( + 'input_name' => "cart[{$cart_item_key}][qty]", + 'input_value' => $cart_item['quantity'], + 'max_value' => $_product->backorders_allowed() ? '' : $_product->get_stock_quantity(), + 'min_value' => '0' + ), $_product, false ); + } + + echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key ); + ?> + + cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); + ?> +
+ + cart->coupons_enabled() ) { ?> +
+ + + + + +
+ + + + + + + +
+ + + +
+ +
+ + + + + + + +
+ + diff --git a/woocommerce/cart/cross-sells.php b/woocommerce/cart/cross-sells.php new file mode 100644 index 0000000..7a9b600 --- /dev/null +++ b/woocommerce/cart/cross-sells.php @@ -0,0 +1,54 @@ +cart->get_cross_sells(); + +if ( sizeof( $crosssells ) == 0 ) return; + +$meta_query = WC()->query->get_meta_query(); + +$args = array( + 'post_type' => 'product', + 'ignore_sticky_posts' => 1, + 'no_found_rows' => 1, + 'posts_per_page' => apply_filters( 'woocommerce_cross_sells_total', $posts_per_page ), + 'orderby' => $orderby, + 'post__in' => $crosssells, + 'meta_query' => $meta_query +); + +$products = new WP_Query( $args ); + +$woocommerce_loop['columns'] = apply_filters( 'woocommerce_cross_sells_columns', $columns ); + +if ( $products->have_posts() ) : ?> + +
+ +

+ + + + have_posts() ) : $products->the_post(); ?> + + + + + + + +
+ + + + + + + +cart->get_cart() ) > 0 ) : ?> + +

: cart->get_cart_subtotal(); ?>

+ + + +

+ + +

+ + + + diff --git a/woocommerce/cart/shipping-calculator.php b/woocommerce/cart/shipping-calculator.php new file mode 100644 index 0000000..89c2c17 --- /dev/null +++ b/woocommerce/cart/shipping-calculator.php @@ -0,0 +1,89 @@ +cart->needs_shipping() ) + return; +?> + + + +
+ +

+ +
+ +

+ +

+ +

+ customer->get_shipping_country(); + $current_r = WC()->customer->get_shipping_state(); + $states = WC()->countries->get_states( $current_cc ); + + // Hidden Input + if ( is_array( $states ) && empty( $states ) ) { + + ?> + + +

+ + + +

+ +

+ + + + + +

+ +

+ + + +

+ + +
+
+ + \ No newline at end of file diff --git a/woocommerce/checkout/cart-errors.php b/woocommerce/checkout/cart-errors.php new file mode 100644 index 0000000..99dc6a9 --- /dev/null +++ b/woocommerce/checkout/cart-errors.php @@ -0,0 +1,20 @@ + + + + +

+ + + +

\ No newline at end of file diff --git a/woocommerce/checkout/form-billing.php b/woocommerce/checkout/form-billing.php new file mode 100644 index 0000000..0def3c1 --- /dev/null +++ b/woocommerce/checkout/form-billing.php @@ -0,0 +1,66 @@ + +
+ cart->ship_to_billing_address_only() && WC()->cart->needs_shipping() ) : ?> + +

+ + + +

+ + + + + + checkout_fields['billing'] as $key => $field ) : ?> + + get_value( $key ) ); ?> + + + + + + enable_signup ) : ?> + + enable_guest_checkout ) : ?> + + + + + + + + checkout_fields['account'] ) ) : ?> + + + + + + + + +
\ No newline at end of file diff --git a/woocommerce/checkout/form-checkout.php b/woocommerce/checkout/form-checkout.php new file mode 100644 index 0000000..0331d2e --- /dev/null +++ b/woocommerce/checkout/form-checkout.php @@ -0,0 +1,57 @@ +enable_signup && ! $checkout->enable_guest_checkout && ! is_user_logged_in() ) { + echo apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'woocommerce' ) ); + return; +} + +// filter hook for include new pages inside the payment method +$get_checkout_url = apply_filters( 'woocommerce_get_checkout_url', WC()->cart->get_checkout_url() ); ?> + +
+ + checkout_fields ) > 0 ) : ?> + + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +

+ + + + + +
+ + \ No newline at end of file diff --git a/woocommerce/checkout/form-coupon.php b/woocommerce/checkout/form-coupon.php new file mode 100644 index 0000000..05fe233 --- /dev/null +++ b/woocommerce/checkout/form-coupon.php @@ -0,0 +1,31 @@ +cart->coupons_enabled() ) { + return; +} + +$info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'woocommerce' ) . ' ' . __( 'Click here to enter your code', 'woocommerce' ) . '' ); +wc_print_notice( $info_message, 'notice' ); +?> + + \ No newline at end of file diff --git a/woocommerce/checkout/form-login.php b/woocommerce/checkout/form-login.php new file mode 100644 index 0000000..70ce615 --- /dev/null +++ b/woocommerce/checkout/form-login.php @@ -0,0 +1,27 @@ +' . __( 'Click here to login', 'woocommerce' ) . ''; +wc_print_notice( $info_message, 'notice' ); +?> + + __( 'If you have shopped with us before, please enter your details in the boxes below. If you are a new customer please proceed to the Billing & Shipping section.', 'woocommerce' ), + 'redirect' => get_permalink( wc_get_page_id( 'checkout' ) ), + 'hidden' => true + ) + ); +?> \ No newline at end of file diff --git a/woocommerce/checkout/form-pay.php b/woocommerce/checkout/form-pay.php new file mode 100644 index 0000000..db495e7 --- /dev/null +++ b/woocommerce/checkout/form-pay.php @@ -0,0 +1,96 @@ + +
+ + + + + + + + + + + get_items() ) > 0 ) : + foreach ( $order->get_items() as $item ) : + echo ' + + + + + '; + endforeach; + endif; + ?> + + + get_order_item_totals() ) foreach ( $totals as $total ) : + ?> + + + + + + +
' . $item['name'].'' . $item['qty'].'' . $order->get_formatted_line_subtotal( $item ) . '
+ +
+ needs_payment() ) : ?> +

+
    + payment_gateways->get_available_payment_gateways() ) { + // Chosen Method + if ( sizeof( $available_gateways ) ) + current( $available_gateways )->set_current(); + + foreach ( $available_gateways as $gateway ) { + ?> +
  • + chosen, true ); ?> data-order_button_text="order_button_text ); ?>" /> + + has_fields() || $gateway->get_description() ) { + echo ''; + } + ?> +
  • + ' . __( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) . '

    '; + + } + ?> +
+ + +
+ + ' ); + ?> + +
+ +
+ +
diff --git a/woocommerce/checkout/form-shipping.php b/woocommerce/checkout/form-shipping.php new file mode 100644 index 0000000..0e67ead --- /dev/null +++ b/woocommerce/checkout/form-shipping.php @@ -0,0 +1,68 @@ + +
+ cart->needs_shipping_address() === true ) : ?> + + get_value( 'ship_to_different_address' ); + + } + ?> + +

+ + type="checkbox" name="ship_to_different_address" value="1" /> +

+ +
+ + + + checkout_fields['shipping'] as $key => $field ) : ?> + + get_value( $key ) ); ?> + + + + + +
+ + + + + + + + cart->needs_shipping() || WC()->cart->ship_to_billing_address_only() ) : ?> + +

+ + + + checkout_fields['order'] as $key => $field ) : ?> + + get_value( $key ) ); ?> + + + + + + +
diff --git a/woocommerce/checkout/review-order.php b/woocommerce/checkout/review-order.php new file mode 100644 index 0000000..37f8b98 --- /dev/null +++ b/woocommerce/checkout/review-order.php @@ -0,0 +1,194 @@ + + +
+ + + + + + + + + + cart->get_cart() as $cart_item_key => $cart_item ) { + $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); + + if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key ) ) { + ?> + + + + + + + + + + + + + + cart->get_coupons( 'cart' ) as $code => $coupon ) : ?> + + + + + + + cart->needs_shipping() && WC()->cart->show_shipping() ) : ?> + + + + + + + + + + cart->get_fees() as $fee ) : ?> + + + + + + + cart->tax_display_cart === 'excl' ) : ?> + + cart->get_tax_totals() as $code => $tax ) : ?> + + + + + + + + + + + + + + cart->get_coupons( 'order' ) as $code => $coupon ) : ?> + + + + + + + + + + + + + + + + +
+ get_title(), $cart_item, $cart_item_key ); ?> + ' . sprintf( '× %s', $cart_item['quantity'] ) . '', $cart_item, $cart_item_key ); ?> + cart->get_item_data( $cart_item ); ?> + + cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); ?> +
name ); ?>
label ); ?>formatted_amount ); ?>
countries->tax_or_vat() ); ?>cart->get_taxes_total() ); ?>
+ + + +
+ cart->needs_payment() ) : ?> +
    + payment_gateways->get_available_payment_gateways(); + if ( ! empty( $available_gateways ) ) { + + // Chosen Method + if ( isset( WC()->session->chosen_payment_method ) && isset( $available_gateways[ WC()->session->chosen_payment_method ] ) ) { + $available_gateways[ WC()->session->chosen_payment_method ]->set_current(); + } elseif ( isset( $available_gateways[ get_option( 'woocommerce_default_gateway' ) ] ) ) { + $available_gateways[ get_option( 'woocommerce_default_gateway' ) ]->set_current(); + } else { + current( $available_gateways )->set_current(); + } + + foreach ( $available_gateways as $gateway ) { + ?> +
  • + chosen, true ); ?> data-order_button_text="order_button_text ); ?>" /> + + has_fields() || $gateway->get_description() ) : + echo '
    chosen ? '' : 'style="display:none;"' ) . '>'; + $gateway->payment_fields(); + echo '
    '; + endif; + ?> +
  • + customer->get_country() ) + $no_gateways_message = __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ); + else + $no_gateways_message = __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ); + + echo '

    ' . apply_filters( 'woocommerce_no_available_payment_methods_message', $no_gateways_message ) . '

    '; + + } + ?> +
+ + +
+ + + + + + + + ' ); + ?> + + 0 && apply_filters( 'woocommerce_checkout_show_terms', true ) ) { + $terms_is_checked = apply_filters( 'woocommerce_terms_is_checked_default', isset( $_POST['terms'] ) ); + ?> +

+ + id="terms" /> +

+ + + + +
+ +
+ +
+ + + +
\ No newline at end of file diff --git a/woocommerce/checkout/thankyou.php b/woocommerce/checkout/thankyou.php new file mode 100644 index 0000000..669723c --- /dev/null +++ b/woocommerce/checkout/thankyou.php @@ -0,0 +1,67 @@ + + + has_status( 'failed' ) ) : ?> + +

+ +

+ +

+ + + + +

+ + + +

+ + +
+ + + + payment_method, $order->id ); ?> + id ); ?> + + + +

+ + \ No newline at end of file diff --git a/woocommerce/content-product.php b/woocommerce/content-product.php new file mode 100644 index 0000000..34b13ca --- /dev/null +++ b/woocommerce/content-product.php @@ -0,0 +1,74 @@ +is_visible() ) + return; + +// Increase loop count +$woocommerce_loop['loop']++; + +// Extra post classes +$classes = array(); + +if ( 0 == ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] || 1 == $woocommerce_loop['columns'] ) + $classes[] = 'first'; +if ( 0 == $woocommerce_loop['loop'] % $woocommerce_loop['columns'] ) + $classes[] = 'last'; + +$classes[] = 'columns'; +?> + +
  • > +
    + + + + + + +

    + + + +
    + + +
    +
  • diff --git a/woocommerce/content-product_cat.php b/woocommerce/content-product_cat.php new file mode 100644 index 0000000..10945f1 --- /dev/null +++ b/woocommerce/content-product_cat.php @@ -0,0 +1,67 @@ + +
  • + + + + + + + +

    + name; + + if ( $category->count > 0 ) + echo apply_filters( 'woocommerce_subcategory_count_html', ' (' . $category->count . ')', $category ); + ?> +

    + + + +
    + + + +
  • \ No newline at end of file diff --git a/woocommerce/content-single-product.php b/woocommerce/content-single-product.php new file mode 100644 index 0000000..d40aba3 --- /dev/null +++ b/woocommerce/content-single-product.php @@ -0,0 +1,75 @@ + + + + +
    > + + + +
    + + + +
    + + + + + +
    + + diff --git a/woocommerce/content-widget-product.php b/woocommerce/content-widget-product.php new file mode 100644 index 0000000..69be667 --- /dev/null +++ b/woocommerce/content-widget-product.php @@ -0,0 +1,9 @@ + +
  • + + get_image(); ?> + get_title(); ?> + + get_rating_html(); ?> + get_price_html(); ?> +
  • \ No newline at end of file diff --git a/woocommerce/emails/admin-new-order.php b/woocommerce/emails/admin-new-order.php new file mode 100644 index 0000000..3e6c875 --- /dev/null +++ b/woocommerce/emails/admin-new-order.php @@ -0,0 +1,61 @@ + + + + +

    billing_first_name . ' ' . $order->billing_last_name ); ?>

    + + + +

    get_order_number() ); ?> (%s', date_i18n( 'c', strtotime( $order->order_date ) ), date_i18n( wc_date_format(), strtotime( $order->order_date ) ) ); ?>)

    + + + + + + + + + + + email_order_items_table( false, true ); ?> + + + get_order_item_totals() ) { + $i = 0; + foreach ( $totals as $total ) { + $i++; + ?> + + + + +
    + + + + + +

    + +billing_email ) : ?> +

    billing_email; ?>

    + +billing_phone ) : ?> +

    billing_phone; ?>

    + + + $order ) ); ?> + + diff --git a/woocommerce/emails/customer-completed-order.php b/woocommerce/emails/customer-completed-order.php new file mode 100644 index 0000000..624eda5 --- /dev/null +++ b/woocommerce/emails/customer-completed-order.php @@ -0,0 +1,62 @@ + + + + +

    + + + +

    get_order_number(); ?>

    + + + + + + + + + + + email_order_items_table( true, false, true ); ?> + + + get_order_item_totals() ) { + $i = 0; + foreach ( $totals as $total ) { + $i++; + ?> + + + + +
    + + + + + +

    + +billing_email) : ?> +

    billing_email; ?>

    + +billing_phone) : ?> +

    billing_phone; ?>

    + + + $order ) ); ?> + + \ No newline at end of file diff --git a/woocommerce/emails/customer-invoice.php b/woocommerce/emails/customer-invoice.php new file mode 100644 index 0000000..12ad710 --- /dev/null +++ b/woocommerce/emails/customer-invoice.php @@ -0,0 +1,67 @@ + + + + +has_status( 'pending' ) ) : ?> + +

    get_checkout_payment_url() ) . '">' . __( 'pay', 'woocommerce' ) . '' ); ?>

    + + + + + +

    get_order_number(); ?> (%s', date_i18n( 'c', strtotime( $order->order_date ) ), date_i18n( wc_date_format(), strtotime( $order->order_date ) ) ); ?>)

    + + + + + + + + + + + get_status() ) { + case "completed" : + echo $order->email_order_items_table( $order->is_download_permitted(), false, true ); + break; + case "processing" : + echo $order->email_order_items_table( $order->is_download_permitted(), true, true ); + break; + default : + echo $order->email_order_items_table( $order->is_download_permitted(), true, false ); + break; + } + ?> + + + get_order_item_totals() ) { + $i = 0; + foreach ( $totals as $total ) { + $i++; + ?> + + + + +
    + + + + + + \ No newline at end of file diff --git a/woocommerce/emails/customer-new-account.php b/woocommerce/emails/customer-new-account.php new file mode 100644 index 0000000..b8256ae --- /dev/null +++ b/woocommerce/emails/customer-new-account.php @@ -0,0 +1,24 @@ + + + + +

    %s.", 'woocommerce' ), esc_html( $blogname ), esc_html( $user_login ) ); ?>

    + + + +

    %s", 'woocommerce' ), esc_html( $user_pass ) ); ?>

    + + + +

    + + \ No newline at end of file diff --git a/woocommerce/emails/customer-note.php b/woocommerce/emails/customer-note.php new file mode 100644 index 0000000..c2b162c --- /dev/null +++ b/woocommerce/emails/customer-note.php @@ -0,0 +1,66 @@ + + + + +

    + +
    + +

    + + + +

    get_order_number(); ?>

    + + + + + + + + + + + email_order_items_table( $order->is_download_permitted(), true ); ?> + + + get_order_item_totals() ) { + $i = 0; + foreach ( $totals as $total ) { + $i++; + ?> + + + + +
    + + + + + +

    + +billing_email) : ?> +

    billing_email; ?>

    + +billing_phone) : ?> +

    billing_phone; ?>

    + + + $order ) ); ?> + + \ No newline at end of file diff --git a/woocommerce/emails/customer-processing-order.php b/woocommerce/emails/customer-processing-order.php new file mode 100644 index 0000000..9086b4d --- /dev/null +++ b/woocommerce/emails/customer-processing-order.php @@ -0,0 +1,62 @@ + + + + +

    + + + +

    get_order_number(); ?>

    + + + + + + + + + + + email_order_items_table( $order->is_download_permitted(), true, $order->has_status( 'processing' ) ); ?> + + + get_order_item_totals() ) { + $i = 0; + foreach ( $totals as $total ) { + $i++; + ?> + + + + +
    + + + + + +

    + +billing_email) : ?> +

    billing_email; ?>

    + +billing_phone) : ?> +

    billing_phone; ?>

    + + + $order ) ); ?> + + \ No newline at end of file diff --git a/woocommerce/emails/customer-reset-password.php b/woocommerce/emails/customer-reset-password.php new file mode 100644 index 0000000..0629173 --- /dev/null +++ b/woocommerce/emails/customer-reset-password.php @@ -0,0 +1,24 @@ + + + + +

    +

    +

    +

    +

    + + +

    +

    + + \ No newline at end of file diff --git a/woocommerce/emails/email-addresses.php b/woocommerce/emails/email-addresses.php new file mode 100644 index 0000000..16e851e --- /dev/null +++ b/woocommerce/emails/email-addresses.php @@ -0,0 +1,40 @@ + + + + + + + needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) : ?> + + + + + + + +
    + +

    + +

    get_formatted_billing_address(); ?>

    + +
    + +

    + +

    + +
    diff --git a/woocommerce/emails/email-footer.php b/woocommerce/emails/email-footer.php new file mode 100644 index 0000000..8ad7b4f --- /dev/null +++ b/woocommerce/emails/email-footer.php @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/woocommerce/emails/email-header.php b/woocommerce/emails/email-header.php new file mode 100644 index 0000000..5dc7932 --- /dev/null +++ b/woocommerce/emails/email-header.php @@ -0,0 +1,116 @@ + + + + + + <?php echo get_bloginfo( 'name' ); ?> + + +
    + + +
    +
    + ' . get_bloginfo( 'name' ) . '

    '; + } + ?> +
    + + + + + +
    + + + + + +
    +

    + +
    + +
    + + + +
    + + + + + + + + + + id, '_purchase_note', true ) ) : ?> + + + + + + diff --git a/woocommerce/emails/plain/admin-new-order.php b/woocommerce/emails/plain/admin-new-order.php new file mode 100644 index 0000000..50d1e07 --- /dev/null +++ b/woocommerce/emails/plain/admin-new-order.php @@ -0,0 +1,51 @@ +billing_first_name . ' ' . $order->billing_last_name ) . "\n\n"; + +echo "****************************************************\n\n"; + +do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text ); + +echo sprintf( __( 'Order number: %s', 'woocommerce'), $order->get_order_number() ) . "\n"; +echo sprintf( __( 'Order link: %s', 'woocommerce'), admin_url( 'post.php?post=' . $order->id . '&action=edit' ) ) . "\n"; +echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $order->order_date ) ) ) . "\n"; + +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text ); + +echo "\n" . $order->email_order_items_table( false, true, '', '', '', true ); + +echo "----------\n\n"; + +if ( $totals = $order->get_order_item_totals() ) { + foreach ( $totals as $total ) { + echo $total['label'] . "\t " . $total['value'] . "\n"; + } +} + +echo "\n****************************************************\n\n"; + +do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text ); + +echo __( 'Customer details', 'woocommerce' ) . "\n"; + +if ( $order->billing_email ) + echo __( 'Email:', 'woocommerce' ); echo $order->billing_email . "\n"; + +if ( $order->billing_phone ) + echo __( 'Tel:', 'woocommerce' ); ?> billing_phone . "\n"; + +wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order ) ); + +echo "\n****************************************************\n\n"; + +echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); \ No newline at end of file diff --git a/woocommerce/emails/plain/customer-completed-order.php b/woocommerce/emails/plain/customer-completed-order.php new file mode 100644 index 0000000..cf346ee --- /dev/null +++ b/woocommerce/emails/plain/customer-completed-order.php @@ -0,0 +1,50 @@ +get_order_number() ) . "\n"; +echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( wc_date_format(), strtotime( $order->order_date ) ) ) . "\n"; + +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text ); + +echo "\n" . $order->email_order_items_table( true, false, true, '', '', true ); + +echo "----------\n\n"; + +if ( $totals = $order->get_order_item_totals() ) { + foreach ( $totals as $total ) { + echo $total['label'] . "\t " . $total['value'] . "\n"; + } +} + +echo "\n****************************************************\n\n"; + +do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text ); + +echo __( 'Your details', 'woocommerce' ) . "\n\n"; + +if ( $order->billing_email ) + echo __( 'Email:', 'woocommerce' ); echo $order->billing_email . "\n"; + +if ( $order->billing_phone ) + echo __( 'Tel:', 'woocommerce' ); ?> billing_phone . "\n"; + +wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order ) ); + +echo "\n****************************************************\n\n"; + +echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); \ No newline at end of file diff --git a/woocommerce/emails/plain/customer-invoice.php b/woocommerce/emails/plain/customer-invoice.php new file mode 100644 index 0000000..e93eada --- /dev/null +++ b/woocommerce/emails/plain/customer-invoice.php @@ -0,0 +1,51 @@ +has_status( 'pending' ) ) + echo sprintf( __( 'An order has been created for you on %s. To pay for this order please use the following link: %s', 'woocommerce' ), get_bloginfo( 'name' ), $order->get_checkout_payment_url() ) . "\n\n"; + +echo "****************************************************\n\n"; + +do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text ); + +echo sprintf( __( 'Order number: %s', 'woocommerce'), $order->get_order_number() ) . "\n"; +echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( wc_date_format(), strtotime( $order->order_date ) ) ) . "\n"; + +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text ); + +echo "\n"; + +switch ( $order->get_status() ) { + case "completed" : + echo $order->email_order_items_table( $order->is_download_permitted(), false, true, '', '', true ); + break; + case "processing" : + echo $order->email_order_items_table( $order->is_download_permitted(), true, true, '', '', true ); + break; + default : + echo $order->email_order_items_table( $order->is_download_permitted(), true, false, '', '', true ); + break; +} + +echo "----------\n\n"; + +if ( $totals = $order->get_order_item_totals() ) { + foreach ( $totals as $total ) { + echo $total['label'] . "\t " . $total['value'] . "\n"; + } +} + +echo "\n****************************************************\n\n"; + +do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text ); + +echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); \ No newline at end of file diff --git a/woocommerce/emails/plain/customer-new-account.php b/woocommerce/emails/plain/customer-new-account.php new file mode 100644 index 0000000..cffe438 --- /dev/null +++ b/woocommerce/emails/plain/customer-new-account.php @@ -0,0 +1,22 @@ +%s.", 'woocommerce' ), $blogname, $user_login ) . "\n\n"; + +if ( get_option( 'woocommerce_registration_generate_password' ) === 'yes' && $password_generated ) + echo sprintf( __( "Your password is %s.", 'woocommerce' ), $user_pass ) . "\n\n"; + +echo sprintf( __( 'You can access your account area to view your orders and change your password here: %s.', 'woocommerce' ), get_permalink( wc_get_page_id( 'myaccount' ) ) ) . "\n\n"; + +echo "\n****************************************************\n\n"; + +echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); \ No newline at end of file diff --git a/woocommerce/emails/plain/customer-note.php b/woocommerce/emails/plain/customer-note.php new file mode 100644 index 0000000..972d0fb --- /dev/null +++ b/woocommerce/emails/plain/customer-note.php @@ -0,0 +1,58 @@ +get_order_number() ) . "\n"; +echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( wc_date_format(), strtotime( $order->order_date ) ) ) . "\n"; + +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text ); + +echo "\n" . $order->email_order_items_table( $order->is_download_permitted(), true, '', '', '', true ); + +echo "----------\n\n"; + +if ( $totals = $order->get_order_item_totals() ) { + foreach ( $totals as $total ) { + echo $total['label'] . "\t " . $total['value'] . "\n"; + } +} + +echo "\n****************************************************\n\n"; + +do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text ); + +echo __( 'Your details', 'woocommerce' ) . "\n\n"; + +if ( $order->billing_email ) + echo __( 'Email:', 'woocommerce' ); echo $order->billing_email . "\n"; + +if ( $order->billing_phone ) + echo __( 'Tel:', 'woocommerce' ); ?> billing_phone . "\n"; + +wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order ) ); + +echo "\n****************************************************\n\n"; + +echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); \ No newline at end of file diff --git a/woocommerce/emails/plain/customer-processing-order.php b/woocommerce/emails/plain/customer-processing-order.php new file mode 100644 index 0000000..fe0399c --- /dev/null +++ b/woocommerce/emails/plain/customer-processing-order.php @@ -0,0 +1,50 @@ +get_order_number() ) . "\n"; +echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( wc_date_format(), strtotime( $order->order_date ) ) ) . "\n"; + +do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text ); + +echo "\n" . $order->email_order_items_table( $order->is_download_permitted(), true, $order->has_status( 'processing' ), '', '', true ); + +echo "----------\n\n"; + +if ( $totals = $order->get_order_item_totals() ) { + foreach ( $totals as $total ) { + echo $total['label'] . "\t " . $total['value'] . "\n"; + } +} + +echo "\n****************************************************\n\n"; + +do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text ); + +echo __( 'Your details', 'woocommerce' ) . "\n\n"; + +if ( $order->billing_email ) + echo __( 'Email:', 'woocommerce' ); echo $order->billing_email . "\n"; + +if ( $order->billing_phone ) + echo __( 'Tel:', 'woocommerce' ); ?> billing_phone . "\n"; + +wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order ) ); + +echo "\n****************************************************\n\n"; + +echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); \ No newline at end of file diff --git a/woocommerce/emails/plain/customer-reset-password.php b/woocommerce/emails/plain/customer-reset-password.php new file mode 100644 index 0000000..7b2e29a --- /dev/null +++ b/woocommerce/emails/plain/customer-reset-password.php @@ -0,0 +1,23 @@ + $reset_key, 'login' => $user_login ), wc_get_endpoint_url( 'lost-password', '', get_permalink( wc_get_page_id( 'myaccount' ) ) ) ) ) . "\r\n"; + +echo "\n****************************************************\n\n"; + +echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); diff --git a/woocommerce/emails/plain/email-addresses.php b/woocommerce/emails/plain/email-addresses.php new file mode 100644 index 0000000..75659b9 --- /dev/null +++ b/woocommerce/emails/plain/email-addresses.php @@ -0,0 +1,22 @@ +#i', "\n", $order->get_formatted_billing_address() ) . "\n\n"; + +if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) { + + echo __( 'Shipping address', 'woocommerce' ) . ":\n"; + + echo preg_replace( '##i', "\n", $shipping ) . "\n\n"; +} diff --git a/woocommerce/emails/plain/email-order-items.php b/woocommerce/emails/plain/email-order-items.php new file mode 100644 index 0000000..4970c0a --- /dev/null +++ b/woocommerce/emails/plain/email-order-items.php @@ -0,0 +1,66 @@ + $item ) : + $_product = apply_filters( 'woocommerce_order_item_product', $order->get_product_from_item( $item ), $item ); + $item_meta = new WC_Order_Item_Meta( $item['item_meta'], $_product ); + + // Title + echo apply_filters( 'woocommerce_order_item_name', $item['name'], $item ); + + // SKU + if ( $show_sku && $_product->get_sku() ) { + echo ' (#' . $_product->get_sku() . ')'; + } + + // allow other plugins to add additional product information here + do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order ); + + // Variation + echo $item_meta->meta ? "\n" . $item_meta->display( true, true ) : ''; + + // Quantity + echo "\n" . sprintf( __( 'Quantity: %s', 'woocommerce' ), $item['qty'] ); + + // Cost + echo "\n" . sprintf( __( 'Cost: %s', 'woocommerce' ), $order->get_formatted_line_subtotal( $item ) ); + + // Download URLs + if ( $show_download_links && $_product->exists() && $_product->is_downloadable() ) { + $download_files = $order->get_item_downloads( $item ); + $i = 0; + + foreach ( $download_files as $download_id => $file ) { + $i++; + + if ( count( $download_files ) > 1 ) { + $prefix = sprintf( __( 'Download %d', 'woocommerce' ), $i ); + } elseif ( $i == 1 ) { + $prefix = __( 'Download', 'woocommerce' ); + } + + echo "\n" . $prefix . '(' . esc_html( $file['name'] ) . '): ' . esc_url( $file['download_url'] ); + } + } + + // allow other plugins to add additional product information here + do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order ); + + // Note + if ( $show_purchase_note && $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) { + echo "\n" . do_shortcode( wp_kses_post( $purchase_note ) ); + } + + echo "\n\n"; + +endforeach; diff --git a/woocommerce/global/breadcrumb.php b/woocommerce/global/breadcrumb.php new file mode 100644 index 0000000..54dedab --- /dev/null +++ b/woocommerce/global/breadcrumb.php @@ -0,0 +1,221 @@ +post_name ) && get_option( 'page_on_front' ) != $shop_page_id ) { + $prepend = $before . '' . $shop_page->post_title . ' ' . $after . $delimiter; +} + +if ( ( ! is_front_page() && ! ( is_post_type_archive() && get_option( 'page_on_front' ) == wc_get_page_id( 'shop' ) ) ) || is_paged() ) { + + echo $wrap_before; + + if ( ! empty( $home ) ) { + echo $before . '' . $home . '' . $after . $delimiter; + } + + if ( is_home() ) { + + echo $before . single_post_title('', false) . $after; + + } elseif ( is_category() ) { + + $cat_obj = $wp_query->get_queried_object(); + $this_category = get_category( $cat_obj->term_id ); + + if ( 0 != $this_category->parent ) { + $parent_category = get_category( $this_category->parent ); + if ( ( $parents = get_category_parents( $parent_category, TRUE, $after . $delimiter . $before ) ) && ! is_wp_error( $parents ) ) { + echo $before . rtrim( $parents, $after . $delimiter . $before ) . $after . $delimiter; + } + } + + echo $before . single_cat_title( '', false ) . $after; + + } elseif ( is_tax( 'product_cat' ) ) { + + echo $prepend; + + $current_term = $wp_query->get_queried_object(); + + $ancestors = array_reverse( get_ancestors( $current_term->term_id, 'product_cat' ) ); + + foreach ( $ancestors as $ancestor ) { + $ancestor = get_term( $ancestor, 'product_cat' ); + + echo $before . '' . esc_html( $ancestor->name ) . '' . $after . $delimiter; + } + + echo $before . esc_html( $current_term->name ) . $after; + + } elseif ( is_tax( 'product_tag' ) ) { + + $queried_object = $wp_query->get_queried_object(); + echo $prepend . $before . __( 'Products tagged “', 'woocommerce' ) . $queried_object->name . '”' . $after; + + } elseif ( is_day() ) { + + echo $before . '' . get_the_time( 'Y' ) . '' . $after . $delimiter; + echo $before . '' . get_the_time( 'F' ) . '' . $after . $delimiter; + echo $before . get_the_time( 'd' ) . $after; + + } elseif ( is_month() ) { + + echo $before . '' . get_the_time( 'Y' ) . '' . $after . $delimiter; + echo $before . get_the_time( 'F' ) . $after; + + } elseif ( is_year() ) { + + echo $before . get_the_time( 'Y' ) . $after; + + } elseif ( is_post_type_archive( 'product' ) && get_option( 'page_on_front' ) !== $shop_page_id ) { + + $_name = wc_get_page_id( 'shop' ) ? get_the_title( wc_get_page_id( 'shop' ) ) : ''; + + if ( ! $_name ) { + $product_post_type = get_post_type_object( 'product' ); + $_name = $product_post_type->labels->singular_name; + } + + if ( is_search() ) { + + echo $before . '' . $_name . '' . $delimiter . __( 'Search results for “', 'woocommerce' ) . get_search_query() . '”' . $after; + + } elseif ( is_paged() ) { + + echo $before . '' . $_name . '' . $after; + + } else { + + echo $before . $_name . $after; + + } + + } elseif ( is_single() && ! is_attachment() ) { + + if ( 'product' == get_post_type() ) { + + echo $prepend; + + if ( $terms = wc_get_product_terms( $post->ID, 'product_cat', array( 'orderby' => 'parent', 'order' => 'DESC' ) ) ) { + $main_term = $terms[0]; + $ancestors = get_ancestors( $main_term->term_id, 'product_cat' ); + $ancestors = array_reverse( $ancestors ); + + foreach ( $ancestors as $ancestor ) { + $ancestor = get_term( $ancestor, 'product_cat' ); + + if ( ! is_wp_error( $ancestor ) && $ancestor ) { + echo $before . '' . $ancestor->name . '' . $after . $delimiter; + } + } + + echo $before . '' . $main_term->name . '' . $after . $delimiter; + + } + + echo $before . get_the_title() . $after; + + } elseif ( 'post' != get_post_type() ) { + + $post_type = get_post_type_object( get_post_type() ); + $slug = $post_type->rewrite; + echo $before . '' . $post_type->labels->singular_name . '' . $after . $delimiter; + echo $before . get_the_title() . $after; + + } else { + + $cat = current( get_the_category() ); + if ( ( $parents = get_category_parents( $cat, TRUE, $after . $delimiter . $before ) ) && ! is_wp_error( $parents ) ) { + echo $before . rtrim( $parents, $after . $delimiter . $before ) . $after . $delimiter; + } + echo $before . get_the_title() . $after; + + } + + } elseif ( is_404() ) { + + echo $before . __( 'Error 404', 'woocommerce' ) . $after; + + } elseif ( ! is_single() && ! is_page() && get_post_type() != 'post' ) { + + $post_type = get_post_type_object( get_post_type() ); + + if ( $post_type ) { + echo $before . $post_type->labels->singular_name . $after; + } + + } elseif ( is_attachment() ) { + + $parent = get_post( $post->post_parent ); + $cat = get_the_category( $parent->ID ); + $cat = $cat[0]; + if ( ( $parents = get_category_parents( $cat, TRUE, $after . $delimiter . $before ) ) && ! is_wp_error( $parents ) ) { + echo $before . rtrim( $parents, $after . $delimiter . $before ) . $after . $delimiter; + } + echo $before . '' . $parent->post_title . '' . $after . $delimiter; + echo $before . get_the_title() . $after; + + } elseif ( is_page() && ! $post->post_parent ) { + + echo $before . get_the_title() . $after; + + } elseif ( is_page() && $post->post_parent ) { + + $parent_id = $post->post_parent; + $breadcrumbs = array(); + + while ( $parent_id ) { + $page = get_post( $parent_id ); + $breadcrumbs[] = '' . get_the_title( $page->ID ) . ''; + $parent_id = $page->post_parent; + } + + $breadcrumbs = array_reverse( $breadcrumbs ); + + foreach ( $breadcrumbs as $crumb ) { + echo $before . $crumb . $after . $delimiter; + } + + echo $before . get_the_title() . $after; + + } elseif ( is_search() ) { + + echo $before . __( 'Search results for “', 'woocommerce' ) . get_search_query() . '”' . $after; + + } elseif ( is_tag() ) { + + echo $before . __( 'Posts tagged “', 'woocommerce' ) . single_tag_title( '', false ) . '”' . $after; + + } elseif ( is_author() ) { + + $userdata = get_userdata( $author ); + echo $before . __( 'Author:', 'woocommerce' ) . ' ' . $userdata->display_name . $after; + + } + + if ( get_query_var( 'paged' ) ) { + echo ' (' . __( 'Page', 'woocommerce' ) . ' ' . get_query_var( 'paged' ) . ')'; + } + + echo $wrap_after; + +} diff --git a/woocommerce/global/form-login.php b/woocommerce/global/form-login.php new file mode 100644 index 0000000..2cce68d --- /dev/null +++ b/woocommerce/global/form-login.php @@ -0,0 +1,49 @@ + +> + + + + + +

    + + +

    +

    + + +

    +
    + + + +

    + + + + +

    +

    + +

    + +
    + + + + \ No newline at end of file diff --git a/woocommerce/global/quantity-input.php b/woocommerce/global/quantity-input.php new file mode 100644 index 0000000..add5e76 --- /dev/null +++ b/woocommerce/global/quantity-input.php @@ -0,0 +1,12 @@ + +
    min="" max="" name="" value="" title="" class="input-text qty text" size="4" />
    \ No newline at end of file diff --git a/woocommerce/global/sidebar.php b/woocommerce/global/sidebar.php new file mode 100644 index 0000000..8f70c8b --- /dev/null +++ b/woocommerce/global/sidebar.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/woocommerce/global/wrapper-end.php b/woocommerce/global/wrapper-end.php new file mode 100644 index 0000000..8786145 --- /dev/null +++ b/woocommerce/global/wrapper-end.php @@ -0,0 +1,31 @@ +'; + break; + case 'twentytwelve' : + echo ''; + break; + case 'twentythirteen' : + echo ''; + break; + case 'twentyfourteen' : + echo ''; + get_sidebar( 'content' ); + break; + default : + echo ''; + break; +} \ No newline at end of file diff --git a/woocommerce/global/wrapper-start.php b/woocommerce/global/wrapper-start.php new file mode 100644 index 0000000..992d3a3 --- /dev/null +++ b/woocommerce/global/wrapper-start.php @@ -0,0 +1,30 @@ +
    '; + break; + case 'twentytwelve' : + echo '
    '; + break; + case 'twentythirteen' : + echo '
    '; + break; + case 'twentyfourteen' : + echo '
    '; + break; + default : + echo '
    '; + break; +} \ No newline at end of file diff --git a/woocommerce/loop/add-to-cart.php b/woocommerce/loop/add-to-cart.php new file mode 100644 index 0000000..67ce1f6 --- /dev/null +++ b/woocommerce/loop/add-to-cart.php @@ -0,0 +1,24 @@ +%s', + esc_url( $product->add_to_cart_url() ), + esc_attr( $product->id ), + esc_attr( $product->get_sku() ), + esc_attr( isset( $quantity ) ? $quantity : 1 ), + $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', + esc_attr( $product->product_type ), + esc_html( $product->add_to_cart_text() ) + ), +$product ); diff --git a/woocommerce/loop/loop-end.php b/woocommerce/loop/loop-end.php new file mode 100644 index 0000000..98230fd --- /dev/null +++ b/woocommerce/loop/loop-end.php @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/woocommerce/loop/loop-start.php b/woocommerce/loop/loop-start.php new file mode 100644 index 0000000..b3a0cc6 --- /dev/null +++ b/woocommerce/loop/loop-start.php @@ -0,0 +1,10 @@ + +
      \ No newline at end of file diff --git a/woocommerce/loop/no-products-found.php b/woocommerce/loop/no-products-found.php new file mode 100644 index 0000000..a66e375 --- /dev/null +++ b/woocommerce/loop/no-products-found.php @@ -0,0 +1,14 @@ + +

      \ No newline at end of file diff --git a/woocommerce/loop/orderby.php b/woocommerce/loop/orderby.php new file mode 100644 index 0000000..f40e224 --- /dev/null +++ b/woocommerce/loop/orderby.php @@ -0,0 +1,33 @@ + +
      + + $val ) { + if ( 'orderby' === $key || 'submit' === $key ) { + continue; + } + if ( is_array( $val ) ) { + foreach( $val as $innerVal ) { + echo ''; + } + } else { + echo ''; + } + } + ?> + diff --git a/woocommerce/loop/pagination.php b/woocommerce/loop/pagination.php new file mode 100644 index 0000000..4739bf9 --- /dev/null +++ b/woocommerce/loop/pagination.php @@ -0,0 +1,34 @@ +max_num_pages <= 1 ) { + return; +} +?> + diff --git a/woocommerce/loop/price.php b/woocommerce/loop/price.php new file mode 100644 index 0000000..d20b3d0 --- /dev/null +++ b/woocommerce/loop/price.php @@ -0,0 +1,17 @@ + + +get_price_html() ) : ?> + + \ No newline at end of file diff --git a/woocommerce/loop/rating.php b/woocommerce/loop/rating.php new file mode 100644 index 0000000..6a7b682 --- /dev/null +++ b/woocommerce/loop/rating.php @@ -0,0 +1,20 @@ + + +get_rating_html() ) : ?> + + \ No newline at end of file diff --git a/woocommerce/loop/result-count.php b/woocommerce/loop/result-count.php new file mode 100644 index 0000000..5fd93ea --- /dev/null +++ b/woocommerce/loop/result-count.php @@ -0,0 +1,35 @@ + +

      + get( 'paged' ) ); + $per_page = $wp_query->get( 'posts_per_page' ); + $total = $wp_query->found_posts; + $first = ( $per_page * $paged ) - $per_page + 1; + $last = min( $total, $wp_query->get( 'posts_per_page' ) * $paged ); + + if ( 1 == $total ) { + _e( 'Showing the single result', 'woocommerce' ); + } elseif ( $total <= $per_page || -1 == $per_page ) { + printf( __( 'Showing all %d results', 'woocommerce' ), $total ); + } else { + printf( _x( 'Showing %1$d–%2$d of %3$d results', '%1$d = first, %2$d = last, %3$d = total', 'woocommerce' ), $first, $last, $total ); + } + ?> +

      diff --git a/woocommerce/loop/sale-flash.php b/woocommerce/loop/sale-flash.php new file mode 100644 index 0000000..f197f2b --- /dev/null +++ b/woocommerce/loop/sale-flash.php @@ -0,0 +1,18 @@ + +is_on_sale() ) : ?> + + ' . __( 'Sale!', 'woocommerce' ) . '', $post, $product ); ?> + + \ No newline at end of file diff --git a/woocommerce/myaccount/form-add-payment-method.php b/woocommerce/myaccount/form-add-payment-method.php new file mode 100644 index 0000000..b5f2104 --- /dev/null +++ b/woocommerce/myaccount/form-add-payment-method.php @@ -0,0 +1,54 @@ + +
      +
      +
        + payment_gateways->get_available_payment_gateways() ) { + // Chosen Method + if ( sizeof( $available_gateways ) ) + current( $available_gateways )->set_current(); + + foreach ( $available_gateways as $gateway ) { + ?> +
      • + chosen, true ); ?> /> + + has_fields() || $gateway->get_description() ) { + echo ''; + } + ?> +
      • + ' . __( 'Sorry, it seems that there are no payment methods which support adding a new payment method. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) . '

        '; + + } + ?> +
      + +
      + + + +
      + +
      + + diff --git a/woocommerce/myaccount/form-edit-account.php b/woocommerce/myaccount/form-edit-account.php new file mode 100644 index 0000000..21c3ab2 --- /dev/null +++ b/woocommerce/myaccount/form-edit-account.php @@ -0,0 +1,65 @@ + + + + +
      + + + +

      + + +

      +

      + + +

      +
      + +

      + + +

      + +
      + + +

      + + +

      +

      + + +

      +

      + + +

      +
      +
      + + + +

      + + + +

      + + + + diff --git a/woocommerce/myaccount/form-edit-address.php b/woocommerce/myaccount/form-edit-address.php new file mode 100644 index 0000000..4cbfc6b --- /dev/null +++ b/woocommerce/myaccount/form-edit-address.php @@ -0,0 +1,51 @@ + + + + + + + + + + +
      + +

      + + + + $field ) : ?> + + + + + + + +

      + + + +

      + + + + diff --git a/woocommerce/myaccount/form-login.php b/woocommerce/myaccount/form-login.php new file mode 100644 index 0000000..3706f16 --- /dev/null +++ b/woocommerce/myaccount/form-login.php @@ -0,0 +1,114 @@ + + + + + + + + +
      + +
      + + + +

      + + + + + +

      + + +

      +

      + + +

      + + + +

      + + + +

      +

      + +

      + + + + + + + +
      + +
      + +

      + +
      + + + + + +

      + + +

      + + + +

      + + +

      + + + +

      + + +

      + + + + +
      + + + + +

      + + +

      + + + + + +
      + +
      + + + diff --git a/woocommerce/myaccount/form-lost-password.php b/woocommerce/myaccount/form-lost-password.php new file mode 100644 index 0000000..7362398 --- /dev/null +++ b/woocommerce/myaccount/form-lost-password.php @@ -0,0 +1,48 @@ + + + + +
      + + + +

      + +

      + + + +

      + +

      + + +

      +

      + + +

      + + + + + + +
      + +

      + + + \ No newline at end of file diff --git a/woocommerce/myaccount/my-account.php b/woocommerce/myaccount/my-account.php new file mode 100644 index 0000000..148398d --- /dev/null +++ b/woocommerce/myaccount/my-account.php @@ -0,0 +1,38 @@ + + +

      + %1$s (not %1$s? Sign out).', 'woocommerce' ) . ' ', + $current_user->display_name, + wp_logout_url( get_permalink( wc_get_page_id( 'myaccount' ) ) ) + ); + + printf( __( 'From your account dashboard you can view your recent orders, manage your shipping and billing addresses and edit your password and account details.', 'woocommerce' ), + wc_customer_edit_account_url() + ); + ?> +

      + + + + + + $order_count ) ); ?> + + + + diff --git a/woocommerce/myaccount/my-address.php b/woocommerce/myaccount/my-address.php new file mode 100644 index 0000000..653a65b --- /dev/null +++ b/woocommerce/myaccount/my-address.php @@ -0,0 +1,73 @@ + __( 'Billing Address', 'woocommerce' ), + 'shipping' => __( 'Shipping Address', 'woocommerce' ) + ), $customer_id ); +} else { + $page_title = apply_filters( 'woocommerce_my_account_my_address_title', __( 'My Address', 'woocommerce' ) ); + $get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array( + 'billing' => __( 'Billing Address', 'woocommerce' ) + ), $customer_id ); +} + +$col = 1; +?> + +

      + +

      + +

      + +'; ?> + + $title ) : ?> + +
      +
      +

      + +
      +
      + get_user_meta( $customer_id, $name . '_first_name', true ), + 'last_name' => get_user_meta( $customer_id, $name . '_last_name', true ), + 'company' => get_user_meta( $customer_id, $name . '_company', true ), + 'address_1' => get_user_meta( $customer_id, $name . '_address_1', true ), + 'address_2' => get_user_meta( $customer_id, $name . '_address_2', true ), + 'city' => get_user_meta( $customer_id, $name . '_city', true ), + 'state' => get_user_meta( $customer_id, $name . '_state', true ), + 'postcode' => get_user_meta( $customer_id, $name . '_postcode', true ), + 'country' => get_user_meta( $customer_id, $name . '_country', true ) + ), $customer_id, $name ); + + $formatted_address = WC()->countries->get_formatted_address( $address ); + + if ( ! $formatted_address ) + _e( 'You have not set up this type of address yet.', 'woocommerce' ); + else + echo $formatted_address; + ?> +
      +
      + + + +'; ?> diff --git a/woocommerce/myaccount/my-downloads.php b/woocommerce/myaccount/my-downloads.php new file mode 100644 index 0000000..8295a74 --- /dev/null +++ b/woocommerce/myaccount/my-downloads.php @@ -0,0 +1,41 @@ +customer->get_downloadable_products() ) : ?> + + + +

      + +
        + +
      • + ' . sprintf( _n( '%s download remaining', '%s downloads remaining', $download['downloads_remaining'], 'woocommerce' ), $download['downloads_remaining'] ) . ' ', $download ); + + echo apply_filters( 'woocommerce_available_download_link', '' . $download['download_name'] . '', $download ); + + do_action( 'woocommerce_available_download_end', $download ); + ?> +
      • + +
      + + + + \ No newline at end of file diff --git a/woocommerce/myaccount/my-orders.php b/woocommerce/myaccount/my-orders.php new file mode 100644 index 0000000..4639077 --- /dev/null +++ b/woocommerce/myaccount/my-orders.php @@ -0,0 +1,99 @@ + $order_count, + 'meta_key' => '_customer_user', + 'meta_value' => get_current_user_id(), + 'post_type' => wc_get_order_types( 'view-orders' ), + 'post_status' => array_keys( wc_get_order_statuses() ) +) ) ); + +if ( $customer_orders ) : ?> + +

      + +
    +
    diff --git a/woocommerce/emails/email-order-items.php b/woocommerce/emails/email-order-items.php new file mode 100644 index 0000000..45dc1e4 --- /dev/null +++ b/woocommerce/emails/email-order-items.php @@ -0,0 +1,69 @@ + $item ) : + $_product = apply_filters( 'woocommerce_order_item_product', $order->get_product_from_item( $item ), $item ); + $item_meta = new WC_Order_Item_Meta( $item['item_meta'], $_product ); + ?> +
    get_image_id() ? current( wp_get_attachment_image_src( $_product->get_image_id(), 'thumbnail') ) : wc_placeholder_img_src() ) .'" alt="' . __( 'Product Image', 'woocommerce' ) . '" height="' . esc_attr( $image_size[1] ) . '" width="' . esc_attr( $image_size[0] ) . '" style="vertical-align:middle; margin-right: 10px;" />', $item ); + } + + // Product name + echo apply_filters( 'woocommerce_order_item_name', $item['name'], $item ); + + // SKU + if ( $show_sku && is_object( $_product ) && $_product->get_sku() ) { + echo ' (#' . $_product->get_sku() . ')'; + } + + // File URLs + if ( $show_download_links && is_object( $_product ) && $_product->exists() && $_product->is_downloadable() ) { + + $download_files = $order->get_item_downloads( $item ); + $i = 0; + + foreach ( $download_files as $download_id => $file ) { + $i++; + + if ( count( $download_files ) > 1 ) { + $prefix = sprintf( __( 'Download %d', 'woocommerce' ), $i ); + } elseif ( $i == 1 ) { + $prefix = __( 'Download', 'woocommerce' ); + } + + echo '
    ' . $prefix . ': ' . esc_html( $file['name'] ) . ''; + } + } + + // Variation + if ( $item_meta->meta ) { + echo '
    ' . nl2br( $item_meta->display( true, true ) ) . ''; + } + + ?>
    get_formatted_line_subtotal( $item ); ?>
    + + + + + + + + + + + + populate( $customer_order ); + $item_count = $order->get_item_count(); + + ?> + + + + + + + + + + diff --git a/woocommerce/myaccount/view-order.php b/woocommerce/myaccount/view-order.php new file mode 100644 index 0000000..8285a87 --- /dev/null +++ b/woocommerce/myaccount/view-order.php @@ -0,0 +1,43 @@ + + + + +

    %s was placed on %s and is currently %s.', 'woocommerce' ), $order->get_order_number(), date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ), wc_get_order_status_name( $order->get_status() ) ); ?>

    + +get_customer_order_notes() ) : + ?> +

    +
      + +
    1. +
      +
      +

      comment_date ) ); ?>

      +
      + comment_content ) ); ?> +
      +
      +
      +
      +
      +
    2. + +
    + +
      + +
    • + +
    \ No newline at end of file diff --git a/woocommerce/notices/notice.php b/woocommerce/notices/notice.php new file mode 100644 index 0000000..2f0b386 --- /dev/null +++ b/woocommerce/notices/notice.php @@ -0,0 +1,17 @@ + + + +
    + \ No newline at end of file diff --git a/woocommerce/notices/success.php b/woocommerce/notices/success.php new file mode 100644 index 0000000..5ccbdd7 --- /dev/null +++ b/woocommerce/notices/success.php @@ -0,0 +1,17 @@ + + + +
    + diff --git a/woocommerce/order/form-tracking.php b/woocommerce/order/form-tracking.php new file mode 100644 index 0000000..95304af --- /dev/null +++ b/woocommerce/order/form-tracking.php @@ -0,0 +1,26 @@ + + +
    + +

    + +

    +

    +
    + +

    + + +
    \ No newline at end of file diff --git a/woocommerce/order/order-details.php b/woocommerce/order/order-details.php new file mode 100644 index 0000000..afbc43d --- /dev/null +++ b/woocommerce/order/order-details.php @@ -0,0 +1,145 @@ + +

    + + + + + + + + + get_items() ) > 0 ) { + + foreach( $order->get_items() as $item ) { + $_product = apply_filters( 'woocommerce_order_item_product', $order->get_product_from_item( $item ), $item ); + $item_meta = new WC_Order_Item_Meta( $item['item_meta'], $_product ); + + ?> + + + + + has_status( array( 'completed', 'processing' ) ) && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) { + ?> + + + + + + + get_order_item_totals() ) foreach ( $totals as $total ) : + ?> + + + + + + +
    + is_visible() ) + echo apply_filters( 'woocommerce_order_item_name', $item['name'], $item ); + else + echo apply_filters( 'woocommerce_order_item_name', sprintf( '%s', get_permalink( $item['product_id'] ), $item['name'] ), $item ); + + echo apply_filters( 'woocommerce_order_item_quantity_html', ' ' . sprintf( '× %s', $item['qty'] ) . '', $item ); + + $item_meta->display(); + + if ( $_product && $_product->exists() && $_product->is_downloadable() && $order->is_download_permitted() ) { + + $download_files = $order->get_item_downloads( $item ); + $i = 0; + $links = array(); + + foreach ( $download_files as $download_id => $file ) { + $i++; + + $links[] = '' . sprintf( __( 'Download file%s', 'woocommerce' ), ( count( $download_files ) > 1 ? ' ' . $i . ': ' : ': ' ) ) . esc_html( $file['name'] ) . ''; + } + + echo '
    ' . implode( '
    ', $links ); + } + ?> +
    + get_formatted_line_subtotal( $item ); ?> +
    + + + +
    +

    +
    +
    +billing_email ) echo '
    ' . __( 'Email:', 'woocommerce' ) . '
    ' . $order->billing_email . '
    '; + if ( $order->billing_phone ) echo '
    ' . __( 'Telephone:', 'woocommerce' ) . '
    ' . $order->billing_phone . '
    '; + + // Additional customer details hook + do_action( 'woocommerce_order_details_after_customer_details', $order ); +?> +
    + +needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?> + +
    + +
    + + + +
    +

    +
    +
    + get_formatted_billing_address() ) _e( 'N/A', 'woocommerce' ); else echo $order->get_formatted_billing_address(); + ?> +
    + +needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?> + +
    + +
    + +
    +

    +
    +
    + get_formatted_shipping_address() ) _e( 'N/A', 'woocommerce' ); else echo $order->get_formatted_shipping_address(); + ?> +
    + +
    + +
    + + + +
    diff --git a/woocommerce/order/tracking.php b/woocommerce/order/tracking.php new file mode 100644 index 0000000..728ae06 --- /dev/null +++ b/woocommerce/order/tracking.php @@ -0,0 +1,42 @@ +get_order_number(), human_time_diff( strtotime( $order->order_date ), current_time( 'timestamp' ) ) . ' ' . __( 'ago', 'woocommerce' ), wc_get_order_status_name( $order->get_status() ) ); + +if ( $order->has_status( 'completed' ) ) $order_status_text .= ' ' . __( 'and was completed', 'woocommerce' ) . ' ' . human_time_diff( strtotime( $order->completed_date ), current_time( 'timestamp' ) ) . __( ' ago', 'woocommerce' ); + +$order_status_text .= '.'; + +echo wpautop( esc_attr( apply_filters( 'woocommerce_order_tracking_status', $order_status_text, $order ) ) ); + +$notes = $order->get_customer_order_notes(); + +if ( $notes ) : ?> +

    +
      + +
    1. +
      +
      +

      comment_date ) ); ?>

      +
      + comment_content ) ) ); ?> +
      +
      +
      +
      +
      +
    2. + +
    + + +id ); ?> diff --git a/woocommerce/single-product-reviews.php b/woocommerce/single-product-reviews.php new file mode 100644 index 0000000..0e351f5 --- /dev/null +++ b/woocommerce/single-product-reviews.php @@ -0,0 +1,97 @@ + +
    +
    +

    get_rating_count() ) ) + printf( _n( '%s review for %s', '%s reviews for %s', $count, 'woocommerce' ), $count, get_the_title() ); + else + _e( 'Reviews', 'woocommerce' ); + ?>

    + + + +
      + 'woocommerce_comments' ) ) ); ?> +
    + + 1 && get_option( 'page_comments' ) ) : + echo ''; + endif; ?> + + + +

    + + +
    + + id ) ) : ?> + +
    +
    + have_comments() ? __( 'Add a review', 'woocommerce' ) : __( 'Be the first to review', 'woocommerce' ) . ' “' . get_the_title() . '”', + 'title_reply_to' => __( 'Leave a Reply to %s', 'woocommerce' ), + 'comment_notes_before' => '', + 'comment_notes_after' => '', + 'fields' => array( + 'author' => '

    ' . ' ' . + '

    ', + 'email' => '', + ), + 'label_submit' => __( 'Submit', 'woocommerce' ), + 'logged_in_as' => '', + 'comment_field' => '' + ); + + if ( get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { + $comment_form['comment_field'] = '

    '; + } + + $comment_form['comment_field'] .= '

    '; + + comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) ); + ?> +
    +
    + + + +

    + + + +
    +
    \ No newline at end of file diff --git a/woocommerce/single-product.php b/woocommerce/single-product.php new file mode 100644 index 0000000..b5fcc1e --- /dev/null +++ b/woocommerce/single-product.php @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/woocommerce/single-product/add-to-cart/external.php b/woocommerce/single-product/add-to-cart/external.php new file mode 100644 index 0000000..1636c3a --- /dev/null +++ b/woocommerce/single-product/add-to-cart/external.php @@ -0,0 +1,19 @@ + + + + +

    + +

    + + \ No newline at end of file diff --git a/woocommerce/single-product/add-to-cart/grouped.php b/woocommerce/single-product/add-to-cart/grouped.php new file mode 100644 index 0000000..f62b1e6 --- /dev/null +++ b/woocommerce/single-product/add-to-cart/grouped.php @@ -0,0 +1,82 @@ + + +
    + + + post; + setup_postdata( $post ); + ?> + + + + + + + + + + ID ); + setup_postdata( $parent_product_post ); + ?> + +
    + is_sold_individually() || ! $product->is_purchasable() ) : ?> + + + 'quantity[' . $product_id . ']', 'input_value' => '0' ) ); + ?> + + + + + get_price_html(); + + if ( $availability = $product->get_availability() ) { + $availability_html = empty( $availability['availability'] ) ? '' : '

    ' . esc_html( $availability['availability'] ) . '

    '; + echo apply_filters( 'woocommerce_stock_html', $availability_html, $availability['availability'], $product ); + } + ?> +
    + + + + + + + + + + + + +
    + + \ No newline at end of file diff --git a/woocommerce/single-product/add-to-cart/simple.php b/woocommerce/single-product/add-to-cart/simple.php new file mode 100644 index 0000000..97c3411 --- /dev/null +++ b/woocommerce/single-product/add-to-cart/simple.php @@ -0,0 +1,49 @@ +is_purchasable() ) return; +?> + +get_availability(); + $availability_html = empty( $availability['availability'] ) ? '' : '

    ' . esc_html( $availability['availability'] ) . '

    '; + + echo apply_filters( 'woocommerce_stock_html', $availability_html, $availability['availability'], $product ); +?> + +is_in_stock() ) : ?> + + + +
    + + + is_sold_individually() ) + woocommerce_quantity_input( array( + 'min_value' => apply_filters( 'woocommerce_quantity_input_min', 1, $product ), + 'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->backorders_allowed() ? '' : $product->get_stock_quantity(), $product ) + ) ); + ?> + + + + + + +
    + + + + \ No newline at end of file diff --git a/woocommerce/single-product/add-to-cart/variable.php b/woocommerce/single-product/add-to-cart/variable.php new file mode 100644 index 0000000..7e3570a --- /dev/null +++ b/woocommerce/single-product/add-to-cart/variable.php @@ -0,0 +1,109 @@ + + + + +
    + + + + $options ) : $loop++; ?> + + + + + + +
    ' . __( 'Clear selection', 'woocommerce' ) . ''; + ?>
    + + + + + + + + + +

    + + + +
    + + diff --git a/woocommerce/single-product/meta.php b/woocommerce/single-product/meta.php new file mode 100644 index 0000000..6be8c43 --- /dev/null +++ b/woocommerce/single-product/meta.php @@ -0,0 +1,33 @@ +ID, 'product_cat' ) ); +$tag_count = sizeof( get_the_terms( $post->ID, 'product_tag' ) ); +?> +
    + + + + get_sku() || $product->is_type( 'variable' ) ) ) : ?> + + get_sku() ) ? $sku : __( 'N/A', 'woocommerce' ); ?>. + + + + get_categories( ', ', '' . _n( 'Category:', 'Categories:', $cat_count, 'woocommerce' ) . ' ', '.' ); ?> + + get_tags( ', ', '' . _n( 'Tag:', 'Tags:', $tag_count, 'woocommerce' ) . ' ', '.' ); ?> + + + +
    \ No newline at end of file diff --git a/woocommerce/single-product/price.php b/woocommerce/single-product/price.php new file mode 100644 index 0000000..57f817f --- /dev/null +++ b/woocommerce/single-product/price.php @@ -0,0 +1,23 @@ + +
    +

    get_price_html(); ?>

    + + + + + +
    \ No newline at end of file diff --git a/woocommerce/single-product/product-attributes.php b/woocommerce/single-product/product-attributes.php new file mode 100644 index 0000000..da978fc --- /dev/null +++ b/woocommerce/single-product/product-attributes.php @@ -0,0 +1,74 @@ +get_attributes(); + +ob_start(); +?> + + + enable_dimensions_display() ) : ?> + + has_weight() ) : $has_row = true; ?> + + + + + + + has_dimensions() ) : $has_row = true; ?> + + + + + + + + + + + + + + + +
    get_weight() . ' ' . esc_attr( get_option( 'woocommerce_weight_unit' ) ); ?>
    get_dimensions(); ?>
    id, $attribute['name'], array( 'fields' => 'names' ) ); + echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values ); + + } else { + + // Convert pipes to commas and display values + $values = array_map( 'trim', explode( WC_DELIMITER, $attribute['value'] ) ); + echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values ); + + } + ?>
    + +
    + + ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ), array( + 'title' => $image_title + ) ); + + $attachment_count = count( $product->get_gallery_attachment_ids() ); + + if ( $attachment_count > 0 ) { + $gallery = '[product-gallery]'; + } else { + $gallery = ''; + } + + echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '%s', $image_link, $image_title, $image ), $post->ID ); + + } else { + + echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '%s', wc_placeholder_img_src(), __( 'Placeholder', 'woocommerce' ) ), $post->ID ); + + } + ?> + + + +
    diff --git a/woocommerce/single-product/product-thumbnails.php b/woocommerce/single-product/product-thumbnails.php new file mode 100644 index 0000000..f4d1313 --- /dev/null +++ b/woocommerce/single-product/product-thumbnails.php @@ -0,0 +1,49 @@ +get_gallery_attachment_ids(); + +if ( $attachment_ids ) { + ?> +
    %s', $image_link, $image_class, $image_title, $image ), $attachment_id, $post->ID, $image_class ); + + $loop++; + } + + ?>
    + get_rating_count(); +$average = $product->get_average_rating(); + +if ( $count > 0 ) : ?> + +
    +
    + + + +
    + (' . $count . '' ); ?>) +
    + + \ No newline at end of file diff --git a/woocommerce/single-product/related.php b/woocommerce/single-product/related.php new file mode 100644 index 0000000..0cf0539 --- /dev/null +++ b/woocommerce/single-product/related.php @@ -0,0 +1,56 @@ +exists() ) { + return; +} + +$related = $product->get_related( $posts_per_page ); + +if ( sizeof( $related ) == 0 ) return; + +$args = apply_filters( 'woocommerce_related_products_args', array( + 'post_type' => 'product', + 'ignore_sticky_posts' => 1, + 'no_found_rows' => 1, + 'posts_per_page' => $posts_per_page, + 'orderby' => $orderby, + 'post__in' => $related, + 'post__not_in' => array( $product->id ) +) ); + +$products = new WP_Query( $args ); + +$woocommerce_loop['columns'] = $columns; + +if ( $products->have_posts() ) : ?> + + + +comment_ID, 'rating', true ) ); +?> +
  • id="li-comment-"> + +
    + + + +
    + + + +
    + +
    + + + + comment_approved == '0' ) : ?> + +

    + + + +

    + comment_author_email, $comment->user_id, $comment->comment_post_ID ) ) + echo '(' . __( 'verified owner', 'woocommerce' ) . ') '; + + ?>– : +

    + + + +
    +
    +
    diff --git a/woocommerce/single-product/sale-flash.php b/woocommerce/single-product/sale-flash.php new file mode 100644 index 0000000..4bc8cb4 --- /dev/null +++ b/woocommerce/single-product/sale-flash.php @@ -0,0 +1,18 @@ + +is_on_sale() ) : ?> + + ' . __( 'Sale!', 'woocommerce' ) . '', $post, $product ); ?> + + \ No newline at end of file diff --git a/woocommerce/single-product/share.php b/woocommerce/single-product/share.php new file mode 100644 index 0000000..069b860 --- /dev/null +++ b/woocommerce/single-product/share.php @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/woocommerce/single-product/short-description.php b/woocommerce/single-product/short-description.php new file mode 100644 index 0000000..1e9bb9c --- /dev/null +++ b/woocommerce/single-product/short-description.php @@ -0,0 +1,18 @@ +post_excerpt ) return; +?> +
    + post_excerpt ) ?> +
    \ No newline at end of file diff --git a/woocommerce/single-product/tabs/additional-information.php b/woocommerce/single-product/tabs/additional-information.php new file mode 100644 index 0000000..24ae890 --- /dev/null +++ b/woocommerce/single-product/tabs/additional-information.php @@ -0,0 +1,24 @@ + + + +

    + + +list_attributes(); ?> \ No newline at end of file diff --git a/woocommerce/single-product/tabs/description.php b/woocommerce/single-product/tabs/description.php new file mode 100644 index 0000000..69b163d --- /dev/null +++ b/woocommerce/single-product/tabs/description.php @@ -0,0 +1,21 @@ + + + +

    + + + diff --git a/woocommerce/single-product/tabs/tabs.php b/woocommerce/single-product/tabs/tabs.php new file mode 100644 index 0000000..9c42da1 --- /dev/null +++ b/woocommerce/single-product/tabs/tabs.php @@ -0,0 +1,41 @@ + + +
    +
      + $tab ) : ?> + +
    • + +
    • + + +
    + $tab ) : ?> + +
    + +
    + + +
    + + \ No newline at end of file diff --git a/woocommerce/single-product/title.php b/woocommerce/single-product/title.php new file mode 100644 index 0000000..90e5028 --- /dev/null +++ b/woocommerce/single-product/title.php @@ -0,0 +1,13 @@ + +

    \ No newline at end of file diff --git a/woocommerce/single-product/up-sells.php b/woocommerce/single-product/up-sells.php new file mode 100644 index 0000000..b69db7c --- /dev/null +++ b/woocommerce/single-product/up-sells.php @@ -0,0 +1,55 @@ +get_upsells(); + +if ( sizeof( $upsells ) == 0 ) return; + +$meta_query = WC()->query->get_meta_query(); + +$args = array( + 'post_type' => 'product', + 'ignore_sticky_posts' => 1, + 'no_found_rows' => 1, + 'posts_per_page' => $posts_per_page, + 'orderby' => $orderby, + 'post__in' => $upsells, + 'post__not_in' => array( $product->id ), + 'meta_query' => $meta_query +); + +$products = new WP_Query( $args ); + +$woocommerce_loop['columns'] = $columns; + +if ( $products->have_posts() ) : ?> + +
    + +

    + + + + have_posts() ) : $products->the_post(); ?> + + + + + + + +
    + +