Configuring shopping cart in JBZoo

7.0/10 rating (4 votes)

The cart is based on the item submission forms. We use heavily modified forms of the standard ZOO. This allows us to use various field types in the form (strings, radio, checkboxes and even attach files). All of them will go through validation like in an usual item submission form.

We'll review the cart configuration from the start. We'll make something similar to the cart on a demo site.

Firstly, you need to make a separate JBZoo application (new tab). For your convenience, you can give it an "orders" alias. All orders from the cart will be saved here.

Create a new submission in this application:

Make it published

Disable item edit

Access level - public

In the "Types" section select an "Order Form" for the "Order" type

Go to the "Config" and select the "Cart" tab. Set these parameters:

Enable cart - yes. It allows this application to accept new submissions from the website.

JBPrice Advance - you must enable this option if you are using JBPrice Advance element for your prices.

Only authorized - as you wish.

Submission form - choose the one that was created in the previous step.

Template order form - it is better to choose preinstalled "Order / Order Form".

Currency - default currency.

Administrator email - notifications will be sent to this email when there are new orders.

Element for user email - if you have an "E-mail" element in your "Order" type, you can use it to send notifications to anonymous users.

Email templates - email layouts, you can leave it as default.

Other settings are optional. You can read their descriptions in the tooltips.

So the application is now configured as a shopping cart. It's better not to use it for any other purposes or item types, or else it will become messy.

Enabling cart module

Go to the module manager and create a new "JBZoo Cart" module or use an existing one. This module displays cart information and a link to the cart page. Specify these parameters in the basic settings:

Application - choose the one that we created earlier (Orders)

Choose a currency

Choose a menu item where cart items will be displayed. It is useful for managing modules on the cart page.

Template settings are optional and self-explanatory. Don't be afraid to try them and see what is better for you. Also, don't forget to publish this module and put it in some position and choose menu assignment.

Configure Order templates layouts (optionally)

It is important to remember about "JBZoo Cart Items" element. While invisible for the frontend, it is displayed during item editing (with an "Order" type). It plays an important role of saving selected products to a database. Then it displays them in the admin panel.

Still gotta questions, who can help me?

Visit our special JBZoo tech support forum which is specifically meant for JBZoo so the priority of the response and its promptness are much better there than in any other place. With inactive account with a “Plus” sign in a tariff plan you can ask for support in one of these sections or use any of our contacts.

The Joomla! name is used under a limited license from Open Source Matters in the United States and other countries.
JBZoo is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.