Forum Replies Created
-
AuthorPosts
-
kayjayoneMember
Thank you for your quick reply! I’m unable to use the show all products from a category shortcode, although that is what I want to display, because created a custom product display to format the output further and display the add to cart button conditionally for this implementation (code below). I’d like to put a loop around the code below to loop through all categories and display all products in each category. Thank you for your help!
--loop all categories--
<h2>Category Name</h2>
--loop all products within category--
<div class="prodbox">
<div class="prodimg"><img src="<?php echo do_shortcode('[wp_eStore_product_details id=41 info="thumbnail_url"]')?>" alt="Tomato Empire" /></div>
<h3><?php echo do_shortcode('[wp_eStore_product_details id=41 info="name"]')?></h3>
<div class="prodinfo">
<div class="proddesc"><?php echo do_shortcode('[wp_eStore_product_details id=41 info="description"]')?></div>
<div class="prodavail">Available Quantity: <?php echo do_shortcode('[wp_eStore_product_details id=41 info="available_copies"]')?> Pounds</div>
<div class="largetext">Price per Pound: $<?php echo do_shortcode('[wp_eStore_product_details id=41 info="price"]')?></div>
<?php if (wp_emember_is_member_logged_in()) { echo do_shortcode('[wp_eStore_add_to_cart id=41]'); }?>
</div><!--prodinfo-->
</div><!--prodbox-->
--end loops--
-
AuthorPosts