Forum Replies Created
-
Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] Move position of the HookHi Hector, thank’s for your reply.
It is clear to me what you mention, however I don’t need to modify the fields of the form, but all its position to a different hook.
What I want is that it is not under the price, but it appears outside the single product summary, so I try to change the hook to
woocommerce_after_single_product_summary.I can’t overwrite it in my child theme, but if I go to the original plugin file in the path: yith-woocommerce-gift-cards/lib/class-yith-ywgc-frontend. php and modify line 74:
add_action( 'woocommerce_single_product_summary', array( $this, 'show_gift_card_product_template' ), 60 );to this:
add_action( 'woocommerce_after_single_product_summary', array( $this, 'show_gift_card_product_template' ), 60 ) );I get what I need.
But I need to do it outside of the original files, to avoid breaking it in an update.
Forum: Plugins
In reply to: [YITH WooCommerce Gift Cards] Move position of the HookI’m trying this:
function override_position_giftcard() { remove_action( 'woocommerce_single_product_summary', array( $this, 'show_gift_card_product_template'), 60 ); add_action( 'woocommerce_after_single_product_summary', array( $this, 'show_gift_card_product_template'), 61); } add_action( 'init' , 'override_position_giftcard' , 10 );In my function.php of the child theme, but doesn’t take effect
UPDATE:
Sorry, as you said it was possibly WPML, i checked and i had another plugin “WooCommerce Price Based on Country” that was active and generating conflict.
It’s fixed now, thanks!
Hi @kimvt1991 thanks for reply.
Make sense, but in this moment the multi-currency of WPML it´s disabled.
https://snipboard.io/c5wfqK.jpgThis is not the problem. Any other suggestion?
Thanks,
Hello, i have the same issue. and i set the custom symbol in the column.
But doesn’t make effect.Any idea on what can be the problem ?
I have created my own ticket to get a solution:
https://wordpress.org/support/topic/the-currency-symbol-doesnt-change-with-the-switcher-widget/