Home Forums Themes Support Claue Bundle + Gift Card button

Topic Resolution: Resolved
Viewing 10 reply threads
  • Author
    Posts
    • #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.
    • #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

    • #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

    • #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

    • #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?

    • #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

    • #22810

      Perfect, commented it in ywgc-frontend.min.js and it is not changing text now, thank you I think it is much better!

    • #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

    • #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

      • #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

    • #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

    • #22847

      Ah, thank you, I understand it better now

Viewing 10 reply threads

You must be logged in to reply to this topic.