Ok, I intend to add a custom option to the product info page. For example, The customer selects whether they require Logo Digitised or Text Only. The latter is Free but if they select logo it will cost £25.00. So to test this out I created a Session id and added it to product info display...
PHP Code:
<?php
session_start();
if(isset($_SESSION['setupcharge']))
$_SESSION['setupcharge'] = $_SESSION['setupcharge'] = 25.00;
echo "Setup Charge = ". $_SESSION['setupcharge'];
?>
I then added the following to tpl_shopping_cart_default.php around line 128...
PHP Code:
<?php if(isset($_SESSION['setupcharge'])) {
$cartShowTotal += $_SESSION['setupcharge']; }
?>
But instead of adding the cost of the product and the new session id it is only displaying the custom $_SESSION['setupcharge], i.e. £25.00?
Why do they not add together?
Bookmarks