So glad to see this model released. It does exactly want I need without all the complexity of Ubercart. I'm having on issue however. I created a field called price as required as a decimal. The number format module works, adding the decimal and commas where needed.
When I go to the product node and sellect "add to cart" I get an spinning animation (ajax I assume) icon with "working..." When I go to my cart it item is listed as added to my cart but the price isn't there. Is this a bug or do I need to add some other config?
Thanks for any help.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | screen.jpg | 266.42 KB | Tom Kraft |
| #1 | 2011-01-21_172935.jpg | 84.51 KB | NZXT. |
| #1 | 2011-01-21_172857.jpg | 66.28 KB | NZXT. |
Comments
Comment #1
NZXT. commentedI have the related problems
In the cart Total Sum always 0.00$ and after i remove all products from cart some errors appears saing about "Invalid argument supplied for foreach()".
Thanks! Greate Simple Cart!
Comment #2
Hek commentedI replaced the file simple_cart.theme.inc in line 20 "
count($list)" on "count($list['items'])" and on file simple_cart.api.inc in line 263 replace "if ($cart_items !== FALSE) {" on "if ($cart_items['items'] != 0) {"Comment #3
vladsavitsky commentedYes. Seems that I have changed API at last minute before release module and forgot to check cart page.
Comment #4
vladsavitsky commentedI have checked code.
To nzxt:
At 2011-01-21_172935.jpg seems that you created node with price correctly but you should also select which field should be used as price at simple_cart module settings page:
admin/settings/simple_cart/content_types
So find your content type and set price field.
What was wring - empty item in select box was missing. So you're probably visit this page and found that your field is selected (but this was the only one item in list) and didn't submit form with settings.
I'll fix this. Thanks.
Error message at 264 line was already fixed by me.
Error message at 27 line I will investigate.
Comment #5
vladsavitsky commentedThis module works with fields created by CCK Money field module.
In next version it will be more strong requirement and easy to setup too.
Comment #6
vladsavitsky commentedFixed in 6.x-1.1
Checkout: http://drupal.org/node/1039826
Comment #7
vladsavitsky commentedComment #8
Tom Kraft commentedThanks Vlad, I installed the Money module and the necessary additional modules Money requires. I'm running into 2 issues both viewed with the attached screen capture:
1. Add to cart still gets the loading animation with the text "working" that doesn't go away.
2. It does add the item to the cart but when it adds up the total it doesn't use the correct money formatting.
...getting closer though. Thanks for looking into these.
Comment #9
vladsavitsky commentedspacekraft,
Tell me please: do you use local web-server?
Does drupal placed in webroot or in subfolder?
AJAX call is not finishing but items to cart has been added. Am I understand right?
About money formatting.
Did you configure price field with default settings or you changed something?
Thanks.
Comment #10
Tom Kraft commentedHi Vlad. I'm using developing locally, so a local server. Drupal's folder in in the web root.
Correct, AJAX call is not completing. I does add it to the cart however the amount in the cart does not show the correct total when multiple items are in the cart and the USD format I indicated in the number format config does not apply to the total.
If it makes sense, I can move the test site to my server to see if this is a local issue...Thanks
Comment #11
eboss commentedI found this trouble too, I use lampp 1.7.1 (linux) as web server package, how to solve it?
Comment #12
vladsavitsky commentedCan you check HTTP headers for AJAX calls when you press 'Add to Cart' button?
Does server responds at all?
Post this headers here please or send it to me directly using contact form at this site.
Comment #13
eboss commentedI don't know where I can check HTTP header, could you guide me how to?
Comment #14
vladsavitsky commentedI'm using Live HTTP addon for Firefox.
(in menu Tools/View HTTP headers)
Or you can use Firebug addon for Firefox.
(click bug icon at the bottom right and click tab Net. Than choose first item (main HTML document) and than you can see HTTP headers. Seems that this way doesn't allow to check AJAX calls).
Comment #15
vladsavitsky commentedOk. I have fixed problem with endless ajax throbber in HEAD.
Let's close this issue and mark as duplicate of http://drupal.org/node/1048198 - just for easy issue management.
Comment #16
vladsavitsky commentedComment #17
vladsavitsky commentedFixed in 6.x-1.2 (http://drupal.org/node/1063934).