Single product – Add to cart – Can the action is to open the cart in a slide?

This topic has 9 replies, 3 voices, and was last updated 1 years, 9 months ago ago by Rose Tyler

  • Avatar: shahar klamka
    shahar klamka
    Participant
    February 1, 2023 at 05:56

    I want to achieve AJAX Add To Cart For Simple And Variable Products to other type of products.

    How can I do it?

    I actually want that when press add to cart that the cart will be slide from the side. I dont know how to set it up

    8 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    February 1, 2023 at 07:23

    Hello @shahar klamka,

    We regret to inform you that it is not possible to achieve your desired outcome using the theme options available for grouped and affiliate/external products, the Ajax Add to Cart option only works for Simple and Variable products https://prnt.sc/hxpDU1FRCQWj . You may wish to explore third-party plugins that may better meet your requirements, but please note that this is done at your own risk.

    If you would like to request this feature, please post your request on our Taskboard at https://www.8theme.com/taskboard/. If it receives enough votes from other customers, our development team will consider adding it to one of our future updates.

    We thank you for your understanding and look forward to your continued support.

    Best Regards,
    8Theme’s Team

    Avatar: shahar klamka
    shahar klamka
    Participant
    February 2, 2023 at 03:14

    Can you recommend on a plugin that will work?

    YITH WooCommerce Added to Cart Popup will work?

    Its very strange that you limit it. I dont know why? its just absurd

    Avatar: shahar klamka
    shahar klamka
    Participant
    February 2, 2023 at 03:44

    Its funny.

    I put “YITH WooCommerce Added to Cart Popup” plugin

    And then your cart popup also appears. So its only a hook that make it work.

    Can you please share with me how to hook it?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 2, 2023 at 08:50

    Hello,

    Your site is under maintenance mode, so we can’t check it.

    Please provide temporary wp-admin and FTP access, so we can check the situation more deeply.

    To provide wp-admin access, you can create a new user account with administrator role via the Dashboard, and provide us with the username and password via the Private Content area.
    To provide FTP access, please contact your hosting provider for assistance.

    We look forward to hearing from you.

    Kind Regards,
    8theme team

    Avatar: shahar klamka
    shahar klamka
    Participant
    February 2, 2023 at 10:15

    You need to log in to see

    Please see this page:
    https://speedy-tools.com/p/equipment-rental/mini-excavator/1-5-2-ton-mini-excavator/

    Just fill the dates and you will see the popup when add to cart

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 2, 2023 at 14:03

    Hello,

    According to the fact, that you installed an extra plugin that provides such solution (ajax add to cart for different types of products) you should contact to plugin’s author and ask them the hook they are using for such things.
    Their support forum -> https://wordpress.org/support/plugin/yith-woocommerce-added-to-cart-popup/
    We can only provide support for the questions related to our theme and plugins which are bundled with our theme.

    Kind Regards,
    8theme team

    Avatar: shahar klamka
    shahar klamka
    Participant
    February 3, 2023 at 08:45

    Hello

    The hook trigger your add to cart popup.

    I am asking you what I need to do to trigger it. You didn’t provide me the answer.

    I am just showing you that with a hook that is already exist in your plugin(as you do it in simple product) you can trigger the popup.

    Please help me know where can I find in your code the trigger?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 3, 2023 at 09:34

    Hello,

    We asked you to contact the plugin support because there is no a hook (means a quick) solution from the theme side. If you want to know the hook/action we “touch” to show popup added to cart then it is located in JS. Woocommerce on ajax add to cart action makes next document trigger ->
    $( document.body ).trigger( 'adding_to_cart', [ $thisbutton, data ] ); ( https://prnt.sc/ya_4D4LaIB_d ) and after successful adding product to cart WooCommerce makes next trigger -> $( document.body ).trigger( 'added_to_cart', [ response.fragments, response.cart_hash, $thisbutton ] );
    https://prnt.sc/lOwiHyh2VWNf . In our theme’s scripts we have part of the code which starts on such triggers and one of them is called on success ‘added_to_cart’ trigger -> https://prnt.sc/M_qqUCouAsNh and below we call our popup after added to cart with ajax -> https://prnt.sc/quAVrr-inPss

    Kind Regards,
    8theme team

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.