ctuxboy
Forum Replies Created
-
Forum: Plugins
In reply to: [Crelly Slider] Top of pageHi Fabio,
Thanks. I answer it.
The admin-bar is not the problem.Christophe
Forum: Plugins
In reply to: [Crelly Slider] Top of pageHi Fabio,
I send you by email the credentials.
It’s about this website:
https://www.vakantiehuisjeannepanne.be/christophe
Forum: Plugins
In reply to: [WooCommerce] Add required billing address on registrationHi Caleb,
Thanks for the info.
It would be better in a loop (i think ‘foreach’), but it works perfectly at this moment ??Forum: Developing with WordPress
In reply to: Add login/logout link to existing menuI found it:
function add_login_logout_link( $items, $args ) { if( is_user_logged_in() && $args->theme_location == 'primary' ) { $items .= '<li><a href="'.wp_logout_url( home_url() ).'" title="Logout">Logout</a></li>'; } elseif (!is_user_logged_in() && $args->theme_location == 'primary') { $items .= '<li><a href="https://website.com/my-account/" title="Login">Login or register</a></li>'; } return $items; } add_filter( 'wp_nav_menu_items', 'add_login_logout_link', 10, 2 );
- This reply was modified 6 years, 8 months ago by ctuxboy.
Forum: Plugins
In reply to: [WooCommerce] Add required billing address on registrationIt works when adding in the same function:
function sg_validate_first_name ( $validation_error, $username, $password, $email ) { $first_name = isset( $_POST['billing_first_name'] ) ? $_POST['billing_first_name'] : ''; if( !$first_name ) { $validation_error->add( 'first_name_missing', 'Please enter your first name.'); } $first_name = isset( $_POST['billing_last_name'] ) ? $_POST['billing_last_name'] : ''; if( !$first_name ) { $validation_error->add( 'last_name_missing', 'Please enter your last name.'); } return $validation_error; }
Forum: Plugins
In reply to: [WooCommerce] Add required billing address on registrationHi @lorro,
Tested your code, and it works well.
But how can i adding more fields?
Here are some fields that’s required:
– billing_last_name
– billing_address_1
– billing_city
– …making for every field a new function? Or better all this fields in one function?
How can i do that?At this moment i change your snippet to this and it works for the First name field:
function sg_validate_first_name ( $validation_error, $username, $password, $email ) { $first_name = isset( $_POST['billing_first_name'] ) ? $_POST['billing_first_name'] : ''; if( !$first_name ) { $validation_error->add( 'first_name_missing', 'Please enter your first name.'); } return $validation_error; }
Forum: Plugins
In reply to: [WooCommerce] Changing error textHi guys,
It works perfect now with Loco Translate.
Re-locate the language-file do the job ??Thanks for the help!!!
Regards,
ChristopheForum: Plugins
In reply to: [WooCommerce] Changing error textHi @lorro,
Thanks for the useful link.
I think relocate the Loco file can help me a lot, i have also other text that i will change and this can solve the problem.Thanks a lot guys for the help ??
Christophe
Forum: Plugins
In reply to: [WooCommerce] Add required billing address on registrationHi lorro,
Thanks a lot for your example.
I want try this implement i my code and hope it works. This would be awesome ??Happy with this help!!!
Regards,
ChristopheForum: Plugins
In reply to: [WooCommerce] Changing error textHi Caleb,
Thanks for your answer.
I try this in the next days ??Regards,
ChristopheForum: Reviews
In reply to: [WooPrice Calculator] Awesome plugin :-)Hi Enrico,
Thank you!
I’m not at home now.
Checking tonight or tomorrow.Regards,
ChristopheForum: Reviews
In reply to: [WooPrice Calculator] Awesome plugin :-)Hi,
Yes, the mail arrived yesterday.
I was a little disappointed with the answer, and there was not a little more help.
I do all what our support says, adding manually the folders and set permissions? 755? 644? i don’t know ??
Ok, i try this but doens’t work.I understand this is a demo and you want selling our product. But before buying our plugin i will showing the demo to my client, but if it not working properly (price doesn’t change), i can’t show it, if the demo not properly works on client’s theme.
So at this moment i found myself, when switch to another theme then it works perfect!Christophe
Forum: Plugins
In reply to: [Booster for WooCommerce] Calculate width x heightHmm,
No answer ??
Maybe can ask for a feature request: adding width and height fields on frontend for calculate the price, based on the base price.
Tom???
Forum: Plugins
In reply to: [WooCommerce] Phone number format in billing address (emails)Forum: Plugins
In reply to: [WooCommerce] Load scripts for a one productHello,
After trying a lot of hours, found a solution:
... if ( get_post_meta( $post->ID, 'load_scripts_checkbox', true ) ) { ...
That does the trick!
Christophe
- This reply was modified 6 years, 9 months ago by ctuxboy.