Closed (fixed)
Project:
Commerce Ajax Add to Cart
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
19 Sep 2016 at 14:01 UTC
Updated:
22 Sep 2017 at 07:35 UTC
Jump to comment: Most recent

Comments
Comment #2
subhojit777Have you followed the "Installation and usage" section in the module page https://www.drupal.org/project/dc_ajax_add_cart. I guess this is a fresh Drupal installation, can you write the steps you followed starting from just after installing (only) Drupal till the bug that you have mentioned in the gif.
Comment #3
matas.k commentedHi. I have followed the instructions, I just skipped blocks part. I also have a working setup of the module on a production site, but that version is 1.3, maybe that has something to do with it (it also has blocks disabled), I did compare the settings of 2.1 version and 1.3 and they are same.
Comment #4
matas.k commentedCan confirm. Downgrading to 1.3 fixed and works.
Comment #5
IckZ commentedconfirm!
Is there maybe a additonal requirement for the popup?
UPDATE: Figured out that this does not happen, if you enable the Ajax Cart Teaser - Block.
Comment #6
pyxio commentedI am experiencing the same issue and can't solve it. not working in 1.3 or 2.1 for me in any theme I try. I followed instructions. What else can I check? thanks.
Comment #7
subhojit777@drupalstrap do you see any console error?
Comment #8
pyxio commentedno errors in console.
Comment #9
subhojit777Fixed recently. Please check the latest dev version of this module.
Comment #10
smurfxx commentedI'm using the latest dev but it seems that js and css are not loaded even with the latest dev.
EDIT: if I hardcode the js and css import in html.tpl.php it works, maybe hook_library() has changed syntax with the latest drupal updates?
Comment #11
subhojit777@smurfxx Can you specify the exact steps. Because I tried to replicate the problem, and I found it has been fixed.
Comment #12
smurfxx commentedThe steps are:
normal installation of your module on this theme: http://goshop.drupalet.com/
Drupal version: 7.56
Module version: 7.x-2.11+1-dev
The problem is that function dc_ajax_add_cart_library() does not load the css file.
I don't have errors on browser debug console and no drupal errors/alerts log.
Comment #13
subhojit777Looks like the module is not installed in the site, because adding product to cart causes a page reload. Also neither of the blocks provided by the module are placed on the site, you need either one of the block so that the CSS is loaded in the page.
Please refer the installation steps properly, they are mentioned here https://www.drupal.org/project/dc_ajax_add_cart under
7.xComment #14
smurfxx commentedThe site I posted to you is the TEMPLATE I bought, not my real site...
Comment #15
subhojit777Comment #17
subhojit777Comment #18
smurfxx commentedNow it works, thanks!