RSS Feed

It was brought to my attention some time ago that some clients were experiencing errors with our “Biome” CubeCart skin installed.  This error seems to be dependent on the hosting environment.  I have been issuing a solution to this issue on a per request basis.  However, it’s about time that this solution be released publically.  Note:  This issue has been resolved in our Catalyst CubeCart skin and only affects the following versions of “Biome”: v1.0 - v1.2.

Issue: When viewing the cart pages, the following error is displayed:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/8/2/s8238732c/html/includes/boxes/cartNavi.inc.php:95)in /home/content/s/8/2/s8238732c/html/includes/boxes/shoppingCart.inc.php on line 174 )

This issue can be resolved as follows:

OPEN: root/cart.php
- where “root” is the path to the directory in which CubeCart is installed on your server.

FIND:

include("includes/boxes/cartNavi.inc.php");
$body->assign("CART_NAVI",$box_content);
// START: AJAX Add To Cart - ShopDev.co.uk
  include("includes/boxes/shoppingCart.inc.php");
  $body->assign("SHOPPING_CART",$box_content);
// END: AJAX Add To Cart - ShopDev.co.uk

REPLACE WITH:

// START: AJAX Add To Cart - ShopDev.co.uk
if ($_GET['act'] == 'cart') {
  setcookie("noItems", $cart->noItems());
}
// END: AJAX Add To Cart - ShopDev.co.uk
include("includes/boxes/cartNavi.inc.php");
$body->assign("CART_NAVI",$box_content);

SAVE & UPLOAD: cart.php TO: root/
- where “root” is the path to the directory in which CubeCart is installed on your server.





<a href="http://www.mysite.com/">some site</a>
<blockquote>quote</blockquote>
<em>some emphasized text</em>
<strong>some bold text</strong>
<pre lang="">some code</pre>
To add code to your comments, simply wrap the code inside <pre> tags. Syntax highlighting will be added if you define the language. Example:
<pre lang="php">some code</pre>

Supported "lang" attribute values: html4strict, css, php, javascript, xml & mysql