close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Using eCart for Room Service

Thread began 4/11/2013 7:20 am by Heckie | Last modified 4/11/2013 12:01 pm by Heckie | 360 views | 5 replies |

Heckie

Using eCart for Room Service

I would like to set up a system for guests to be able to add room service items to a database using eCart for calculating prices (variable quantities), and pay for it all once they checkout, which may be a week or 14 days later.

The first step is easy - create a normal eCart, then instead of checkout I insert the items into the database on cart.php submission. Each item is stored with a unique GuestID which is created when they log in (session).

What I need to be able to do is to get this information into a secondary (non-editable) eCart basket/cart page to allow them to pay when they checkout.

I can get the relevant items onto a page using a recordset and the GuestID parameter, but I am not sure how I can then generate the checkout for the total amount. I was thinking that I could create a second eCart Object, but I am not sure how to populate from items stored in database, rather than the live eCart session.

Maybe there is a way to just display the items using a standard recordset, then use a PayPal express checkout button with the total amount?

Any help/suggestions would be appreciated.

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Use the eCart get contents from recordset behavior to populate the cart from a recordset

On the server behaviors tab, click the plus button and select eCart -> Add to Cart -> Get Contents from Recordset.

Sign in to reply to this post

Heckie

Ah… thats pretty easy! Thanks for the reply.

Am I right to use 2 eCart objects or will one suffice?

Sign in to reply to this post

Jason ByrnesWebAssist

i would use 2, one for the client that uses no gateway and stores to the database.

the other that is used by the hotel staff, populates from a recordset that looks up all the client charges, and processes through the gateway.

Sign in to reply to this post

Heckie

Thank you - it works as required using 2 eCart objects.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...