Сart is empty

In the store, if i add pruduct to cart i see quantity and subtotal on a right side of our store.

Example:

Products: 2

Subtotal: $87.92

when i click “View cart” I get text “Your cart is empty”.



Do you have any ideas why?

thanx.

Delete cockies and try again or use firefox.

I am having the same problem and neither of these solutions works for me. I have emptied the cookies and temp files. Restarted the browser and restarted the computer. I have gone to a second computer and am having this issue on it as well.

Okay, in panick mode now. I need help fixing this problem. We are losing money!

Fixed! I had the ip address listed in the config file and had to change it over to the domain name. Thank you CS Support!

Hello I am having the same issue. Could you please let me know which exact config file you have to modify.



Thank You,

-cs

config.php is the only config file.

[quote name=‘SpiderWasp’]Fixed! I had the ip address listed in the config file and had to change it over to the domain name. Thank you CS Support![/QUOTE]



Sorry, I’m new at this. Could you please explain exactly what and where within the file did you change?



Many thanks!!

Tis ok my friend…



In your open Shop directory is a file called “Config.php”



Download it and open it up in Notepad. Look for where it says:



```php

// Host and directory where cs-cart is installed on usual server

$cscart_http_host = ‘123.123.12.34’.co.uk’;

$cscart_http_dir = ‘/cartfolder’;



// Host and directory where cs-cart is installed on secure server

$cscart_https_host = ‘123.123.12.34’;

$cscart_https_dir = ‘/cartfolder’; ```



The likelyhood is that yours look like this one above. This just means its listing the server address instead of the domain names. Change to the format found below:



```php

// Host and directory where cs-cart is installed on usual server

$cscart_http_host = ‘www.yourdomain.co.uk’;

$cscart_http_dir = ‘/cartfolder’;



// Host and directory where cs-cart is installed on secure server

$cscart_https_host = ‘www.yourdomain.co.uk’;

$cscart_https_dir = ‘/cartfolder’; ```



This is very simple. if you look above these two entries it actually tells you how to fill each entry in.

The secure part of the site cant run that way so it never uses cookies.

Any questions you can always PM me as i tend to forget i posted lol.



Dan

Hello Dan, and thanks a lot for the answer.



The thing is, my config.php was fine and still have the same problem:



// Host and directory where cs-cart is installed on usual server

$cscart_http_host = ‘www.xlote.com’;

$cscart_http_dir = ‘’;



Do you know any other solutions, please?



Best regards,

Luciano.

can you post up your config.php?.. obviously blank out the database bit at the top to stop nasty people connecting to it lol



Im sure one of us on here will spot the problem as im sure its with the file. If its not it with the security element of the cart. But id start like i say by posting it up.

Also try putting in a backslash in the cart folder path. I assume the cart installed in your open Public_HTML folder?!



e.g.





// Host and directory where cs-cart is installed on usual server

$cscart_http_host = ‘www.xlote.com’;

$cscart_http_dir = '';





Dan

Hello Dan and thank you again for the reply!



Please see the config.php below.



Best regards,

Luciano.



```php

// Host and directory where cs-cart is installed on usual server

$cscart_http_host = ‘www.xlote.com’;

$cscart_http_dir = ‘’;



// Host and directory where cs-cart is installed on secure server

$cscart_https_host = ‘www.xlote.com’;

$cscart_https_dir = ‘/ssl’;



$admin_index = ‘admin.php’;

$customer_index = ‘index.php’;

$partner_index = ‘partner.php’;

$image_index = ‘image.php’;



$target_name = ‘target’;

$mode_name = ‘mode’;

$action_name = ‘action’;



// DEMO mode

$demo_mode = false;



// Trial mode

$trial_mode = false;



error_reporting(E_ALL ^ E_NOTICE);

ini_set(“display_errors”, “on”);

//

// Load local config data

//

@include_once(CSCART_DIR . DS . ‘local_conf.php’);



//

// Directory definitions

//



// Filesystem paths



define(‘CORE_DIR’, CSCART_DIR . DS . ‘core’ . DS);

define(‘CLASSES_DIR’, CSCART_DIR . DS . ‘classes’ . DS);

define(‘ADDONS_DIR’, CSCART_DIR . DS . ‘addons’ . DS);

define(‘SKINS_DIR’, CSCART_DIR . DS . ‘skins’ . DS);

define(‘COMMON_DIR’, CSCART_DIR . DS . ‘include’ . DS . ‘common’ . DS);

define(‘ADMIN_DIR’, CSCART_DIR . DS . ‘include’ . DS . ‘admin’ . DS);

define(‘TARGETS_DIR’, CSCART_DIR . DS . ‘targets’.DS);

define(‘CUSTOMER_DIR’, CSCART_DIR .DS. ‘include’ .DS. ‘customer’ .DS);

define(‘PARTNER_DIR’, CSCART_DIR .DS. ‘include’ .DS. ‘partner’ .DS);

define(‘PAYMENT_FILES_DIR’, CSCART_DIR . DS . ‘payments’ . DS);

define(‘SHIPPING_FILES_DIR’, CSCART_DIR . DS . ‘shippings’ . DS);



$var_dir = array(

‘log’ => CSCART_DIR . DS .‘var’ . DS . ‘log’ . DS,

‘compiled’ => CSCART_DIR . DS .‘var’ . DS . ‘compiled’ . DS,

‘database’ => CSCART_DIR . DS .‘var’ . DS . ‘database’ . DS,

‘downloads’ => CSCART_DIR . DS .‘var’ . DS . ‘downloads’ . DS,

‘upgrade’ => CSCART_DIR . DS .‘var’ . DS . ‘upgrade’ . DS,

‘exim’ => CSCART_DIR . DS .‘var’ . DS . ‘exim’ . DS,

);



require CORE_DIR . ‘https_detect.php’;



// Define host directory depending on the current connection

define(‘CSCART_HOST_DIR’, (defined(‘HTTPS’)) ? $cscart_https_dir : $cscart_http_dir);



// Directory for store images on file system

define(‘IMAGES_STORAGE_DIR’, CSCART_DIR . DS .‘images’ . DS);

define(‘IMAGES_STORAGE_WEB_DIR’, CSCART_HOST_DIR . ‘/images/’);



// Web paths

define(‘SKINS_REL_DIR’, ‘skins/’); // Used for web path



$http_location = “http://$cscart_http_host”.$cscart_http_dir;

$https_location = “https://$cscart_https_host”.$cscart_https_dir;

$current_location = (defined(‘HTTPS’)) ? $https_location : $http_location;



//

// Database tables aliases…

//

$db_tables = array(

‘categories’ => ‘cscart_categories’,

‘category_descriptions’ => ‘cscart_category_descriptions’,

‘category_images’ => ‘cscart_category_images’,

‘category_images_links’ => ‘cscart_category_images_links’,

‘currencies’ => ‘cscart_currencies’,

‘currency_descriptions’ => ‘cscart_currency_descriptions’,

‘common_images’ => ‘cscart_common_images’,

‘common_images_links’ => ‘cscart_common_images_links’,

‘detailed_images’ => ‘cscart_detailed_images’,

‘products’ => ‘cscart_products’,

‘product_descriptions’ => ‘cscart_product_descriptions’,

‘products_categories’ => ‘cscart_products_categories’,

‘product_prices’ => ‘cscart_product_prices’,

‘products_taxes’ => ‘cscart_products_taxes’,

‘users’ => ‘cscart_users’,

‘user_profiles’ => ‘cscart_user_profiles’,

‘user_data’ => ‘cscart_user_data’,

‘sessions’ => ‘cscart_sessions’,

‘product_images’ => ‘cscart_product_images’,

‘product_images_links’ => ‘cscart_product_images_links’,

‘languages’ => ‘cscart_languages’,

‘language_values’ => ‘cscart_language_values’,

‘memberships’ => ‘cscart_memberships’,

‘membership_descriptions’ => ‘cscart_membership_descriptions’,

‘states’ => ‘cscart_states’,

‘state_descriptions’ => ‘cscart_state_descriptions’,

‘orders’ => ‘cscart_orders’,

‘order_details’ => ‘cscart_order_details’,

‘taxes’ => ‘cscart_taxes’,

‘tax_descriptions’ => ‘cscart_tax_descriptions’,

‘tax_rates’ => ‘cscart_tax_rates’,

‘shippings’ => ‘cscart_shippings’,

‘shipping_descriptions’ => ‘cscart_shipping_descriptions’,

‘shipping_rates’ => ‘cscart_shipping_rates’,

‘discounts’ => ‘cscart_discounts’,

‘discount_coupons_used’ => ‘cscart_discount_coupons_used’,

‘discount_descriptions’ => ‘cscart_discount_descriptions’,

‘discounts_categories’ => ‘cscart_discounts_categories’,

‘discounts_users’ => ‘cscart_discounts_users’,

‘discounts_products’ => ‘cscart_discounts_products’,

‘destination_descriptions’ => ‘cscart_destination_descriptions’,

‘destinations’ => ‘cscart_destinations’,

‘destination_elements’ => ‘cscart_destination_elements’,

‘countries’ => ‘cscart_countries’,

‘country_descriptions’ => ‘cscart_country_descriptions’,

‘payments’ => ‘cscart_payments’,

‘payment_descriptions’ => ‘cscart_payment_descriptions’,

‘payment_processors’ => ‘cscart_payment_processors’,

‘common_descriptions’ => ‘cscart_common_descriptions’,

‘settings’ => ‘cscart_settings’,

‘settings_sections’ => ‘cscart_settings_sections’,

‘settings_subsections’ => ‘cscart_settings_subsections’,

‘settings_routines’ => ‘cscart_settings_routines’,

‘settings_elements’ => ‘cscart_settings_elements’,

‘settings_descriptions’ => ‘cscart_settings_descriptions’,

‘settings_variants’ => ‘cscart_settings_variants’,

‘topics’ => ‘cscart_topics’,

‘topic_descriptions’ => ‘cscart_topic_descriptions’,

‘pages’ => ‘cscart_pages’,

‘page_descriptions’ => ‘cscart_page_descriptions’,

‘pages_topics’ => ‘cscart_pages_topics’,

‘ekeys’ => ‘cscart_ekeys’,

‘sitemap_links’ => ‘cscart_sitemap_links’,

‘sitemap_sections’ => ‘cscart_sitemap_sections’,

‘static_data’ => ‘cscart_static_data’,

‘static_data_descriptions’ => ‘cscart_static_data_descriptions’,

‘statistics_element_descriptions’ => ‘cscart_statistics_element_descriptions’,

‘statistics_elements’ => ‘cscart_statistics_elements’,

‘statistics_interval_descriptions’ => ‘cscart_statistics_interval_descriptions’,

‘statistics_intervals’ => ‘cscart_statistics_intervals’,

‘statistics_reports’ => ‘cscart_statistics_reports’,

‘statistics_report_descriptions’ => ‘cscart_statistics_report_descriptions’,

‘statistics_tables’ => ‘cscart_statistics_tables’,

‘statistics_table_descriptions’ => ‘cscart_statistics_table_descriptions’,

‘statistics_table_conditions’ => ‘cscart_statistics_table_conditions’,

‘statistics_table_elements’ => ‘cscart_statistics_table_elements’,

‘statistics_table_element_conditions’ => ‘cscart_statistics_table_element_conditions’,

‘product_options’ => ‘cscart_product_options’,

‘product_options_descriptions’ => ‘cscart_product_options_descriptions’,

‘product_options_exceptions’ => ‘cscart_product_options_exceptions’,

‘product_option_variants’ => ‘cscart_product_option_variants’,

‘product_option_variants_descriptions’ => ‘cscart_product_option_variants_descriptions’,

‘product_options_inventory’ => ‘cscart_product_options_inventory’,

‘product_global_option_links’ => ‘cscart_product_global_option_links’,

‘new_orders’ => ‘cscart_new_orders’,

‘product_features’ => ‘cscart_product_features’,

‘product_features_values’ => ‘cscart_product_features_values’,

‘product_features_variants_descriptions’ => ‘cscart_product_features_variants_descriptions’,

‘product_features_descriptions’ => ‘cscart_product_features_descriptions’,

‘forms’ => ‘cscart_forms’,

‘form_elements’ => ‘cscart_form_elements’,

‘form_element_variants’ => ‘cscart_form_element_variants’,

‘form_descriptions’ => ‘cscart_form_descriptions’,

‘shipping_services’ => ‘cscart_shipping_services’,

‘shipping_service_descriptions’ => ‘cscart_shipping_service_descriptions’,

‘membership_privileges’ => ‘cscart_membership_privileges’,

‘privileges’ => ‘cscart_privileges’,

‘privilege_descriptions’ => ‘cscart_privilege_descriptions’,

‘shippings_taxes’ => ‘cscart_shippings_taxes’,

‘order_data’ => ‘cscart_order_data’,

‘statuses’ => ‘cscart_statuses’,

‘status_descriptions’ => ‘cscart_status_descriptions’,

‘status_data’ => ‘cscart_status_data’,

‘profile_fields’ => ‘cscart_profile_fields’,

‘profile_field_values’ => ‘cscart_profile_field_values’,

‘profile_field_descriptions’ => ‘cscart_profile_field_descriptions’,

‘profile_fields_data’ => ‘cscart_profile_fields_data’,

‘user_session_products’ => ‘cscart_user_session_products’,

‘product_option_images_links’ => ‘cscart_product_option_images_links’,

‘currency_codes’ => ‘cscart_currency_codes’,

‘currency_code_descriptions’ => ‘cscart_currency_code_descriptions’,

‘exim_layouts’ => ‘cscart_exim_layouts’

);



//

// Default targets

//

$script_targets = array (

‘home’ => TARGETS_DIR . ‘home.php’,

‘categories’ => TARGETS_DIR . ‘categories.php’,

‘products’ => TARGETS_DIR . ‘products.php’,

‘cart’ => TARGETS_DIR . ‘cart.php’,

‘help’ => TARGETS_DIR . ‘help.php’,

‘index’ => TARGETS_DIR . ‘index.php’,

‘auth’ => TARGETS_DIR . ‘auth.php’,

‘profiles’ => TARGETS_DIR . ‘profiles.php’,

‘languages’ => TARGETS_DIR . ‘languages.php’,

‘settings’ => TARGETS_DIR . ‘settings.php’,

‘settings_dev’ => TARGETS_DIR . ‘settings_dev.php’,

‘states’ => TARGETS_DIR . ‘states.php’,

‘shippings’ => TARGETS_DIR . ‘shippings.php’,

‘discounts’ => TARGETS_DIR . ‘discounts.php’,

‘checkout’ => TARGETS_DIR . ‘checkout.php’,

‘orders’ => TARGETS_DIR . ‘orders.php’,

‘taxes’ => TARGETS_DIR . ‘taxes.php’,

‘memberships’ => TARGETS_DIR . ‘memberships.php’,

‘destinations’ => TARGETS_DIR . ‘destinations.php’,

‘countries’ => TARGETS_DIR . ‘countries.php’,

‘payments’ => TARGETS_DIR . ‘payments.php’,

‘tools’ => TARGETS_DIR . ‘tools.php’,

‘html_catalog’ => TARGETS_DIR . ‘html_catalog.php’,

‘topics’ => TARGETS_DIR . ‘topics.php’,

‘pages’ => TARGETS_DIR . ‘pages.php’,

‘sitemap’ => TARGETS_DIR . ‘sitemap.php’,

‘exceptions’ => TARGETS_DIR . ‘exceptions.php’,

‘search’ => TARGETS_DIR . ‘search.php’,

‘statistics’ => TARGETS_DIR . ‘statistics.php’,

‘static_data’ => TARGETS_DIR . ‘static_data.php’,

‘product_options’ => TARGETS_DIR . ‘product_options.php’,

‘file_browser’ => TARGETS_DIR . ‘file_browser.php’,

‘client_env’ => TARGETS_DIR . ‘client_env.php’,

‘payment_notification’ => TARGETS_DIR . ‘payment_notification.php’,

‘template_editor’ => TARGETS_DIR . ‘template_editor.php’,

‘product_features’ => TARGETS_DIR . ‘product_features.php’,

‘site_layout’ => TARGETS_DIR . ‘site_layout.php’,

‘upgrade_center’ => TARGETS_DIR . ‘upgrade_center.php’,

‘skin_selector’ => TARGETS_DIR . ‘skin_selector.php’,

‘forms’ => TARGETS_DIR . ‘forms.php’,

‘my_account’ => TARGETS_DIR . ‘my_account.php’,

‘currencies’ => TARGETS_DIR . ‘currencies.php’,

‘order_management’ => TARGETS_DIR . ‘order_management.php’,

‘logs’ => TARGETS_DIR . ‘logs.php’,

‘statuses’ => TARGETS_DIR . ‘statuses.php’,

‘profile_fields’ => TARGETS_DIR . ‘profile_fields.php’,

‘license’ => TARGETS_DIR . ‘license.php’,

‘database’ => TARGETS_DIR . ‘database.php’,

‘image_verification’ => TARGETS_DIR . ‘image_verification.php’,

‘xml_feeds’ => TARGETS_DIR . ‘xml_feeds.php’,

‘exim’ => TARGETS_DIR . ‘exim.php’,

‘graph’ => TARGETS_DIR . ‘graph.php’,

);



//

// Days of week

//

define(‘SUNDAY’, 0);

define(‘MONDAY’, 1);

define(‘TUESDAY’, 2);

define(‘WEDNESDAY’, 3);

define(‘THURSDAY’, 4);

define(‘FRIDAY’, 5);

define(‘SATURDAY’, 6);



define(‘STATUSES_ORDER’, ‘O’);



define(‘NOT_A_MEMBER’, 0);

define(‘ALL_MEMBERSHIPS’, -1);



//

// Check if logging is enabled

//



if (file_exists($var_dir[‘log’].‘settings.php’)) {

include $var_dir[‘log’].‘settings.php’;

}



if (defined(‘LOG_PHP_EVENTS’)) {

ini_set(“log_errors”, 1);

if (!file_exists($var_dir[‘log’].‘php_events_’.date(“Y-m-d”).‘.log.php’)) {

$fd = @fopen($var_dir[‘log’].‘php_events_’.date(“Y-m-d”).‘.log.php’, ‘w’);

@fwrite($fd, “\n”);

@fclose($fd);

}

ini_set(“error_log”, $var_dir[‘log’].‘php_events_’.date(“Y-m-d”).‘.log.php’);

ini_set(“ignore_repeated_errors”, 1);

}



// BlowFish key

$crypt_key = ‘YOURVERYSECRETKEY’;



// Database layer

$db_type = ‘mysql’;



// Set the session name

// C - for customer area

// A - for admin area

// The different session names for areas allows you to

// log in as customer and admin in one browser instance

$CSCART_SESSION_NAMES = array(‘C’ => ‘csid’, ‘A’ => ‘acsid’, ‘P’ => ‘psid’);



// List of file extensions which the uploaded or renamed via admin area

// file can not has.

$forbidden_file_extensions = array (

‘php’,

‘php3’,

‘pl’,

‘com’,

‘exe’,

‘bat’,

‘cgi’,

‘htaccess’

);



// Locations that can be viewed via secure connection (customer area)

$secure_targets = array (

‘checkout’,

‘payment_notification’,

‘auth’,

‘profiles’,

‘orders’,

‘forms’

);



// Uncomment this line if you experience problems with mysql5 server

//define(‘MYSQL5’, true);



// Delimiter for SEF urls

define(‘CS_SEO_DELIMITER’, ‘-’);



// Live Time for permanent cookies (currency, language, etc…)

define(‘COOKIE_ALIVE_TIME’, 606024*7); // one week



//define(‘LICENSE_USED’, true);



// Used in installation script

define(‘INSTALL_DB_EXECUTION’, 3600);



// Set memory amount

@ini_set(‘memory_limit’, ‘12M’);

```

Hi,



we have cs-cart hosted on a host with some other parked domains which are in fact the same host. The host directory in config.php is set to the main URL. So if someone uses the main URL, the cart behaves fine. But using other domains will result in empty cart. How could I have more than one domain supported by the cart? :confused:



Thanks,



Ramin.

Um… ok



are those domains pointing to anything… if not try setting up a 301 redirect to force the domain name to be correct.

[quote name=‘12voltshop’]Um… ok



are those domains pointing to anything… if not try setting up a 301 redirect to force the domain name to be correct.[/QUOTE]



Sorry mate, I’m not sure what you mean?



Thanks,

Luciano.

[quote name=‘12voltshop’]

are those domains pointing to anything… if not try setting up a 301 redirect to force the domain name to be correct.[/QUOTE]



Thanks for your post.



I contacted helpdesk and they said CS-Cart doesn’t support multiple domains.

So I had to redirect one of the domains to the other one (this is the domain which is in config.php).