name : 'Shop'; $cat_desc = $is_category ? $term->description : ''; $cat_count = $is_category ? $term->count : wp_count_posts('product')->publish; $cat_slug = $is_category ? $term->slug : 'shop'; // Category descriptions $cat_desc_map = [ 'drinkware' => 'Dishwasher safe. Microwave safe. HR safe (mostly). Mugs, tumblers, and vessels for the passively aggressive.', 'wall-decor' => 'Print-on-demand wall art for the soul-tired and decoratively passive-aggressive.', 'stationery' => 'For the person who plans a lot and does a little. Or the other way around.', 'apparel' => 'Wear your grievances. Business casual with a quiet fury.', 'stickers' => 'Stick your opinions where they'll be seen. Water-resistant, like your resolve.', 'accessories' => 'The extras that speak for you when you've run out of words.', ]; if (empty($cat_desc)) { $cat_desc = $cat_desc_map[$cat_slug] ?? 'The complete collection. Curated for the chronically employed.'; } // Sort order $orderby = isset($_GET['orderby']) ? sanitize_text_field($_GET['orderby']) : 'menu_order'; ?>
Shop / Departments / All Products
DEPT. ·

.

ITEMS · FREE SHIP OVER $40
Showing
query->get_catalog_ordering_args(); foreach (wc_get_catalog_ordering_args() as $val => $opt) { $current = (isset($_GET['orderby']) ? $_GET['orderby'] : get_option('woocommerce_default_catalog_orderby')) === $val; $url = add_query_arg('orderby', $val); echo '' . esc_html($opt) . ''; } ?>
get_image_id(); $img_url = $img_id ? wp_get_attachment_image_url($img_id, 'rar-product-card') : ''; $sku = $product->get_sku() ?: 'SKU-' . $product->get_id(); $cats = get_the_terms(get_the_ID(), 'product_cat'); $catname = $cats ? $cats[0]->name : ''; $price = $product->get_price_html(); $url = get_permalink(); $stock = $product->get_stock_status(); $tag = $product->is_featured() ? 'Featured' : ''; if ($product->is_on_sale()) $tag = 'Sale'; if ($stock === 'onbackorder') $tag = 'Backorder'; $stock_label = $stock === 'instock' ? 'IN STOCK' : ($stock === 'onbackorder' ? 'BACKORDER' : 'OUT OF STOCK'); $stock_color = $stock === 'instock' ? 'var(--olive-dark)' : ($stock === 'onbackorder' ? 'var(--ink-faint)' : 'var(--stamp)'); ?>
SKU
<?php echo esc_attr($product->get_name()); ?>
get_name())); ?>
get_name()); ?>
No products found. The warehouse is confused.

'; endif; ?>
Page of max_num_pages); ?>
2, 'prev_text' => '‹', 'next_text' => '›', 'screen_reader_text' => ' ', 'before_page_number' => '', 'after_page_number' => '', ]); ?>