Woocommerce Product page add on checkbox and price

Maybe this plugin will help: https://wordpress.org/plugins/woo-extra-product-options/ From what I understand, you need to add extra options to products. Variations are different versions of the same product (e.g., white or black). In the example you presented it looks like you want to add extra features to do product.

WooCommerce is_product_category() not working

is_product_category() – Check If Current Page is a Product Category Try this add_action( ‘woocommerce_single_product_summary’, ‘product_short_description_by_category’, 20 ); function product_short_description_by_category() { if( has_term( ‘cake-toppers’, ‘product_cat’ )){ echo ‘A cake topper’; } else{ echo ‘NOT CAKE TOPPER’; } }

How can I properly loop through an array gotten from my wordpress database and display it to my site

Try this global $wpdb; $results = $wpdb->get_results( “SELECT * FROM $wpdb->posts WHERE `post_type`=’post’ AND `post_status` = ‘publish’ LIMIT 20″ ); foreach ($results as $result) { echo ‘<div class=”card”> <div class=”img”> <img src=”‘.get_the_post_thumbnail_url( $result -> ID, ‘thumbnail’ ).'” alt=””> </div> <div class=”info”> <h5>’.$result->post_title.'</h5> </div> </div>’; }