Closed (fixed)
Project:
Ubercart AJAX Cart
Version:
6.x-1.0-rc9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2009 at 19:33 UTC
Updated:
5 Nov 2009 at 14:20 UTC
Using Ubercart 2.x. This module doesn't appear to discern whether or not an implementation of hook_add_to_cart in another module returns TRUE and thus let the product be added.
Compare with uc_cart.module handling of results at line 1308.
Comments
Comment #1
erik seifert commentedSorry i have the same check like uc_cart
is the same like
Do you have an example for me ?
Comment #2
Sborsody commentedSorry I should have been more descriptive.
If $result['success'] is set to TRUE in the return results, uc_ajax_cart pops up a blank message and the item isn't added to the cart. The check to see if there's any return arguments is only the beginning. There can be return arguments that allow a product to get added to a cart. Note also the behavior expected if $result['silent'] is set.
Look at uc_cart.module where it checks success value (and after that silent value).
Comment #3
erik seifert commentedThanks, will be in next version ( next week ).
Comment #4
erik seifert commentedCorrected in 1.0
Comment #5
erik seifert commented- fixed