Hi there, I think this is a support request. I have been Googling for hours now without finding a solution to this problem.

I have set up event registration through the Ubercart Event Registration (ver 6.x-1.5) and when one is logged into Drupal, the amount of the event shows up in the cart:

http://ewlyn.com/graphics/ubercartworking.png

However, when one is not logged into the system and attempts to check out, they get $0.00 as the cost:

http://ewlyn.com/graphics/ubercartnotworking.png

However, the correct total shows up below in the total. I assume this is a permissions issue but I cannot figure out where to toggle it to allow those not logged in to view the correct amount.

Anyone have any idea? It's driving me batty. Thanks!

CommentFileSizeAuthor
#5 Screen Shot 2013-02-09 at 1.35.26 PM.png60.87 KBewlyn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ewlyn’s picture

Project: Ubercart » Ubercart Event Registration

Trying to get images to show up.

TR’s picture

Version: 6.x-2.10 » 6.x-1.5
Component: Cart/checkout » Main Module

Moving to the Ubercart Event Registration queue.

AndyF’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

I haven't seen that behaviour before. Would you mind answering the following Qs:

1. What happens if you try to go through checkout as an anonymous user?
2. What other Ubercart modules do you have installed (if any)?
3. Can anonymous users add other kinds of products to their carts ok?
4. Do you have the quantity textfield present? What value is in it for anonymous users?
5. Can an anonymous user fill out a webform?

Thanks,

Andy

ewlyn’s picture

Status: Postponed (maintainer needs more info) » Active

Hi Andy,

You can see it live in action here if you wish: http://ma-ena.org/content/case-studies-cen-review-course

1) Behaves exactly the same as an authenticated user except that the cart contents display $0 instead of the amount. However, Order total preview for both shows the correct amount.

2) I have Ubercart and uc event registration.

3) They only have the option of adding one - or all three - of the events listed on that link above.

4) Quantity text field? I'm not sure what you mean by that. If you mean can someone change the quantity, no. It is set to 1 per register and they cannot change it.

5) Yes, a number of anonymous users have registered via the form. However, a number have stopped at the cart since it indicates the amount is $0. Those who have clicked through to PayPal have been able to pay no problem and the correct amount gets sent to PayPal... it is just confusing people that the cart contents display $0.

This error also sometimes pops up when one reviews their order, but not always: "warning: Division by zero in ...sites/all/modules/ubercart/uc_cart/uc_cart.pages.inc on line 311."

That is why I originally put this in Ubercart support but it got moved over here.

Let me know if I can give any more info to help or take screen shots or try anything else.

AndyF’s picture

Thanks for that. Re #4, there should be a quantity textfield called uc_event_quantity as part of the paidevent (it should be added by default). Does it exist? If not did you remove it? If you create a new webform is the quantity textfield there?

Thanks

ewlyn’s picture

I see what you mean. Yes, there is, it is set to one.

I didn't touch any of the default stuff, just added the webform fields they wanted.

I assume you are talking about the field in the attached?

AndyF’s picture

Yes, that's the one. Sorry if I'm missing something obvious, but I can't see the quantity textfield on any of the paidevent forms you linked to...?

ewlyn’s picture

Yeah, you're right and that's weird. When I am logged in it shows up with Quantity: 1 as the top field - but when I log out of the system it doesn't show up... but I have no clue why. I didn't touch anything or set anything to make it vanish or appear.

However, I just created a test event and it shows up for that both when logged in and logged out... so clearly I must have done something, but I have no clue what, so I will go look through the settings yet again to see if I can unravel this mystery. :/

AndyF’s picture

OK, good luck. Let me know if you get stuck.

ewlyn’s picture

Ok... I solved it and it was stupid. For some reason the quantity field was marked as "private" on the previous ones - no clue why - but unchecking that seems to have solved it.

Thank you so much for your help, Andy, for what turned out to be something I resolved myself. However, without you asking me about the quantity field thing I don't think I ever would have solved that, so thank you for taking the time to help me.

AndyF’s picture

Status: Active » Fixed

No worries, glad it worked out.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Changed images to URL path since trying to embed them in an image tag was not working for some reason.