Home › Forums › Themes Support › Claue › Bundle + Gift Card button
- This topic has 11 replies, 2 voices, and was last updated 6 years, 5 months ago by Mag8891.
-
AuthorPosts
-
-
July 14, 2018 at 4:16 am #22702
hello Harry,
I also noticed that on /product/cluse-la-boheme-rose-gold/ when use bundled products plugin Buy this bundle and get off to 25%
so when I click gift this product, then add to card button changes to add gift, is it possible to make this change only to first button not to the bundled add to cart button, or maybe remove this change completely leaving add to cart button everywhere, as I think it is a bit confusing, as I don’t gift bundle, when you click it is added to cart not on gift card.
thank you
Attachments:
You must be logged in to view attached files. -
July 15, 2018 at 11:38 am #22750
Hi,
I’m sorry can’t prevent the text in button because this control by plugin Gift card it auto detect button class name to change the text.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 15, 2018 at 2:39 pm #22766
Hi Harry, is it possible to disable this part completely, so it will not change both buttons? Then should be OK too
Or change the button class for plugin bundle product?
Thank you
-
July 15, 2018 at 7:01 pm #22777
Hi Mag,
This code control this action in yith-woocommerce-gift-cards.premium > assets > js > ywgc-frontend.js
$('button.single_add_to_cart_button').data('add-to-cart-text',$('button.single_add_to_cart_button').text()); $('button.single_add_to_cart_button').html(ywgc_data.add_gift_text);
It can’t override.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 15, 2018 at 11:42 pm #22779
hi so I have tried to comment this 2 lines 381 and 382 in js code but it still seem to be working, why?
Can I not switch it off not to change the text anywhere at all?
-
July 16, 2018 at 4:00 pm #22798
Hi,
The code run on ywgc-frontend.min.js. Please edit on ywgc-frontend.min.js and check again.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 16, 2018 at 6:24 pm #22810
Perfect, commented it in ywgc-frontend.min.js and it is not changing text now, thank you I think it is much better!
-
July 16, 2018 at 6:43 pm #22811
Hi Harry,
just asking out of interest the bundle plugin also changes the add to cart to ADD BUNDLE TO CART,
so how does it know to change this only under the bundle, not the above button too as gift card changes everywhere?
thanks
-
July 16, 2018 at 7:04 pm #22816
Hi Mag,
This plugin have option to change the text on button in Settings > WP WooCommerce Product Bundle and user can change text as they want.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
July 16, 2018 at 7:33 pm #22821
yes OK, but my question was how it know to apply this change only to the bundle product button, it must have some different class, as top add to cart is not changing at the same time
-
-
July 17, 2018 at 12:39 am #22835
Hi,
This button generate by plugin WPA WooCommerce Product Bundle, and it don’t use action to change button text via javascript it only show the text on first time.
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 17, 2018 at 3:25 am #22847
Ah, thank you, I understand it better now
-
-
AuthorPosts
You must be logged in to reply to this topic.