10 replies [Last post]
Mink's picture
Offline
Joined: 08/08/2007
Juice: 66
Was this information Helpful?

I found the information cached in google for the Checkout Panes that are used to make new fields for checkout (Checkout Panes) However there is a file that shows as being attached in the cache of the page "favorite_band.tar" which I am wanting to locate if anyone has a copy so that I may have some exra guidance on creating the pane that would set the file that my invoice loads. Either that or if there is anything that anyone things they can add to what the page says to help me out?

Thanks in advance!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Checkout Panes

We should get the docs back online today. In the meantime, here's the download. (It may be outdated now, unfortunately. Sad )

Oh yeah, this version is from January. Definitely been a few changes since then.

AttachmentSize
favorite_band.tar 5 KB
Mink's picture
Offline
Joined: 08/08/2007
Juice: 66
Re: Re: Checkout Panes

But as I said, I am not very good at PHP so having code (even outdated code) is a good place to start. I am much better when I have something to look at and learn from. Thanks alot. Laughing out loud

Mink's picture
Offline
Joined: 08/08/2007
Juice: 66
Re: Re: Re: Checkout Panes

Well unfortunately while I was able to take your code and work it out well enough to get the module created, it is not adding the pane to the order system. I think I am missing something somewhere. Otherwise though it is going well. I can't seem to get to the cached page either. Sticking out tongue

If anyone could take a quick look at the file and tell me (other than some language improvements) what I might be missing? Thanks!

Edit: Forgot to mention, it is not showing up in the Checkout configuration for the Panes either.

AttachmentSize
uc_bill_file.zip 1.58 KB
marshal's picture
Offline
Cool profile pic award.
Joined: 08/09/2007
Juice: 28
I see two things offhand: 1)

I see two things offhand:

1) Your module is supposed to be called uc_bill_file, but the info and module files are for bill_fille. The install file is a different name, so it is not executed. All your filenames should start with uc_bill_file.

2) Your hook_checkout_pane() is billing_file_checkout_pane() instead of uc_billing_file_checkout_pane(). In general, all of your function should begin with the complete module name to avoid collisions.

Mink's picture
Offline
Joined: 08/08/2007
Juice: 66
Re: I see two things offhand: 1)

Thank you, I am very new to PHP so this has been a big learning experience for me. I will correct everything and post if I still have trouble.

Mink's picture
Offline
Joined: 08/08/2007
Juice: 66
Re: Re: I see two things offhand: 1)

Thanks for the help. After tweaking a bit (including normalising the names for everything) I was able to get it to show in the "Checkout Configuration" however it is not showing up when I create an order. Any suggestions?

AttachmentSize
uc_bill_module.zip 1.64 KB
2shortstories's picture
Offline
Joined: 08/29/2007
Juice: 73
Re: Re: Re: I see two things offhand: 1)

hi, any luck in getting the new checkout pane to show up on your order records? I'm looking to do the same thing. thanks for your reply

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re: I see two things offhand: 1)

Hey guys, to get the data to show up on your order pages, you're going to have to make an order pane that corresponds to the checkout pane. Unfortunately... I was never able to document the order panes back in the day. I'll try to take care of that today, as it's loooong overdue.

2shortstories's picture
Offline
Joined: 08/29/2007
Juice: 73
hi ryan, sorry to be a pain

hi ryan,
sorry to be a pain but did you get the chance to update documentation about this?
thanks!!!!!!!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: hi ryan, sorry to be a pain

It's a work in progress... hoping to fill in the blanks today.

http://www.ubercart.org/docs/api/hook_order_pane