Shopping cart page
From Zen Cart(tm) Wiki
The Shopping_cart page is explained here.
Configuration options
This table below shows most of the configuration options including language text for the Shopping_cart page. It is based on a ZenCart version 1.3.0. Before editing files copy the original file (if not done before) to YOUR_TEMPLATE directory.
Copy image and button files
- from includes\templates\template_default\images\..... to includes\templates\YOUR_TEMPLATE\images\.....
- from includes\templates\template_default\buttons\..... to includes\templates\YOUR_TEMPLATE\buttons\.....
Copy language files
- from includes\language\..... to includes\language\YOUR_TEMPLATE\.....
- from includes\language\english\..... to includes\language\english\YOUR_TEMPLATE\.....
See also Customisation - Templates
| Name | Default value | How to change |
|---|---|---|
| TEXT_VISITORS_CART | '<a href="javascript:session_win();">[help (?)]</a>' | Edit language file shopping_cart.php near line 29 in the directory includes\languages\english\YOUR_TEMPLATE |
| HEADING_TITLE | 'Your Shopping Cart Contents' | Edit language file shopping_cart.php near line 11 in the directory includes\languages\english\YOUR_TEMPLATE |
| TEXT_INFORMATION | 'You may want to add some instructions for using the shopping cart here. (defined in includes/languages/english/shopping_cart.php)' | Edit language file shopping_cart.php near line 13 in the directory includes\languages\english\YOUR_TEMPLATE |
| STOCK_ALLOW_CHECKOUT | true | Change this in ADMIN Configuration --> Stock --> Allow Checkout. Allow customer to checkout even if there is insufficient stock |
| OUT_OF_STOCK_CAN_CHECKOUT | 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' are out of stock. Items not in stock will be placed on backorder.' | Edit language file shopping_cart.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE |
| OUT_OF_STOCK_CANT_CHECKOUT | 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' are out of stock or there are not enough in stock to fill your order. Please change the quantity of products marked with (' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '). Thank you' | Edit language file shopping_cart.php near line 22 in the directory includes\languages\english\YOUR_TEMPLATE |
| TABLE_HEADING_QUANTITY | 'Qty.' | Edit language file english.php near line 574 in the directory includes\languages\YOUR_TEMPLATE |
| TABLE_HEADING_PRODUCTS | 'Item Name' | Edit language file english.php near line 575 in the directory includes\languages\YOUR_TEMPLATE |
| TABLE_HEADING_PRICE | 'Unit' | Edit language file shopping_cart.php near line 17 in the directory includes\languages\english\YOUR_TEMPLATE |
| TABLE_HEADING_TOTAL | 'Total' | Edit language file english.php near line 576 in the directory includes\languages\YOUR_TEMPLATE |
| TEXT_OPTION_DIVIDER | ' - ' | Edit language file shopping_cart.php near line 30 in the directory includes\languages\english\YOUR_TEMPLATE |
| ICON_IMAGE_TRASH | File:Small delete.gif | Edit icon image file 'small_delete.gif' in the directory includes\templates\YOUR_TEMPLATE\images\icons\ with a graphic tool |
| ICON_TRASH_ALT | 'Delete this item from the cart by clicking this icon.' | Edit icon names file icon_names.php near line 21 in the directory includes\languages\english\YOUR_TEMPLATE |
| SUB_TITLE_SUB_TOTAL | 'Sub-Total:' | Edit language file shopping_cart.php near line 19 in the directory includes\languages\english\YOUR_TEMPLATE |
| BUTTON_IMAGE_CHECKOUT | File:Button checkout.gif | Edit button image file 'button_checkout.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool |
| BUTTON_CHECKOUT_ALT | 'Checkout' | Edit button names file button_names.php near line 71 in the directory includes\languages\english\YOUR_TEMPLATE. Note: This text will be visible when your hover over this button. |
| BUTTON_IMAGE_CONTINUE_SHOPPING | File:Button continue shopping.gif | Edit button image file 'button_continue_shopping.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool |
| BUTTON_CONTINUE_SHOPPING_ALT | 'Continue Shopping' | Edit button names file button_names.php near line 75 in the directory includes\languages\english\YOUR_TEMPLATE. Note: This text will be visible when your hover over this button. |
| SHOW_SHOPPING_CART_UPDATE | 3 | Change this in ADMIN Configuration --> Stock --> Show Shopping Cart - Update Cart Button Location. Show on Shopping Cart Update Cart Button Location as: 1= Next to each Qty Box 2= Below all Products 3= Both Next to each Qty Box and Below all Products Note: this setting controls which of 3 tpl_shopping_cart_default files are called |
| ICON_IMAGE_UPDATE | File:Button update cart.gif | Edit icon image file 'button_update_cart.gif' in the directory includes\templates\YOUR_TEMPLATE\images\icons\ with a graphic tool |
| ICON_UPDATE_ALT | 'Change your quantity by highlighting the number in the box, correcting the quantity and clicking this button.' | Edit icon names file icon_names.php near line 22 in the directory includes\languages\english\YOUR_TEMPLATE |
| SHOW_SHIPPING_ESTIMATOR_BUTTON | 1 | Change this in ADMIN Configuration --> Shipping/Packaging --> Shipping Estimator Display Settings for Shopping Cart. 0= Off 1= Display as Button on Shopping Cart 2= Display as Listing on Shopping Cart Page |
| BUTTON_IMAGE_SHIPPING_ESTIMATOR | File:Button shipping estimator.gif | Edit button image file 'button_shipping_estimator.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool |
| BUTTON_SHIPPING_ESTIMATOR_ALT | 'Shipping Estimator' | Edit button names file button_names.php near line 90 in the directory includes\languages\english\YOUR_TEMPLATE. Note: This text will be visible when your hover over this button. |
| TEXT_CART_EMPTY | 'Your Shopping Cart is empty.' | Edit language file shopping_cart.php near line 18 in the directory includes\languages\english\YOUR_TEMPLATE |
| NAVBAR_TITLE | 'The Shopping Cart' | Edit language file shopping_cart.php near line 10 in the directory includes\languages\english\YOUR_TEMPLATE |
| ERROR_CART_UPDATE | 'Please update your order ... ' | Edit language file english.php near line 532 in the directory includes\languages\YOUR_TEMPLATE |
| SHOW_TOTALS_IN_CART | 1 | Change this in ADMIN Configuration --> Layout Settings --> Shopping Cart - Show Totals. Show Totals Above Shopping Cart? 0= off 1= on: Items Weight Amount 2= on: Items Weight Amount, but no weight when 0 3= on: Items Amount |
| TEXT_TOTAL_ITEMS | 'Total Items: ' | Edit language file shopping_cart.php near line 25 in the directory includes\languages\english\YOUR_TEMPLATE |
| TEXT_TOTAL_WEIGHT | ' Weight: ' | Edit language file shopping_cart.php near line 26 in the directory includes\languages\english\YOUR_TEMPLATE |
| TEXT_PRODUCT_WEIGHT_UNIT | 'lbs' | Edit language file english.php near line 377 in the directory includes\languages\YOUR_TEMPLATE |
| TEXT_TOTAL_AMOUNT | ' Amount: ' | Edit language file shopping_cart.php near line 27 in the directory includes\languages\english\YOUR_TEMPLATE |
| SHOW_SHOPPING_CART_DELETE | 3 | Change this in ADMIN Configuration --> Stock --> Show Shopping Cart - Delete Checkboxes or Delete Button. Show on Shopping Cart Delete Button and/or Checkboxes 1= Delete Button Only 2= Checkbox Only 3= Both Delete Button and Checkbox |
| STOCK_CHECK | true | Change this in ADMIN Configuration --> Stock --> Check stock level. Check to see if sufficent stock is available |
| PRODUCTS_OPTIONS_SORT_ORDER | 0 | Change this in ADMIN Configuration --> Product Info --> Products Info - Products Option Name Sort Order. Sort order of Option Names for Products Info 0= Sort Order, Option Name 1= Option Name |
| PRODUCTS_OPTIONS_VALUES_TEXT_ID | 0 | Change this in ADMIN Configuration --> Module Options --> ID for text and file products options values. Numeric value of the products_options_values_id used by the text and file attributes. |
| IMAGE_SHOPPING_CART_STATUS | 1 | Change this in ADMIN Configuration --> Images --> Image - Shopping Cart Status. Show product image in the shopping cart? 0= off 1= on |
| IMAGE_SHOPPING_CART_WIDTH | 50 | Change this in ADMIN Configuration --> Images --> Image - Shopping Cart Width. Default = 50 |
| IMAGE_SHOPPING_CART_HEIGHT | 40 | Change this in ADMIN Configuration --> Images --> Image - Shopping Cart Height. Default = 40 |
NOTE: This table is made by looking for defines in the following files:
- includes\modules\pages\shopping_cart\header_php.php
- includes\templates\template_default\templates\tpl_shopping_cart_default.php
Defines (configuration options) are defined in:
- Configuration table in the database
- includes\languages\english.php
- includes\languages\english\button_names.php
- includes\languages\english\icon_names.php
- includes\languages\english\shopping_cart.php
Product type configuration option are ignored
