AntondeVilliers
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Please let me know if this is possibleIn short yes.
You want to take a look at the WooCommerce template files to get an idea of what functions you need to call inside the WooCommerce loop.
You will be printing all the variables inside a table.
/plugins/woocommerce/templates
look at the single-product template file and the smaller sections that makes up a single product page.: /plugins/woocommerce/templates/single-product
Another approach would be to inspect how the products inside a category is listed.: look at content-single-product.php file. Here you will see the hooks that was used.
<div class="summary entry-summary"> <?php /** * woocommerce_single_product_summary hook. * * @hooked woocommerce_template_single_title - 5 * @hooked woocommerce_template_single_rating - 10 * @hooked woocommerce_template_single_price - 10 * @hooked woocommerce_template_single_excerpt - 20 * @hooked woocommerce_template_single_add_to_cart - 30 * @hooked woocommerce_template_single_meta - 40 * @hooked woocommerce_template_single_sharing - 50 */ do_action( 'woocommerce_single_product_summary' ); ?> </div><!-- .summary -->Hope that helps!
Forum: Plugins
In reply to: [WooCommerce] How to add a required custom field in cash on delivery gatewayHalo Shaikhah,
What you are looking for is this.:
and then if you want the field to be displayed in order and emails.:
Forum: Plugins
In reply to: [WooCommerce] Show products on page with one or more of the same subcategoryHi,
What you can do is create a WordPress page and add this shortcode:
Product category example: appliances
[product_category category=”appliances”]
You can also add as many shortcodes as you like.
There is also many more shortcodes to display products. Please see this page.: https://docs.woocommerce.com/document/woocommerce-shortcodes/