leoskelter
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [WooCommerce] archive pagethe working example…
<?php $parentid = get_queried_object_id(); $args = array( 'parent' => $parentid ); $terms = get_terms( 'product_cat', $args );?> <div class="product-cats-arch"> <?php woocommerce_breadcrumb(); ?> <?php if ( $terms ) { ?> <?php foreach ( $terms as $term ) { ?> <section class="section-cat"> <h2> <?php echo $term->name; ?> </h2> <ul> <?php $query_args = array( 'post__not_in' => array( get_the_ID() ), 'posts_per_page' => -1, 'no_found_rows' => 1, 'post_status' => 'publish', 'post_type' => 'product', 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'id', 'terms' => $term->term_id, ))); $wooprods = get_posts($query_args); foreach ($wooprods as $dprod) { $product = get_product($dprod->ID); ?> <li class="product type-product"> <a>" class="woocommerce-LoopProduct-link"> <?php echo $product->get_image('shop_catalog'); ?> <h3><?php echo $dprod->post_title; ?></h3> </a> <?php echo do_shortcode('[add_to_cart id="'.$dprod->ID.'"]'); ?> <?php } ?> </ul> </section> <?php } ?> <?php } ?>
Thank you for your reply.
this is what i have in user notification.
Please wait for approval. Below are the details.|DETAILS|
|EXTRAS|
|DISCOUNT|
|COUPON|
|FEES|
|FORM|
|BILLING ADDRESS|
|SHIPPING ADDRESS|
does the system allow me to do something like this example ?
“hello { costumer name }” your phone is {phone number} order id is { orderId }
—————————————————————————-
And another questions.I can create default hours and default prices for the all the days in a week.
for the weekends i would like to create diffrent prices and hour defaults.
is it possible ?
Thanks again.
Viewing 2 replies - 1 through 2 (of 2 total)