
Originally Posted by
ropu
try doing a
PHP Code:
session_destroy():
and then re-run the code.
I'm not surre how/where to do this. Should i put at the top of the template file or ??
I deleted all the entries in the sessions table. But still did not solve.
Below is my relevant code in my template file:
PHP Code:
<?php
include('includes/classes/shopping_cart.php');
$cart = $_SESSION['cart'];
echo $cart;
if ( MODULE_PAYMENT_GOOGLECHECKOUT_VIRTUAL_GOODS == 'True' && $cart->get_content_type() != 'physical' ) {
echo '<p class="productGeneral">Blah blah blah.</p><br />';
}
?>
But when
PHP Code:
include('includes/classes/shopping_cart.php');
is located as above the product_info_display page does not fully load.
and I see error in error log as just explained.
Code:
PHP Fatal error: Cannot redeclare class shoppingcart
If I remove the include then the page loads fine but no text displays reporting the product is a download product.
What am I doing wrong? I think I'm going in circles.
Woody
Bookmarks