Jump to content

Shoping cart gets empty


Recommended Posts

Hello

 

Can anyne help me please i am going nuts here. I have upgraded to prestashop 1.5.6. And i am still having problems with my shoping cart. When i go to the checkout page or navigate through the site the shopping cart gets empty.

 

The test shop is here: efergy.oriotest.com

The seo & urls settings are as follows:

 

Shop domain : efergy.oriotest.com
SSL domain: efergy.oriotest.com

 I also have enabled the redirect to canonical urls.
 
Any help is more than appreciated.
Link to comment
Share on other sites

 

Hello

 

Can anyne help me please i am going nuts here. I have upgraded to prestashop 1.5.6. And i am still having problems with my shoping cart. When i go to the checkout page or navigate through the site the shopping cart gets empty.

 

The test shop is here: efergy.oriotest.com

 

The seo & urls settings are as follows:

 

Shop domain : efergy.oriotest.com
SSL domain: efergy.oriotest.com

 

 I also have enabled the redirect to canonical urls.

 
Any help is more than appreciated.

 

 

problem solved?

yNoLEOW.png

Link to comment
Share on other sites

hi,

 

i visited your site and find that when someone come on cart page. then cart gets empty.

 

i think you need to check that at your cart page what are $this->content->cart  and $this->content->cookie status.

 

if both have the cart value with the same cart id then your code delete the cart product.

Link to comment
Share on other sites

Do you have some module like: pss_wpinps  ? it´s for read latest articles from your Wordpress Blog. This was my big problem, guest and visitors unlogged cant add articles .... to use this module you need to edit your config.inc.php with this code:

 

// HACK - START
// get WordPress installation directory and path is absolute properties
$pss_wpinps_confs = Configuration::getMultiple(array('PRESTASCOPE_WPIPS_WP_DIR', 
                                                     'PRESTASCOPE_WPIPS_WP_DIR_ABS'));
if (array_key_exists('PRESTASCOPE_WPIPS_WP_DIR', $pss_wpinps_confs) 
&& strlen($pss_wpinps_confs['PRESTASCOPE_WPIPS_WP_DIR'])>0)
{
  // the main Wordpress file location
  $wpinps_filename = $pss_wpinps_confs['PRESTASCOPE_WPIPS_WP_DIR_ABS']=='1'?
                     $pss_wpinps_confs['PRESTASCOPE_WPIPS_WP_DIR'].'wp-load.php':
                     _PS_ROOT_DIR_.'/'.$pss_wpinps_confs['PRESTASCOPE_WPIPS_WP_DIR'].'wp-load.php';
  // not in the admin section or there will be a redeclaration error 
  // for a translate() function defined both in PS and WP
  if (file_exists($wpinps_filename) 
      && !defined('PS_ADMIN_DIR') 
      && !defined('_PS_ADMIN_DIR_')) 
  {
    // load WordPress
    define('WP_USE_THEMES', false);
    require_once($wpinps_filename);
  }
}
// HACK - END
 
-----------------------
 
And this is the reason of cart didnt work correctly.  SO YOU NEED UNINSTALL IT AND CLEAN config.inc.php AS IT WAS BEFORE.
 
Regards,
 
Juan Justamante
 
www.artecdifusion.com
Edited by emblematico (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...