Wooc ommerce & EasyFancybox Pro – "add_to_cart_button" of woocommerce

Your Account / Forums / Easy FancyBox Pro / Wooc ommerce & EasyFancybox Pro – "add_to_cart_button" of woocommerce

  • Author
    Posts
    • Anonymous
      July 18, 2019 at 9:36 am #15477

      Hi there,

      i bought your plugin some hours ago and want to integrate it to my woocommerce affiliate store.

      The Fancybox should show the outgoing affiliate links as a lightbox for payment and shipping to the customer and replaces the new tab view for every product.

      Can you explain me a way, in which way i can implement it to the custom “add to cart button” of my theme?

      An example product page is this:

      https://becomepro.de/shop/beruf-job/25-premium-bewerbungsvorlagen-konzipiert-von-recruitern/

      thank you for your support and help,

      best, claudio

    • July 18, 2019 at 9:36 am #15478

      Hi Claudio, is the “add to cart” button the one that sais “Jetzt Vorlagen herunterladen!” on your example product page? And do you want it to open the target page inside a light box?

      If so, then you will have to find a way to give that button link an extra class “fancybox-iframe”. It currently has class="single_add_to_cart_button button alt" but this needs to become class="single_add_to_cart_button button alt fancybox-iframe" but it depends on your theme how.

      Is that a widget area or are there options related to the button on the product edit page maybe? If you see any option to set additional classes, then please try that and let me know so I can take a look at the resulting page source 🙂

      If not, then we’ll have to either modify a theme template file or try to devise some javascript to set the class dynamically…

  • You must be logged in to reply to this topic.