Changing time for saving basket

ladyanne

Avatar: ladyanne

2012-07-11 00:06

How can I change the time for saving the basket from 72 hours to another time.

» Quick.Cart v5.x

ladyanne

boboo

Avatar: boboo

2012-07-11 05:49

/core/orders.php
function saveBasket
line:
if( $iTime - substr( $iKey, 0, 10 ) >= 259200 )

259200 = 72 * 3600 [it means the count of seconds]

qc-plugins.kimla.de

ladyanne

Avatar: ladyanne

2012-07-11 12:18

Thank you boboo,
is it also possible to delete the whole function including the buttom?
ladyanne

ladyanne

boboo

Avatar: boboo

2012-07-11 13:04

Additionally:
the saveBasket time triggered by click on "remember basket" is to set in
/actions/pages-orders.php
in the 13th or 14th line:
if( isset( $_POST['sRemember'] ) ){
setCookie( 'sCustomer'.LANGUAGE, md5( $_SESSION['iCustomer'.LANGUAGE] ), time( ) + 259200 );

qc-plugins.kimla.de

xtremeno18

No avatar

2012-07-13 12:08

I tried it:

if( isset( $_POST['sRemember'] ) ){
setCookie( 'sCustomer'.LANGUAGE, md5( $_SESSION['iCustomer'.LANGUAGE] ), time( ) + 259200 );

But get some error. Is taht right code.
-------------------------------------------------------------
http://xtremeno.smart-reviews.com

Back to top
about us | contact