ranjith multi_thoughts
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Add woocommerce products to dropdown menuhow to display products in dropdown menu according to category in woocommerce
Forum: Plugins
In reply to: [WooCommerce] Add fields to woocommerce registration form : follow upadd_action( ‘register_form’, ‘adding_custom_registration_fields’ );
function adding_custom_registration_fields( ) {//lets make the field required so that i can show you how to validate it later;
$firstname = empty( $_POST[‘firstname’] ) ? ” : $_POST[‘firstname’];
$lastname = empty( $_POST[‘lastname’] ) ? ” : $_POST[‘lastname’];
?>
<div class=”form-row form-row-wide”>
<label for=”reg_firstname”><?php _e( ‘First Name’, ‘woocommerce’ ) ?><span class=”required”>*</span></label>
<input type=”text” class=”input-text” name=”firstname” id=”reg_firstname” size=”30″ value=”<?php echo esc_attr( $firstname ) ?>” />
</div>
<div class=”form-row form-row-wide”>
<label for=”reg_lastname”><?php _e( ‘Last Name’, ‘woocommerce’ ) ?><span class=”required”>*</span></label>
<input type=”text” class=”input-text” name=”lastname” id=”reg_lastname” size=”30″ value=”<?php echo esc_attr( $lastname ) ?>” />
</div><?php
}//Validation registration form after submission using the filter registration_errors
add_filter( ‘woocommerce_registration_errors’, ‘registration_errors_validation’ );/**
* @param WP_Error $reg_errors
*
* @return WP_Error
*/
function registration_errors_validation( $reg_errors ) {if ( empty( $_POST[‘firstname’] ) || empty( $_POST[‘lastname’] ) ) {
$reg_errors->add( ’empty required fields’, __( ‘Please fill in the required fields.’, ‘woocommerce’ ) );
}return $reg_errors;
}//Updating use meta after registration successful registration
add_action(‘woocommerce_created_customer’,’adding_extra_reg_fields’);function adding_extra_reg_fields($user_id) {
extract($_POST);
update_user_meta($user_id, ‘first_name’, $firstname);
update_user_meta($user_id, ‘last_name’, $lastname);
update_user_meta($user_id, ‘billing_first_name’, $firstname);
update_user_meta($user_id, ‘shipping_first_name’, $firstname);
update_user_meta($user_id, ‘billing_last_name’, $lastname);
update_user_meta($user_id, ‘shipping_last_name’, $lastname);
}
please tel me where to paste this code and in which file please tel me its urgent……..Forum: Plugins
In reply to: [WooCommerce] Woocommerce pages not workinghow to adjust permalinks……
Forum: Themes and Templates
In reply to: [Virtue] Create a Dynamic pageno sir please visit the site https://www.itsdirect.com.au website in that visit the page PC builder it showing dropdown menu to select products in tht page……..
i want the pc builder page with those option in page and how to create itForum: Themes and Templates
In reply to: [Virtue] top bar icon menu to left side.thanks lot thanks thanks thanks thankssssssssssssssssssss
Forum: Themes and Templates
In reply to: [Virtue] top bar icon menu to left side.https://compumart.multithoughts.com
home icon should come first left…Forum: Themes and Templates
In reply to: [Virtue] top bar icon menu to left side.its urgent please help me
Forum: Themes and Templates
In reply to: [Virtue] Create a Dynamic pagei am using woocommerce in virtue theme…in the website https://www.itsdirect.com.au as a pc builder page to select products using dropdown menu i want the same in my website also please help how to implement that page…
yes i am using default permalink what should i use…
but cart page is working why i don’t knw can’t able to login also from remote server to go dashboard..please help me sir
Forum: Themes and Templates
In reply to: [Virtue] how to edit the html page of virtue themehow to make the page link to #
Forum: Themes and Templates
In reply to: [Virtue] how to edit the html page of virtue themebut i want to change the link in html file and i want to add class for some html tags how can i achieve it..
thanks lot its working
Forum: Themes and Templates
In reply to: [Virtue] displaying some special category products in home pagei copied this code and pasted but not working i want to change product_categories number and how to know which product_categories number i want to display…
Forum: Themes and Templates
In reply to: [Virtue] displaying some special category products in home pagei copied this code and pasted the and how to which product_categories number i want to display…