Closed (works as designed)
Project:
Commerce Ajax Add to Cart
Version:
7.x-2.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2016 at 11:58 UTC
Updated:
31 Dec 2016 at 13:28 UTC
Jump to comment: Most recent
Comments
Comment #2
subhojit777What exactly is breaking. Is the ajax cart block not reflecting the updated items? For debugging, can you upload the theme here.
Comment #3
pyxio commentedThanks for the quick reply. The overlay with cart items simply does not trigger when adding item to cart. I see only the standard drupal commerce message "X added to your cart" ... as far as sending theme I would rather do that via private email or I can privately provide you with a link where you can see the dev site and test yourself. Cheers
Comment #4
subhojit777There is a setting that turns that popup on/off, make sure that it is on. Is the page refreshing when you add product to cart?
Comment #5
pyxio commentedyes page refreshes. setting look OK as i mention i tested in other themes and it is OK. so i think settings are not the issue. i would think a conflict in js but as i mentioned i removed everything to test and still not working. i can send you a PM to the site if you want to take a look.
Comment #6
subhojit777Send me the site link.
Comment #7
pyxio commentedsent. thanks
Comment #8
pyxio commentedoh, you find product add to cart buttons on Plans page
Comment #9
pyxio commentedand you can see cart teaser in content block just at footer on left side.
Comment #10
subhojit777What version are you using?
Comment #11
pyxio commented7.x-2.1 default drush dl
Comment #12
subhojit777Can you try v1.3
Comment #13
pyxio commenteddone. still not working :(
Comment #14
subhojit777Seems like ajax is not getting enabled in your form http://cgit.drupalcode.org/dc_ajax_add_cart/tree/dc_ajax_add_cart.module...
Comment #15
pyxio commentedi don't get it. if i switch theme it works.
Comment #16
subhojit777Then maybe your theme is conflicting with the form_alter?
Comment #17
pyxio commentedalso it is using bootstrap as a base theme ... and it works there so seems logical subtheme would inherit bootstrap base theme ajax ... so strange
Comment #18
pyxio commentedlet me check what i have in the way of form alters. good call ...
Comment #19
pyxio commentedyes. you nailed it. this was the culprit
Comment #20
pyxio commentedsorry for the inconvenience. i hope this issue will help somebody else in the future. there are so many places to look when debugging ... i should have know myself to check template.php file. i really appreciate the help and thanks for the great module.
Comment #21
pyxio commentedComment #22
subhojit777It is just renaming the button name, in that case:
Comment #23
pyxio commentedAwesome. thanks
Comment #24
pyxio commentedI guess hide cart if empty does not apply to shopping cart teaser?
Comment #25
subhojit777Sorry? Didn't get you.
Comment #26
pyxio commentedif i check hide empty cart option. it hides shopping cart, but not shopping cart teaser. so i was just checking that is by design.
Comment #27
subhojit777Yes, that is how it is supposed to work.
Comment #28
pyxio commentedcool. thanks again.