bigsaysjay
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Override woocommerce add_to_cart link (shop page)It is working as well after trying to get the good value of $link, which was executed and not displayed 🙂
Thanks a lot it works
Forum: Plugins
In reply to: [WooCommerce] Override woocommerce add_to_cart link (shop page)Hi !
Thanks for reply. This is not what i’m searching for 🙂
The following code override the text displayed on the shop page product’s button.
I suppose there is a method that define if the product’s button display is an add_to_cart_button or a read_more_button, you know what I mean ?
Something like
<?php echo '<a href="get_product_page_url($product_id), ">More details</a>'; ?>And i’ve try to get the full correct code without a great success. Please use code tags to insert code (it is directly executed otherwise). Thanks
- This reply was modified 9 years, 8 months ago by bigsaysjay.
- This reply was modified 9 years, 8 months ago by bigsaysjay.
- This reply was modified 9 years, 8 months ago by bigsaysjay.
Forum: Plugins
In reply to: [WooCommerce] Override woocommerce add_to_cart link (shop page)Hi souravkr, maybe i wasn’t clear (even if the part of code you gave me isn’t working and it blocks the loop.)
I need to modify the simple product’s link (on shop page). Currently the button link add the product to the cart. How can i override this link to the send on product page.
It is only with simple products !
thanks
Forum: Plugins
In reply to: [WooCommerce] Override Woocommerce shipping title on checkout page.First, thanks for the list even i already found it. Was expected something like category, nvm.
The plugin works like a charm and that’s good, thanks again @lorro !
Forum: Plugins
In reply to: [WooCommerce] Display customer order commentsI resolved the issue :
To display order customer comments :
$comments = $order->customer_message; echo $comments;Forum: Plugins
In reply to: [WooCommerce] Display customer order commentsThanks for the stuff but that’s not hat i’m searching, not exactly.
I will not use any plugin, i was searching to display order notes like remi corson did but it isn’t still working ! Or i didn’t correctly try, can you confirm is still working ?
However i don’t need to display order notes, just stock it and pass them to a script, but this is my problem not yours 🙂
Forum: Plugins
In reply to: [WooCommerce] Action when submiting checkout formHey Caleb, i’m really newbie with woocommerce/wordpress and these hooks !
So i understand the utility but i’m not able to call correctly any hook.
I’ve test some pieces of code like this to test if it’s working :
function zero_export_customers_data($this_id) { // header( 'Location: http://www.games-brand.com/' ); $customer_id = get_current_user_id(); print get_user_meta( $customer_id, 'billing_phone', true ); };I’ve test with and without function’s parameter*
And these lines to add the function to the hook / filter you told me to use.
add_filter('woocommerce_payment_complete_order_status', 'zero_export_customers_data'); add_action('woocommerce_payment_complete', 'zero_export_customers_data');Can you explain me how it works / the way to execute my function at the right time, please.
Thanks !
[ No bumping please. ]
Forum: Plugins
In reply to: [WooCommerce] Action when submiting checkout formHey Caleb,
Sorry this is not my goal, in fact i’ve already rode data with this (for exemple) :
$customer_id = get_current_user_id(); get_user_meta( $customer_id, 'billing_phone', true );I just need the condition to execute my functions when user has submitted the checkout form, to store the actual value. If I get and store in another file before the customer submit the checkout form, informations may be false.
I would like to know how export customer informations 🙂
Thanks a lot !