Cart settings

Last updated on
5 October 2017

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Cart Settings:

There is a text box that lets you enter the redirect URL for a customer who has added an item to his or her cart. By default, this redirects to the shopping cart view page. You may leave this field blank or enter <none> to disable the redirect or enter any other Drupal path to redirect to upon adding an item.

There is a text box which lets you specify a minimum order subtotal for checkout if applicable for your store. Customers who attempt to proceed to checkout will see an error message indicating the store's minimum order total.

The anonymous cart settings section lets you specify how long products should sit in an anonymous user's cart before they are removed from the database. For this to work properly, you must have a cron job running for your Drupal site. You can either configure a crontab to execute your site's cron.php or use a module work-around like Poor Man's Cron. See also Drupal's cron job documentation.

There is a similar section that lets you adjust the setting for an authenticated user (anyone who has logged in to your site).

Two settings pertain to the continue shopping function on the cart view page. You may specify whether it should be a text link or a button element and what URL it should send the customer to.

Finally, the shopping cart view page has a breadcrumb that just defaults to the front page since it is not normally part of a site's structure. You may set a breadcrumb link to direct your customers to any other certain navigational page you want (like back to the catalog) or just remove it altogether by wiping out the URL and text settings.

Cart Panes:

Cart panes are used to build the display of the cart view page. You should keep the Default cart form enabled unless you have another module providing alternate functionality. Using the menu here you may enable/disable any of the panes and adjust their display order by changing their weight.

Shopping Cart Block:

If you go to the configuration page for the shopping cart block, you are presented with several options. Some are standard Drupal settings, others are specific to Ubercart. The first section titled "Block specific settings" is covered here.

The first text field lets you rename the block if you want. Overriding the default title will remove its ability to collapse/expand to hide the cart contents. If you want to do this, then set the title to something and be sure to choose to expand the block by default if you want to show the cart contents.

The next set of checkboxes are pretty self-explanatory. Choose the options you want and give your cart block a whirl! It's best to test the entire ordering process before opening your site to customers. Choose the settings that you think will best enable your customers to complete an order.

For our sites with a 3 column layout, if the cart is in a column by itself we like turning it off on administrative and order view pages. To accomplish this from the cart block configuration page, use the text area labeled Page specific visibility settings. Keep the first radio select box marked and enter the following lines in the text area:

admin
admin/*
user/*/order/*

As of Ubercart 2.x, you should be aware that with normal or aggressive page caching turned on, the shopping cart block will display a static message instructing the user to view their cart when the user is not logged in. For anonymous users, the entire generated HTML for a page is cached, which has resulted in stale shopping cart block data in the past. To fix this, the entire block was made static for anonymous users, and we're eagerly awaiting a working version of the UC AJAX Cart contrib for Ubercart 2.0 to get around this. However, please be aware that this is not a bug in the code. It's an accommodation to a limitation of Drupal's page caching system.

Help improve this page

Page status: No known problems

You can: