cedcommerce
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Says my site is not secure but it isHello,
Please go to WooCommerce >> Settings >> Emails >> Completed order
and enable the checkbox,
Enable this email notification.
Then customer will get notified on order completion.
Thanks & Regards,
Forum: Plugins
In reply to: [WooCommerce] Phone field not translated on checkut pageHello @redda_joppe ,
Please use this snippet,
add_filter( 'gettext', 'checkout_heading_text', 10, 3 ); function checkout_heading_text( $translated, $text, $domain ) { if( $text === 'Phone'){ return __( 'Telefon ', $domain ); }Thanks,
Forum: Plugins
In reply to: [WooCommerce] Text link before add to cart hookHello @cartseg ,
You can use woocommerce_before_add_to_cart_button hook,
add_action('woocommerce_before_add_to_cart_button','ced_before_add_to_cart_notice'); function ced_before_add_to_cart_notice(){ //your text here }Thanks,
Forum: Plugins
In reply to: [WooCommerce] remove validation of woocommerce billing emailsHello @jai6358 ,
You want to make it optional or want to remove the validation of field as email ?
because email is very important field, for the future notifications, order status change and other detailing process.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Change Author of ProductHello,
Please use this,
add_action('init', 'ced_add_author_woocommerce', 999 ); function ced_add_author_woocommerce() { add_post_type_support( 'product', 'author' ); }Thanks,
Forum: Plugins
In reply to: [WooCommerce] description and related products deleteHello,
Please use the below code,
// remove product description from single product pages remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); add_filter( 'woocommerce_product_tabs', 'ced_remove_description_tab', 11, 1 ); function ced_remove_description_tab( $tabs ) { if ( isset( $tabs['description'] ) ) { unset( $tabs['description'] ); } } //for related products from single page remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );Forum: Plugins
In reply to: [WooCommerce] State now appears after zipcode?Hello,
No not in config file, you need to put this in active theme’s functions.php
No keep it in child theme or it will not wave off, with the update of woo.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Woocommerce translatingHello @peion ,
Please rename your page (my-account) page, whatever you will write there will get reflected on this page (title of my account page)
i.e if you will write title of your page, Hello World ! then it will show Hello World! instead of my account.
Thanks,
add_filter( 'gettext', 'ced_checkout_heading_text', 10, 3 ); function ced_checkout_heading_text( $translated, $text, $domain ) { if( $text === 'Billing details' && is_checkout() && ! is_wc_endpoint_url() ){ // HERE set the desired specific product ID $targeted_product_id = 182; // Loop through cart items foreach( WC()->cart->get_cart() as $cart_item ) { if( $targeted_product_id == $cart_item['data']->get_id() ) return __( 'CedCommerce ', $domain ); } } return $translated; }I am using storefront theme.
Thanks,
- This reply was modified 6 years, 2 months ago by cedcommerce.
Hello @luishgc93 ,
The above code is working absolutely fine.
Make sure you added the same product, $targeted_product_id , i assigned my product id and it is working perfectly.
And also ‘Billing details‘, this is case sensitive make sure you are using exactly same you have on your checkout page.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] delete data in “customers”yes you are using the plugin for this section.
Which plugin you are using for this additional customers section. You have to dig this in the documentation. I am sure there must be an option to delete it.
Thanks
Forum: Plugins
In reply to: [WooCommerce] delete data in “customers”Hello,
can you please share the screenshot.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] account username as phonenumberHello @trimastir ,
How you create the user registration form if any plugin then please name it ?
Yes this can be done but that will depend upon the form you have created.
with the help of this filter ‘woocommerce_new_customer_data’ we can achieve it.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] State now appears after zipcode?Hello @darrylhadfield ,
In order to change the position of the fields, you have to change the priority of the fields accordingly.
i.e,
billing_first_name 10,
billing_last_name 20,
billing_company 30,
.. and so on each field is differentiated by the difference of 10Change the priority that particular filed change it’s position.
like this,
add_filter( 'woocommerce_default_address_fields', 'ced_reorder_checkout_fields' ); function ced_reorder_checkout_fields( $fields ) { // default priorities: // 'first_name' - 10 // 'last_name' - 20 // 'company' - 30 // 'country' - 40 // 'address_1' - 50 // 'address_2' - 60 // 'city' - 70 // 'state' - 80 // 'postcode' - 90 // e.g. move 'company' above 'first_name': // just assign priority less than 10 $fields['company']['priority'] = 8; return $fields; }Thanks,