How To Add a Custom Page to the “My Account” Area in WooCommerce

Since WooCommerce v2.6.0, the My Account area in WooCommerce has utilised what is called “endpoints”. This means that there is only 1 page set up in WordPress (something like “/my-account”), and the subpages of that are dynamic loaded (like “/my-account/orders”). It’s a good method for WooCommerce to have implemented, as it means you do not … Continue reading How To Add a Custom Page to the “My Account” Area in WooCommerce

How to run curl in windows for making web apps

Installing the cURL Command-Line Tool on Windows This tutorial shows you how to access Oracle Messaging Cloud Service via the REST interface by using the cURL command-line tool. cURL is free, open software that runs under various operating systems. This tutorial demonstrates cURL on a Windows 64-bit operating system that is enabled for the secure … Continue reading How to run curl in windows for making web apps

Wondor how to show attributes in product summary (Woocommerce)

Just add this small snippet and there you go.... //show attributes after summary in product single view add_action('woocommerce_single_product_summary', function() { //template for this is in storefront-child/woocommerce/single-product/product-attributes.php global $product; echo $product->list_attributes(); }, 25);   If you want to show only minimum price of variable product you can do something like this //Show only minimum price of … Continue reading Wondor how to show attributes in product summary (Woocommerce)

How to add/edit/delete custom checkout fields and send them into email in your woocommerce shop?

/** * Ordering custom checkout fields */ // Billing Fields. add_filter( 'woocommerce_billing_fields' , 'woocommerce_billing_fields_custom' ); function woocommerce_billing_fields_custom( $fields ) { //Set existing fields $fields['billing_first_name']['label'] = 'Name of Corresponding Author'; $fields['billing_phone']['maxlength'] = 10; $fields['billing_phone']['required'] = true; $fields['billing_city']['class'] = array( 'form-row-first' ); $fields['billing_state']['class'] = array( 'form-row-last' ); $fields['billing_postcode']['maxlength'] = 6; $fields['billing_postcode']['class'] = array( 'form-row-first' ); //Adding new … Continue reading How to add/edit/delete custom checkout fields and send them into email in your woocommerce shop?