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.

CommentFileSizeAuthor
#8 screen.jpg266.42 KBTom Kraft
#1 2011-01-21_172935.jpg84.51 KBNZXT.
#1 2011-01-21_172857.jpg66.28 KBNZXT.

Comments

NZXT.’s picture

Issue tags: +Drupal 6 module, +ecommerce, +Simple Cart
StatusFileSize
new66.28 KB
new84.51 KB

I 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!

Hek’s picture

I 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) {"

vladsavitsky’s picture

Assigned: Unassigned » vladsavitsky
Status: Active » Needs work

Yes. Seems that I have changed API at last minute before release module and forgot to check cart page.

vladsavitsky’s picture

I 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.

vladsavitsky’s picture

This module works with fields created by CCK Money field module.
In next version it will be more strong requirement and easy to setup too.

vladsavitsky’s picture

Status: Needs work » Closed (fixed)

Fixed in 6.x-1.1
Checkout: http://drupal.org/node/1039826

vladsavitsky’s picture

Status: Closed (fixed) » Fixed
Tom Kraft’s picture

StatusFileSize
new266.42 KB

Thanks 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.

vladsavitsky’s picture

spacekraft,
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.

Tom Kraft’s picture

Hi 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

eboss’s picture

I found this trouble too, I use lampp 1.7.1 (linux) as web server package, how to solve it?

vladsavitsky’s picture

Can 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.

eboss’s picture

Version: 6.x-1.0 » 6.x-1.1

I don't know where I can check HTTP header, could you guide me how to?

vladsavitsky’s picture

I'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).

vladsavitsky’s picture

Ok. 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.

vladsavitsky’s picture

Status: Fixed » Closed (duplicate)
vladsavitsky’s picture

Fixed in 6.x-1.2 (http://drupal.org/node/1063934).