CRE Loaded Community



Board index » CRE Loaded PCI 6.4 » CRE Loaded PCI 6.4 Support

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Posible session problem, cart empty on logo click
PostPosted: Sun Mar 14, 2010 9:39 pm 
Offline
CRE Freak
User avatar

Joined: Sun Apr 17, 2005 12:00 am
Posts: 104
Hi,
I noticed today that if I add an item to the basket and then click the shop logo to return to the main page or if I click another custom links, the cart gets emptied, also if I visit a page that doesn’t have the session id in the end the cart gets emptied.

I did few modifications last few days but I don’t think is because of them because initially I undone everything and the problem was still present. What I did in the end was clear the cookies, and all the private data and now its working fine, I even done all the modifications again and its still working, I cant recreate the error anymore, but I think it wasn’t only me, because all the orders from yesterday only had 1 item, one customer placed 2 orders one after another both with only 1 item.

What I changed, well first I fixed the timezone on the server and sql, see my post here for the modifications:

In admin/includes/languages/englis.php ~line 75 and after includes/languages/englis.php ~line 32 after:
Code:
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

ADD:
Code:
date_default_timezone_set('Europe/London');

- In admin/includes/languages/espanol.php after ~line 76 and includes/languages/espanol.php after ~line 20:
Code:
@setlocale(LC_TIME, 'Spanish');

ADD:
Code:
date_default_timezone_set('Europe/Madrid');

- In admin/includes/configure.php and /includes/configure.php in the end add:
Code:
define('CONFIG_TIME_ZONE', '+00:00');

- In admin/includes/functions/database.php and /includes/functions/database.php ~ line 22 changed:
Code:
if ($$link) mysql_select_db($database);

WITH:
Code:
  if ($$link) {
      mysql_select_db($database);
      tep_db_query('SET time_zone=\'' . CONFIG_TIME_ZONE . '\'');
   }

Then because I have products (Gifts) for £0 that I offer free with the order and I wanted a way to stop people to buy only the gift, I change the shopping_cart.tpl.php, footer.php, header.php so when the total amount of the products from the basket is <1 the checkout button and links are hidden:

In /httpdocs/templates/cre63_ats/header.php change:
Code:
<?php echo tep_image(DIR_WS_TEMPLATE_IMAGES . 'top_link_arrow.png');?><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo MENU_TEXT_CHECKOUT;?></a>

WITH:
Code:
<?php 
if ($cart->show_total() >= 1){   
?>
<?php echo tep_image(DIR_WS_TEMPLATE_IMAGES . 'top_link_arrow.png');?><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo MENU_TEXT_CHECKOUT;?></a>
   <?php } ?>

In /httpdocs/templates/cre63_ats/footer.php Changed:
Code:
<a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo MENU_TEXT_CHECKOUT; ?></a> |

With:
Code:
<?php 
    if ($cart->show_total() >= 1)
  ?>
    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo MENU_TEXT_CHECKOUT; ?></a> |
  <?php } ?>


Anybody find any problem with any of the modifications, after I cleared the cookies, even with all this modifications its working ok, for now.


Top
 Profile  
 
 Post subject: Re: Posible session problem, cart empty on logo click
PostPosted: Mon Mar 15, 2010 10:53 am 
Offline
CRE Newbie

Joined: Mon Feb 22, 2010 10:24 am
Posts: 23
I don't suppose it would be that easy but, have you checked the URL that is loaded when you click on the store logo? Is it by any chance different from the one used for the cart (for example with or without the www prefix for the domain, using a parked domain in the logo link instead of the one in the configuration). If you post a link to the page where you are experiencing issues people could take a look and test it. I have carefully went through the changes you have made but they should not have cause any troubles.


Top
 Profile  
 
 Post subject: Re: Posible session problem, cart empty on logo click
PostPosted: Mon Mar 15, 2010 11:09 am 
Offline
CRE Freak
User avatar

Joined: Sun Apr 17, 2005 12:00 am
Posts: 104
The url is the default url created by the store branding, i havent changed any other code there, www or without should not make any diference because i in the htaccess i have the following rerite rule to change to from cexy.co.uk to www.cexy.co.uk

Code:
RewriteCond %{HTTP_HOST} ^cexy.co.uk [NC]
RewriteRule ^(.*)$ http://www.cexy.co.uk/$1 [L,R=301]


and the following code to tranfer the index.php to www.cexy.co.uk
Code:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.cexy.co.uk/ [R=301,L]


Like i said its odd because i tried it yesterday in FF and IE8 and the same was in both, and after i cleared the cookies and all temp fils it apears to be working fine at least in my end, I was a bit worried that maybe the code i changed was the problem but if you check the code and its fine, then i'm relieved.

Thank you Sal I really apreciate your post.


Top
 Profile  
 
 Post subject: Re: Posible session problem, cart empty on logo click
PostPosted: Wed Mar 17, 2010 3:11 am 
Offline
CRE Newbie

Joined: Mon Feb 22, 2010 10:24 am
Posts: 23
Works without any troubles for me also. I have tried adding a product than clicked the logo - the product remained in my cart. As you described it seems it was only a cache issue. Your customers should not experience any troubles.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Board index » CRE Loaded PCI 6.4 » CRE Loaded PCI 6.4 Support

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Fri Jul 30, 2010 11:55 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Top Listing

1. Credit Card with CCV
    Category: Payment Modules
    
2. CC7333_ATS
    Category: Templates
    
3. Points & Rewards PLUS!...
    Category: Add-Ons
    
4. One Page Checkout...
    Category: Fixes
    
5. Configuration Server...
    Category: Fixes
    
Show more...

Follow Us on Twitter

@likeOMGitsFEDAY we do offer a wiki and other resources at www.creloaded.org
@smellgoodslady 6.2 is old code, we are at 6.4 now. come and get the latest.
@smellgoodslady what version/release are you running?
CRE Secure in the news: Payment News Article about Hosted Payment Pages reducing PCI friction - http://is.gd/ba0CH
@smellgoodslady yes it should work for 6.2 as well. let me know of you have any issues.

CRE Loaded Community Chat hosted by CRE Loaded.

Join now


Chat about what's on your mind. More about public chats.


© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy