Convert view cart to a quick cart using ecart
Hi,
I have just purchased powerstore 3, but I am struggling to understand what files I should customise.
I first want to customise the div in the top right section (div id="links") that contains the Login | Register | view cart links.
I would like to replace view cart with a quick cart with a little image of a cart that displays the quantity and total price in cart. Which file do I edit? and how do I safely delete the current view cart link and replace it without damaging my php code?
I would like to move Login | Register to a different part of the page. Which file do I edit and what code do I move in order not to damage the code.
I think I would need to do this in the main template in order for it to display on all pages but I am not to sure.
<?php
$WA_localRoot = "".$WAGLOBAL_localRoot."";
$WA_remoteRoot = "".$WAGLOBAL_remoteRoot."";
$WA_curURL = strtolower((isset($_SERVER["PHP_SELF"]))?$_SERVER["PHP_SELF"]:"");
$assumedRoot = $WA_remoteRoot;
if ((strpos($WA_curURL,strtolower($WA_localRoot)) !== false && strpos($WA_curURL,strtolower($WA_localRoot)) == 0) && (strlen($WA_localRoot) >= strlen($WA_remoteRoot) || strpos($WA_curURL,strtolower($WA_localRoot)) === 0)) {
$assumedRoot = $WA_localRoot;
}
?>
<?php if(isset($_SESSION["UserID"])) { ?>
<a href="<?php echo($assumedRoot); ?>users_Profile.php">My Profile</a>
<a href="<?php echo($assumedRoot); ?>users_LogOut.php">Log out</a>
<?php } else { ?>
<a href="<?php echo($assumedRoot); ?>users_LogIn.php">Login</a>
<a href="<?php echo($assumedRoot); ?>users_Registration.php">Register</a>
<?php } ?>
<?php if(isset($_SESSION["WA_Store_Cart_Items"]) && $_SESSION["WA_Store_Cart_Items"] != "") { ?>
<a href="<?php echo($assumedRoot); ?>cart.php">View Cart</a>
<?php } ?>
</div>
I am not sure what the first block of php code relates to. If I move the Login and Register blocks of php code to another div will I have to move the first block of code with it? If so will this effect the View Cart link php code.