Ajax add to cart is not working - by taimoorshafiq

This topic has 13 replies, 4 voices, and was last updated 2 years, 11 months ago ago by taimoorshafiq

  • Avatar: taimoorshafiq
    taimoorshafiq
    Participant
    May 8, 2021 at 22:20

    Hi, please guide or resolve the following issue.
    Ajax add to cart side bar is not opening, it is showing “Select options” under every product and when I click on “select options”, nothing happened, I want to show “add to cart” instead of “select options” button in under every product. I want the same ajax add to cart side like the demo https://xstore.8theme.com/elementor/demos/niche-market02/

    Please, contact administrator
    for this information.
    12 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    May 9, 2021 at 11:07

    Hello

    Thank you so much for contacting us!

    Keep variation swatches option disabled https://prnt.sc/12imcql if you don’t use it for the attributes and use only default select types for all the attributes https://prnt.sc/12imdrt

    You can enable ajax sidebar by going to Dashboard > Theme Options > Header Builder > Cart https://prnt.sc/12pt9w4

    Robert Hall

    Avatar: taimoorshafiq
    taimoorshafiq
    Participant
    May 9, 2021 at 16:33

    Please explain this >>use only default select types for all the attributes https://prnt.sc/12imdrt

    Avatar: taimoorshafiq
    taimoorshafiq
    Participant
    May 9, 2021 at 18:43

    It is still showing showing “selection options” under the product instead of “add to cart” and when I click on “select options” then the product page opens instead of ajax add to cart side bar. Also when I click on quick view then ajax add to cart sidebar opens but there is also showing “select options” instead of product all variations. >>>https://paste.pics/029093ad2d66a59422a66512fe69f286

    Avatar: taimoorshafiq
    taimoorshafiq
    Participant
    May 9, 2021 at 22:42

    any one to respond on this please,

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 10, 2021 at 07:59

    Hello,

    Sorry for the delay in answering.
    Select Options button is displayed on Variable products and means that any of variations is not selected, so you are redirected to the Single product page to be able to select variations and add a product to the cart. On the mentioned demo, products are simple, so can be simply added to the cart. Try to set default values for variable products – http://prntscr.com/12r4kor , then check if products can be added to cart from Home/Shop page.

    Regards

    Avatar: taimoorshafiq
    taimoorshafiq
    Participant
    May 10, 2021 at 20:27

    I have set the default values for variable products but it is still redirecting to the product page instead of adding it to the cart & opening the ajax side bar.https://prnt.sc/12rugzk

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 11, 2021 at 08:50

    Hello,

    You are right, this workaround doesn’t work. Right now, there is no ready solution to change the current functionality. Our developers answered that it is not a bug, and it works in the same way on our demo – https://xstore.8theme.com/elementor/demos/niche-market/shop/
    You can submit the request here – https://www.8theme.com/taskboard/

    Regards

    Avatar: taimoorshafiq
    taimoorshafiq
    Participant
    May 11, 2021 at 20:51

    I think I need to install any plugin for variation switches, the it will work or not? please respond. in demo site it is working fine,

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 12, 2021 at 07:27

    Here is a video about variation swatches – https://youtu.be/LgzC4iK-j6A (we do not use additional plugins).
    The behavior of Add to cart on the demo – https://gyazo.com/7ec36ade06c1b64b823ef39c1f9b006f https://gyazo.com/ed2a1b606f468bcbf15d0367336c7526 It is similar on your site. Isn’t it?

    in demo site it is working fine,

    – what exactly working fine on the demo but doesn’t work on your site?

    Regards

    Avatar: taimoorshafiq
    taimoorshafiq
    Participant
    May 13, 2021 at 23:00

    In demo site, we can select the product variation by clicking on quick view of any product that displays on the side bar off canvas cart, like this>>https://gyazo.com/b572dbf481b5d1383a3abbc9aa507c21

    but in my site, when I click on quick view then side bar opena but there is showing select options instead of displaying the variations and when I click on select option then page refresh to the product page, like this >>https://gyazo.com/e1fadac48c29ed4c5ed83c426920a438

    I want to display the variation like color , size under ever product like this demo>>https://xstore.8theme.com/elementor/

    and want to work the same like above mentioned demo site.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 14, 2021 at 10:41

    Hello,

    Please, watch this video tutorial https://youtu.be/LgzC4iK-j6A
    Enable variation swatches option (Theme Options > WooCommerce > Shop Elements > Variatio swatches). Choose the swatches type for your attributes (products > Attributes > edit attribute and change type from select to label/color/image) and then you’ll get the same view for the product variations as on demo.

    Regards

    Avatar: taimoorshafiq
    taimoorshafiq
    Participant
    May 14, 2021 at 18:33

    Edit attribute and change type from select to label/color/image)

    I did not see the above option “Type” in product attribute while editing or adding new attribute>>https://gyazo.com/94fc07c4caab5459190588889c04ec05

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

The issue related to '‘Ajax add to cart is not working’' has been successfully resolved, and the topic is now closed for further responses

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