Skip to content

Commit

Permalink
#7: Additional file needed to sync the remembered cart
Browse files Browse the repository at this point in the history
Add the init-file to restore the customer's cart when they've been
"remembered".
  • Loading branch information
lat9 committed Oct 20, 2017
1 parent 214f584 commit a7aa715
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions includes/init_includes/init_remembered_cart.php
@@ -0,0 +1,17 @@
<?php
// -----
// Part of the "Remember Me" plugin, modified for operation under Zen Cart v1.5.0 and later
// by Cindy Merkin (aka lat9) of Vinos de Frutas Tropicales (vinosdefrutastropicales.com).
//
// Copyright (C) 2017, Vinos de Frutas Tropicales
//
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

// -----
// Restore the "remembered" customer's cart contents, if the current session was restored.
// The plugin's observer-class will perform that restoration if the current page-load
// resulted in the customer being "remembered".
//
$remember_me->restoreRememberedCart();

0 comments on commit a7aa715

Please sign in to comment.