Author: alicoolpro

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

Advertisements

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?

Want your own dashboard menu items? Just take a look on these woocommerce hook

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 Want your own dashboard menu items? Just take a look on these woocommerce hook

Confused ? How to show taxonomies terms of a posts into a wordpress page

Just add this code where you want to post categories with links // your taxonomy name $tax = 'post_tag'; // get the terms of taxonomy $terms = get_terms( $tax, [ 'hide_empty' => false, // do not hide empty terms ]); // loop through all terms foreach( $terms as $term ) { // if no entries … Continue reading Confused ? How to show taxonomies terms of a posts into a wordpress page

Dynamically populated post fields ( Gravity Forms )

There are two ways you might want to populate a drop down field. The first way is pre-selecting a drop down option when the form is displayed. The second way is dynamically populating the options that are available in a select (aka drop down) field. This walkthrough will teach you how to configure the latter. … Continue reading Dynamically populated post fields ( Gravity Forms )