';
+} else {
+ echo '
';
+}
diff --git a/woocommerce/loop/add-to-cart.php b/woocommerce/loop/add-to-cart.php
new file mode 100644
index 0000000..a6f9900
--- /dev/null
+++ b/woocommerce/loop/add-to-cart.php
@@ -0,0 +1,35 @@
+%s',
+ esc_url( $product->add_to_cart_url() ),
+ esc_attr( isset( $quantity ) ? $quantity : 1 ),
+ esc_attr( $product->id ),
+ esc_attr( $product->get_sku() ),
+ // TODO: load add to cart button class from customizer?
+// esc_attr( isset( $class ) ? $class : 'button' ),
+ esc_html( $product->add_to_cart_text() )
+ ),
+ $product );
diff --git a/woocommerce/loop/orderby.php b/woocommerce/loop/orderby.php
new file mode 100644
index 0000000..0edd386
--- /dev/null
+++ b/woocommerce/loop/orderby.php
@@ -0,0 +1,45 @@
+
+
diff --git a/woocommerce/myaccount/downloads.php b/woocommerce/myaccount/downloads.php
new file mode 100644
index 0000000..6bfe3cf
--- /dev/null
+++ b/woocommerce/myaccount/downloads.php
@@ -0,0 +1,104 @@
+customer->get_downloadable_products();
+$has_downloads = (bool) $downloads;
+
+do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/woocommerce/myaccount/navigation.php b/woocommerce/myaccount/navigation.php
new file mode 100644
index 0000000..edb1a7d
--- /dev/null
+++ b/woocommerce/myaccount/navigation.php
@@ -0,0 +1,35 @@
+
+
+
+
+
diff --git a/woocommerce/myaccount/orders.php b/woocommerce/myaccount/orders.php
new file mode 100644
index 0000000..b9196dd
--- /dev/null
+++ b/woocommerce/myaccount/orders.php
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
+
+
+
+ max_num_pages ) : ?>
+
+
+
+
+
+ + |
---|
+ + + + + + + + + + + + + + + + + + + + array( + 'url' => $download['download_url'], + 'name' => __( 'Download', 'understrap' ) + ) + ); + + if ( $actions = apply_filters( 'woocommerce_account_download_actions', $actions, $download ) ) { + foreach ( $actions as $key => $action ) { + echo '' . esc_html( $action['name'] ) . ''; + } + } + ?> + + + | + +
+
+
+
+
+
+
+
+
diff --git a/woocommerce/myaccount/form-edit-account.php b/woocommerce/myaccount/form-edit-account.php
new file mode 100644
index 0000000..bf29b67
--- /dev/null
+++ b/woocommerce/myaccount/form-edit-account.php
@@ -0,0 +1,73 @@
+
+
+
+
+
diff --git a/woocommerce/myaccount/form-edit-address.php b/woocommerce/myaccount/form-edit-address.php
new file mode 100644
index 0000000..e1314f4
--- /dev/null
+++ b/woocommerce/myaccount/form-edit-address.php
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/woocommerce/myaccount/form-login.php b/woocommerce/myaccount/form-login.php
new file mode 100644
index 0000000..3e841da
--- /dev/null
+++ b/woocommerce/myaccount/form-login.php
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/woocommerce/myaccount/form-lost-password.php b/woocommerce/myaccount/form-lost-password.php
new file mode 100644
index 0000000..961d6c9
--- /dev/null
+++ b/woocommerce/myaccount/form-lost-password.php
@@ -0,0 +1,45 @@
+
+
+
diff --git a/woocommerce/myaccount/form-reset-password.php b/woocommerce/myaccount/form-reset-password.php
new file mode 100644
index 0000000..878f0d6
--- /dev/null
+++ b/woocommerce/myaccount/form-reset-password.php
@@ -0,0 +1,52 @@
+
+
+
diff --git a/woocommerce/myaccount/my-orders.php b/woocommerce/myaccount/my-orders.php
new file mode 100644
index 0000000..b49c50e
--- /dev/null
+++ b/woocommerce/myaccount/my-orders.php
@@ -0,0 +1,105 @@
+ __( 'Order', 'understrap' ),
+ 'order-date' => __( 'Date', 'understrap' ),
+ 'order-status' => __( 'Status', 'understrap' ),
+ 'order-total' => __( 'Total', 'understrap' ),
+ 'order-actions' => ' ',
+) );
+
+$customer_orders = get_posts( apply_filters( 'woocommerce_my_account_my_orders_query', array(
+ 'numberposts' => $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 ) : ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
++ + |
---|
+ + + + + + get_order_number(); ?> + + + + + + + get_status() ); ?> + + + get_formatted_order_total(), $item_count ); ?> + + + array( + 'url' => $order->get_checkout_payment_url(), + 'name' => __( 'Pay', 'understrap' ) + ), + 'view' => array( + 'url' => $order->get_view_order_url(), + 'name' => __( 'View', 'understrap' ) + ), + 'cancel' => array( + 'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ), + 'name' => __( 'Cancel', 'understrap' ) + ) + ); + + if ( ! $order->needs_payment() ) { + unset( $actions['pay'] ); + } + + if ( ! in_array( $order->get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) ) ) { + unset( $actions['cancel'] ); + } + + if ( $actions = apply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order ) ) { + foreach ( $actions as $key => $action ) { + echo '' . esc_html( $action['name'] ) . ''; + } + } + ?> + + | + +
+ + |
---|
+ + + + + + get_order_number(); ?> + + + + + + + get_status() ); ?> + + + get_formatted_order_total(), $item_count ); ?> + + + array( + 'url' => $order->get_checkout_payment_url(), + 'name' => __( 'Pay', 'understrap' ) + ), + 'view' => array( + 'url' => $order->get_view_order_url(), + 'name' => __( 'View', 'understrap' ) + ), + 'cancel' => array( + 'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ), + 'name' => __( 'Cancel', 'understrap' ) + ) + ); + + if ( ! $order->needs_payment() ) { + unset( $actions['pay'] ); + } + + if ( ! in_array( $order->get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) ) ) { + unset( $actions['cancel'] ); + } + + if ( $actions = apply_filters( 'woocommerce_my_account_my_orders_actions', $actions, $order ) ) { + foreach ( $actions as $key => $action ) { + echo '' . esc_html( $action['name'] ) . ''; + } + } + ?> + + | + +
+
+
+
+
+
+
+
+
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..0e56dd2
--- /dev/null
+++ b/woocommerce/single-product/add-to-cart/simple.php
@@ -0,0 +1,65 @@
+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() ) : ?> + + + + + + + + diff --git a/woocommerce/single-product/product-thumbnails.php b/woocommerce/single-product/product-thumbnails.php new file mode 100644 index 0000000..4d944a3 --- /dev/null +++ b/woocommerce/single-product/product-thumbnails.php @@ -0,0 +1,71 @@ +get_gallery_attachment_ids(); + +if ( $attachment_ids ) { + $loop = 0; + $columns = apply_filters( 'woocommerce_product_thumbnails_columns', 3 ); + ?> +%s',
+ esc_url( $props['url'] ),
+ esc_attr( $image_class ),
+ esc_attr( $props['caption'] ),
+ wp_get_attachment_image( $attachment_id, apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ), 0, $props )
+ ),
+ $attachment_id,
+ $post->ID,
+ esc_attr( $image_class )
+ );
+
+ $loop++;
+ }
+
+ ?>
+ get_rating_count();
+$review_count = $product->get_review_count();
+$average = $product->get_average_rating();
+
+if ( $rating_count > 0 ) : ?>
+
+
+
+
diff --git a/woocommerce/single-product/review-rating.php b/woocommerce/single-product/review-rating.php
new file mode 100644
index 0000000..5b15957
--- /dev/null
+++ b/woocommerce/single-product/review-rating.php
@@ -0,0 +1,32 @@
+comment_ID, 'rating', true ) );
+
+if ( $rating && get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { ?>
+
+
+
+post_excerpt ) {
+ return;
+}
+
+?>
+
+ post_excerpt ) ?>
+