Testing the shopping cart
Admin
Instruction
Difficulty level: Intermediate
Configuratie - Objecten - Beheer arrangementen
A shopping cart affects many parts: availability, prices, options, statuses and emails. So test everything before you offer the shopping cart to customers. Test both as a customer on the website and as an administrator in i-Reserve. Preferably use a test environment and your own email address.
Below are test cases you can use. Add situations that apply to your organisation, for example discounts, payment methods or mandatory login.
Preparation
- The shopping cart is switched on: Activating the shopping cart. Open your shopping cart arrangement: the Combi config settings block shows no message that the shopping cart is switched off.
- There is a shopping cart arrangement with at least two products: Creating a shopping cart arrangement.
- The screens of the booking dialog are set up: Add to cart, Shopping cart and Shopping cart columns.
Testing as a customer (website)
| # | What you test | Steps | Expected result |
|---|---|---|---|
| 1 | Book one product | In the booking dialog, choose a product from the shopping cart, choose date and time and click Next. Click Book direct. | Below the cart, cards are shown under Add to cart. After Book direct you continue to confirming (or first to the shopping cart options, if the arrangement has options). |
| 2 | Book two products | Choose product A, date and time, click Next. For product B, click Add to cart, choose date and time, click Next. Click Book direct and complete the booking. | You arrive at the shopping cart page with A and B. In i-Reserve there is one booking with your shopping cart as Arrangement, with two lines of type Child under Related bookings. |
| 3 | Temporary booking blocks | Choose product A, date and time and click Next. In a second browser (or a private window), open the same product on the same date. | The chosen time is not available in the second browser. If you do not complete the first booking, the time becomes available again after the cleanup interval. |
| 4 | Sameday | Set Sameday (timemode only) to Yes. Choose product A from 9:00 to 10:00 and click Add to cart for product B. | Product B opens on the same day, directly after product A. With No you go to the calendar of product B and choose the date and time yourself. |
| 5 | May be booked multiple times = No | Set the setting to No. Put product A in the shopping cart. | Product A is no longer shown under Add to cart. With Yes it is still shown and you can add it again on another day or time. |
| 6 | Max. products in cart | Set the maximum to 2. Put product A in the shopping cart and click Add to cart for product B. Choose date and time and click Next (and Book). | After product B you go straight to Confirm, with A and B. You no longer see Add to cart. |
| 7 | Remove product | Put two products in the shopping cart, go to the shopping cart and click the bin icon for one product. | The product disappears from the shopping cart and the time becomes available again. |
| 8 | Continue shopping | Go to the shopping cart page and click Continue shopping. | You arrive at the last chosen product, with the Add to cart cards. |
| 9 | Shopping cart options | Give the arrangement an option. Fill the shopping cart and click Next on the shopping cart page. Choose an option and complete the booking. | You see the options screen. In i-Reserve the chosen option is on the parent booking. |
| 10 | Email parent | Complete a shopping cart booking with your own email address. | You receive the email that belongs to the first status in the status workflow of the arrangement. |
| 11 | Email children | Repeat the previous test with Status change handle children set to No and then to Yes. | No: only email from the parent. Yes: also an email per child, according to the status workflow of the product. You can see this in the Statuschange block of each booking. |
Testing as an administrator
An administrator can make a shopping cart booking in i-Reserve, for example for a customer who calls.
Creating a shopping cart booking in i-Reserve
- Go to Booking > New booking.
- Under Room type, choose a product from your shopping cart arrangement and fill in date, time and customer.
- In the Final block, tick Add to Shopping Cart and click Save. You only see this tick box if the shopping cart is switched on and the product is part of a shopping cart arrangement.
- You arrive at the parent booking. At the top there is a blue bar: You are editing a shopping cart. The Shopping cart panel shows the first product.
- Go to New booking again and choose the next product. The customer is already filled in. Click Save: the product is added to the same shopping cart.
- In the Shopping cart panel, click Finish editing go to booking (or Finish editing). Closed the panel? Open it again via Click here to show a cart in the blue bar.
Note: if a new booking in i-Reserve immediately gets a status that sends an email or creates an invoice, this already happens with the first product. Check the invoice after adding the other products. If the price differs, the price block of the booking shows the button Synchronise invoice. Which status a new booking made in i-Reserve gets is set in Configuration booking.
| # | What you test | Steps | Expected result |
|---|---|---|---|
| 1 | Create a shopping cart booking in i-Reserve | Follow the steps above with two products and click Finish editing go to booking. | You arrive at one booking with your shopping cart as Arrangement. Under Related bookings both products are shown as Child. The blue bar has gone. |
| 2 | Change the status of the parent | In i-Reserve, change the status of the parent booking, for example from New to Open. | Children with the same status as the parent get the new status as well. |
| 3 | Cancel one child | In i-Reserve, cancel one child booking. | Only that child is cancelled. The parent and the other children stay as they are. |
| 4 | Add a booking in i-Reserve | Open a shopping cart booking and click Add another booking to this shopping cart in the Action block. Make a booking and click Finish editing. | The new booking is added as a child of the existing shopping cart. |
For each test case, write down whether it passed or failed and which booking you used. That makes it easy to find and report an error.
How to handle shopping cart bookings in i-Reserve is described in Managing shopping cart bookings.


