Jump to content
kalibug

click the add to cart button and it saids cart empty

Recommended Posts

I click on an item in my store and when I hit the button,  it says cart is empty

deleted the cart and reload it something.

I don't know what i did wrong..

thank you

verison info below

Version Checker pixel_trans.gif
Installed Version: OSCOM CE Phoenix v1.0.1.1
pixel_trans.gif

You are running the latest version of OSCOM CE Phoenix.

 

Screenshot from 2019-07-26 14-14-50.png

Share this post


Link to post
Share on other sites

Check that each of th shopping carts are actualy turned on ie set to true, Then check your error log for clues as to what is failing.


 

Share this post


Link to post
Share on other sites
Posted (edited)

Also your site is giving mixed content erros, try fixing the SSL as it can cause odd behavior.

 

image.png.1438da8b35e82450b70c67957197541f.png

Edited by JcMagpie

 

Share this post


Link to post
Share on other sites
3 hours ago, kalibug said:

I click on an item in my store and when I hit the button,  it says cart is empty

A common cause of that is an incorrectly setup configure file. If it was working before, did you make any recent changes? If it never worked, then post your includes/configure.php file here, without the database credentials near the bottom, and someone will take a look at it.

Share this post


Link to post
Share on other sites

here both config files.. i did change the admin directory name

but blanked it out.

thank you 

Naomi

shop/includes/

 

<?php
  define('HTTP_SERVER', 'http://herasonlinemarket.com');
  define('HTTPS_SERVER', 'https://herasonlinemarket.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/shop/');
  define('HTTPS_COOKIE_PATH', '/shop/');
  define('DIR_WS_HTTP_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');

  define('DIR_FS_CATALOG', '/home/herasonl/public_html/shop/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'xxxxxxxxxxxxx');
  define('DB_SERVER_PASSWORD' ,'xxxxxxxxxxxx');
  define('DB_DATABASE', 'xxxxxxxxxxx');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'America/Los_Angeles');

 

 

shop/admin(name has been changed)/includes

define('HTTP_SERVER', 'http://herasonlinemarket.com');
  define('HTTPS_SERVER', 'https://herasonlinemarket.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/shop/xxxxxxxxxx');
  define('HTTPS_COOKIE_PATH', '/shop/xxxxxxxxx');
  define('HTTP_CATALOG_SERVER', 'http://herasonlinemarket.com');
  define('HTTPS_CATALOG_SERVER', 'http://herasonlinemarket.com');
  define('ENABLE_SSL_CATALOG', 'true');
  define('DIR_FS_DOCUMENT_ROOT', '/home/herasonl/public_html/shop/');
  define('DIR_WS_ADMIN', '/shop/xxxxxxxxx/');
  define('DIR_WS_HTTPS_ADMIN', '/shop/peacenow/');
  define('DIR_FS_ADMIN', '/home/herasonl/public_html/shop/xxxxxxxxxxx/');
  define('DIR_WS_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');
  define('DIR_FS_CATALOG', '/home/herasonl/public_html/shop/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'xxxxxxxxxxxxxx');
  define('DB_SERVER_PASSWORD', 'xxxxxxxxxxxxxx'');
  define('DB_DATABASE'.'xxxxxxxxxxx');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'America/Los_Angeles');

Share this post


Link to post
Share on other sites
Posted (edited)

@kalibug

Also, is your SSL certificate set up correctly  (www.shopname.com -vs- shopname.com) to match your actual URL (you are listing your shop URL *without* the www.). It makes a difference.

Edited by ArtcoInc

Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites
13 minutes ago, kgtee said:

If SSL is enabled, then set the first two lines, both HTTP_SERVER and HTTPS_SERVER to https://herasonlinemarket.com.

This is a classic issue which is not documented anywhere. 😄

yep that was it.. I put in the s and marked it as true.. shopping cart now works.. thank you

i figured it was something stupid i  miss

 

Share this post


Link to post
Share on other sites

@kalibug Besides the two changes mentioned, you need to change all of the instances of http: to https. The first one in the admin is a security hole.

Share this post


Link to post
Share on other sites

thank you i got it..seems to work well.. I transferred over from zencart.  I couldn't get the pixel to fire correctly.. I have lots of work.  it's working now,

 

thank you so much

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×