Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

site.ini shop settings walkthrough

The shop settings that live in site.ini - ClearBasketOnCheckout, ClearBasketOnLogout, RedirectAfterAddToBasket, SendOrderEmail and ProductDatatypeStringList in ShopSettings, the BasketCleanup settings in Session, and…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/e-commerce/settings/site-ini-shop-settings-walkthrough.md

On this page

site.ini shop settings walkthrough

This page is for developers and administrators. Some shop behavior is set in settings/site.ini, not in shop.ini, which makes it easy to miss. This page lists every such setting with its shipped value and the reason to change it.

Contents

  1. ShopSettings
  2. Session: basket cleanup
  3. MailSettings used by the order mail
  4. SiteSettings: redirects to a payment provider
  5. Choosing values together

ShopSettings

SettingShippedMeaning
ClearBasketOnCheckoutdisabledThe basket is emptied when shop/checkout has finished, that is after payment. A customer who cancels payment comes back to a full basket
enabledThe basket is emptied as soon as the customer confirms on shop/confirmorder. The comment in site.ini says some payment systems need this; the basket is then gone if payment is cancelled
ClearBasketOnLogoutdisabledLogging out keeps the basket; enabled empties it
RedirectAfterAddToBasketbasketAfter Add to basket the customer sees the basket; reload sends them back to where they were
SendOrderEmailenabledThe confirm order handler sends the order mail to the customer and to the shop; disabled sends none
ProductDatatypeStringList[]commented outThe datatypes that hold prices; when unset, ezprice and ezmultiprice (Custom price datatypes)

What these mean for the customer is described in Basket and checkout flow.

Session: basket cleanup

Baskets belong to sessions. The [Session] block decides how baskets of expired sessions are removed:

SettingShippedMeaning
BasketCleanupcronjobClean up in the basket_cleanup cron script; pageload lets PHP's session handling do it
BasketCleanupTime120Seconds one cleanup run may take
BasketCleanupIdleTime2Seconds of pause between batches, to keep the load down
BasketCleanupFetchLimit3000Baskets fetched per batch
BasketCleanupAverageFrequency10On average the cleanup runs once in ten cron runs

The script basket_cleanup.php is in the infrequent cron part (settings/cronjob.ini), so that part must run (Cron jobs). The Store dashboard warns when basket cleanup would delete baskets kept in PHP sessions.

MailSettings used by the order mail

The shipped confirm order handler (kernel/classes/confirmorderhandlers/ezdefaultconfirmorderhandler.php) uses:

SettingUse
[MailSettings] EmailSenderThe sender of the order mail; if empty, AdminEmail is used
[MailSettings] AdminEmailThe shop's copy of every order mail goes to this address

The mail body and subject come from the template shop/orderemail.tpl. If the shop's copy should go to an order desk rather than the site administrator, that needs a confirm order handler of your own (Basket info and confirm order handlers).

SiteSettings: redirects to a payment provider

A redirect gateway sends the customer to another host. The ezpaypal extension adds [SiteSettings] AllowedRedirectHosts[]=www.paypal.com in its own site.ini.append; a gateway of your own may need the same for its provider's host.

Choosing values together

StoreClearBasketOnCheckoutRedirectAfterAddToBasketClearBasketOnLogout
Few items per orderdisabledbasketdisabled
Many items per orderdisabledreloaddisabled
Gateway documentation requires early clearingenabledas aboveas above
Shared or public computers (kiosk)disabledas aboveenabled

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x