This module extends functionality of standart 'add to cart' button.
It gives opportunity to update the cart block without refreshing the page and showing modal window with an additional information
--------------------------------------------------------------------
FUNCTIONALITY:
Refreshing cart without refreshing the page;
* Open modal windows with additional information after clicking on the 'add to cart' button;
* Cart block can be a float. That means that when a user scroll down a page, the cart block can be fixed to the top of the screen. That is useful in some situations;
* A submodule with the a simple cart block;
* A simple cart block and a modal window have there own template files;
---------------------------------------------------------------------
Plans of extending
1. Add posibility of adding a different text to 'add to cart' buttons for each product type
2. Add each own text for a button for each product status.
for example. When a user clicks on a button. The button transformed to a link to cart page and text istrabsformed from "Add to cart" to "Already in cart" ( already working on demo link)
3. Add ajax function for a delete button on a cart page, and a cart block
4. Adding ajax settings allows ajax for some product types and disable for others
5. Dublicate ajax settings from settings page to button settings ( if it is possible)
6. Modal window will have additional options that makes it possible to add it to the views with parameters and blocks into it.
It will be usefull for showing similar or additional products in this window.
8. I'll make integrations with colorbox and shadowbox for modal windows.
-------------------------------------------------------------------------------
INSTALLATION:
* Put the module in your drupal modules directory and enable it in admin/modules.
* Go to Store -> Configuration-> advanced ajax cart settings or type url admin/commerce/config/advanced_ajax_cart and configure module
* enable siple ajax cart block, if you need this functionality
------------------------------------------------------------------------------
LINK
You can see an example of the module http://new-study.ru/shop site only on russian language but you can scroll page down to see a float cart block, and click on the buttons to see an ajax effect
-------------------------------------------------------------
GIT
Project page: https://drupal.org/sandbox/nikolas-tatianenko/2024869
git clone : git clone --branch master nikolas-tatianenko@git.drupal.org:sandbox/nikolas-tatianenko/2024869.git advanced_commerce_cart_ajax
Comments
Comment #1
ram4nd commentedRemove master branch: https://drupal.org/empty-git-master
Repair coding standard issues: http://pareview.sh/pareview/httpgitdrupalorgsandboxnikolas-tatianenko202...
Comment #2
serm commentedHi,
1. Please, fix a git clone link to
git clone http://git.drupal.org/sandbox/nikolas-tatianenko/2024869.git advanced_commerce_cart_ajax2. You could add more lines on your README.txt: SUMMARY, REQUIREMENTS, CONFIGURATION, CONTACT
3. Correct the code style (https://drupal.org/coding-standards)
4. advanced_commerce_cart_ajax.module line 156, variable $product is undefined
5. advanced_commerce_cart_ajax.functions.inc is empty file
Comment #3
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #5
nikolas.tatianenko commentedI removed master branch
Repaired coding standard issues at http://pareview.sh
Creating Full version of install.txt and readme.txt files