trinity17k
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Virtual productThank you so much.
My function had only the $order_id argument but with the
woocommerce_thankyou
, I can see my debug lines. So maybe it worked withwoocommerce_new_order
but it’s better with the thank you page to display messages for the clients.Thanks a lot for all the tips. I’ll use the woo commerce community if I have other technical issues.
Merry Christmas to all !
Forum: Plugins
In reply to: [WooCommerce] Virtual productThe add_filter to change the validation page works perfectly. But impossible to make the add_action to work.
Any idea what could have gone wrong ?
Thank you
Forum: Plugins
In reply to: [WooCommerce] Virtual productThanks again.
So Iimplement a new function to do everything I need and I call it in
woocommerce_new_order
?I was wondering where is the function to add mine but I just need to use for exemple to add new fields in the order:
// Hook in add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); // Our hooked in function - $fields is passed via the filter! function custom_override_checkout_fields( $fields ) { $fields['order']['order_comments']['placeholder'] = 'My new placeholder'; return $fields; }
Or to add new calcul :
add_action( 'woocommerce_new_order', 'create_invoice_for_wc_order', 1, 2 ); function create_invoice_for_wc_order( $order_id, $order ) { $items = $order->get_items(); // etc... }
Let’s try it.
Thank you again
Forum: Plugins
In reply to: [WooCommerce] Virtual productThank you very much for your explanations. Sorry for the delay.
And yes, your solution seems to be the smartest.
I looked into the functions.php from my theme but don’t see any functions which could be triggered by
woocommerce_new_order
.How to name the function to add and to be triggered ? Isn’t it better to implement it in the personal file functions.php of the the child Theme ?
I also took a look at Codeable.io. We have to submit our project to receive offers and pricing of the solution if I want to evaluate how much would cost me to ask help to implement it properly ? Maybe it’ll be quicker and safer. Definitely time saving.
So Thank you
Forum: Plugins
In reply to: [WooCommerce] Virtual productThank you.
The answer was obvious but I wanted to check if another solution was not already implemented and ready to customized.
The only pb is that even chatGPT is not clear about where to access the function tied to this hook as I can’t find it in the functions.php file of my theme and there is no such file in Woocommerce repertory.
ChatGPT is telling me to implement my own function but even if I do that, I need the original code to improve, no ?
The place where to put the launch of the scripts is not clear. So I can’t say how I am gonna choose which script depending on which product as been purchased…
Should I ask the official dev partner for that and are their advices free ?
Thank you again
Karine
Forum: Plugins
In reply to: [WooCommerce] Virtual productThank you,
I know how to use attribute but the file the client would buy is made upon to their birthdate and name for example.
I am developping programs to make astrologic and numerologic charts for example.
So I can’t prepare the files in advance. SPecially for Feng Shui, there is too many possibilities.
It should have a way to launch the calculations and the print of the file after the purchase but how ?
Thanks
Forum: Themes and Templates
In reply to: [Neve] Woocommerce legend’s picture of productThanks a lot.
I’ll try your tip and also ask to the involved plugin.
Forum: Themes and Templates
In reply to: [Neve] Woocommerce legend’s picture of productThank you,
No I hadn’t resolve the pb.
https://ibb.co/VNPxRTHYou need to click on the magnifying glass :
https://ibb.co/GVqV3jSForum: Themes and Templates
In reply to: [Neve] Woocommerce legend’s picture of productThank you,
When you click on the picture, there is a legend under the image.
I can’t attached a sample. But on the link, click on any image and after accepting the cookies, you’ll see under the image, the legend.Thanks
Forum: Themes and Templates
In reply to: [Neve] Other page not clickableThank you
I see the problem comes from the higher footer that we cannot use if the site has a shop.
Is there a link between this footer and the white block below the footer on all pages except the pages of the shop ?Forum: Themes and Templates
In reply to: [Neve] Homepage impossible to updateI found a solution : duplicate the page and throw away the original one
Forum: Themes and Templates
In reply to: [Neve] Homepage impossible to updateWithout answer, I cancelled all the updates but still I got the same error and can’t change my homepage.
Should I give up o this WP theme ?
- This reply was modified 3 years ago by trinity17k.
Forum: Themes and Templates
In reply to: [Neve] Homepage looking for non existing css filesThank you for your report.
It could be the reason why I can’t modify my homepage with the new version of WPForum: Themes and Templates
In reply to: [Neve] Woocommerce custom home pageIn the end, I used my back up to restore the website and did my modifications again.
No idea what happened but all my custumizations were goneThank you.
Same pb for me.