If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / "Add to cart" problem: "Your Shopping Cart Is Empty"

"Add to cart" problem: "Your Shopping Cart Is Empty"

Started by polik on 15 Jun 2011, 6:37 PM · Views: 2,832

Results 1 to 12 of 12
15 Jun 2011, 6:37 PM
#1
polik avatar

polik

New Zenner

Join Date:
Oct 2010
Location:
Meath, Ireland
Posts:
25
Plugin Contributions:
0

"Add to cart" problem: "Your Shopping Cart Is Empty"

Hi,

I have a problem with "add to cart" button. I've check all the settings in admin (everything fine) and this button works only for "new product for..." page. On product page and others is saying after clicking "Your Shopping Cart is empty."

Do you think that's because COWOA is installed?

ZC v 1.3.9g

Many thanks.

19 Jun 2011, 9:06 AM
#2
polik avatar

polik

New Zenner

Join Date:
Oct 2010
Location:
Meath, Ireland
Posts:
25
Plugin Contributions:
0

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

I upgrade to 1.3.9h and still nothing. Where did I make mistake? Could anyone point me in right direction please - what to check, where to look ...

Thanks

19 Jun 2011, 9:25 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

As a default install does not exhibit this I suspect that it is from something you have added and maybe incorrectly

Zen-Venom Get Bitten

19 Jun 2011, 9:45 PM
#4
polik avatar

polik

New Zenner

Join Date:
Oct 2010
Location:
Meath, Ireland
Posts:
25
Plugin Contributions:
0

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

Hi Kobra,

Thanks for reply.

I check all added mod's and whole structure once again and let know everyone.

Hope that this time I'll find something.

Many thanks.

26 Jun 2011, 3:06 PM
#5
polik avatar

polik

New Zenner

Join Date:
Oct 2010
Location:
Meath, Ireland
Posts:
25
Plugin Contributions:
0

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

Hi all ,

COWOA uninstalled, whole structure of additional mod's check, upgraded to v 139h and still nothing. Can not add product to shopping cart. The only thing is that product displayed in "NEW PRODUCT FOR..." can be added to cart anything else nope.

Can anyone tell me what is going on in my zc?

Many thanks

26 Jun 2011, 7:54 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

Can anyone tell me what is going on in my zc?
Back out your add on modules

OR if you have done this correctly for most that can use overrides and you have done this you can switch to the classic template and see if the issue persists - - this will only narrow the issue to some overridden file in your template structure

COWOA alters core files BTW - so replace those with standard default files

Zen-Venom Get Bitten

26 Jun 2011, 8:10 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

What's the URL?
Which browsers are you using? Is it the same with all?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Jun 2011, 6:07 PM
#8
polik avatar

polik

New Zenner

Join Date:
Oct 2010
Location:
Meath, Ireland
Posts:
25
Plugin Contributions:
0

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

Thanks all for advices ...

I replace all COWOA with standard default files, run SQL from backup in Cpanel and it works !!!

Problem gone !!!

Thanks a million, I did not expect that SQL might be an issue... (Sorry - I'm beginner in this).

BACKUP, BACKUP and once again BACKUP !!!

P.S. DrByte the problem was with all browser - I test that on Safari, Firefox, Chrome.

19 Dec 2011, 6:20 AM
#9
mrraj2985 avatar

mrraj2985

New Zenner

Join Date:
Dec 2011
Posts:
1
Plugin Contributions:
0

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

One Solution of this problem is to go to configure.php in your folder and set define('STORE_SESSIONS', 'db') to define('STORE_SESSIONS', '')

8 Feb 2012, 11:27 PM
#10
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

Hi Zen Cart community,

I have encountered the same problem, which came out after the installation of a dedicated SSL certificate with webhostingpad.com. The shopping cart doesn't work properly, in fact when a user click on add item, is redirected to okidoqui.com/shopping_cart that displays "Your Shopping Cart is Empty".

Some details about my system:

  • Web Site: https://www.okidoqui.com
  • Server OS: Linux 2.6.18-338.19.1.el5.lve0.8.36
  • PHP Version: 5.2.17
  • Zen Cart 1.3.8a
  • Database Patch Level: 1.3.8

I already studied previous threads such as:

and the tutorial:

I guess that the problem occurs because of the .htaccess file, but I am not sure. Here attached the .htaccess file:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.okidoqui.com/$1 [R,L]

RewriteEngine On
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On

RewriteBase /

# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]

RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]

RewriteRule ^(.+) index.php?/$1 [E=VAR1:$1,QSA,L]
#### EOF SSU

AuthName okidoqui.com
AuthUserFile /home2/okidoqui/public_html/_vti_pvt/service.pwd
AuthGroupFile /home2/okidoqui/public_html/_vti_pvt/service.grp
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^megatradecenter\.com$ "http\:\/\/www\.okidoqui\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^megatradecenter.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.megatradecenter.com$
RewriteRule ^/?$ "http\:\/\/www\.okidoqui\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^okidoqui\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.okidoqui\.com$
RewriteRule ^/?$ "https\:\/\/www\.okidoqui\.com\/" [R=301,L]

# From Ultimate SEO URLs

RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]

RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]

RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]

RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]

RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]

RewriteRule ^(.*)-ezp-([0-9]+).html$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]

# For Open Operations Info Manager

RewriteRule ^(.*)-i-([0-9]+).html$ index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]

# For dreamscape's News & Articles Manager

RewriteRule ^news/?$ index\.php?main_page=news&%{QUERY_STRING} [L]

RewriteRule ^news/rss.xml$ index\.php?main_page=news_rss&%{QUERY_STRING} [L]

RewriteRule ^news/archive/?$ index\.php?main_page=news_archive&%{QUERY_STRING} [L]

RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index\.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]

RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index\.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]

RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index\.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]

RewriteRule ^news/(.*)-a-([0-9]+).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]

# All other pages

# Don't rewrite real files or directories

RewriteCond %{REQUEST_FILENAME} !-f [NC] 

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]

If I take out the first three lines, which activate the redirection to https, the shopping cart works wonderfully. I need the SSL connection and I need your help.

You will also find the public_html/includes/configure.php file as follow:

<?php
/**
 * @package Configuration Settings circa 1.3.8
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */
 
//additional keywords for products//
$oquikeywords = ',deals, cheap price';
//end additional keywords

/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
/***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/
include_once('includes/config_sites/sites_switch.php');

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  define('HTTP_SERVER', 'https://www.okidoqui.com');
  define('HTTPS_SERVER', 'https://www.okidoqui.com');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/okidoqui/public_html/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', '');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', '***************');
  define('DB_SERVER_PASSWORD', '***************');
  define('DB_DATABASE', '**************');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db');
  // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash
  define('SQL_CACHE_METHOD', 'none');
  define('DIR_FS_SQL_CACHE', '/home/okidoqui/public_html/cache/');

// EOF

I checked out with the hosting provider, which says that the SSL installation works fine and after looking at the SSL tutorial for Zen Cart, they say that are complying with it.

Hoping that someone can help me out. Thanks.

All best :-)

9 Feb 2012, 12:15 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

You reference home2 in the .htaccess and home in the configure.php ... does that mean anything is miss coded? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Feb 2012, 9:04 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: "Add to cart" problem: "Your Shopping Cart Is Empty"

You really need to upgrade to a more secure version of the software.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.