I've got a problem whenever you click on the "show cart" link.
In IE you cannot reach the page and you will be redirected to the frontpage or you get a 404 page.
In Firefox you get the page, but overthere is the problem that 2 x "Your Cart is currently empty" is shown.
So you get "Your Cart is currently empty.Your Cart is currently empty."
http://www.thehotmeltcompany.com/en/View-your-cart-content.htmlI checked out the difference between the original basket.php and the basket.php that was enclosed with the childlist hack.
original:
| Code: : |
global $weight_total, $total, $tax_total, $order_tax_details, $discount_factor;
$cart = $_SESSION['cart'];
/* make sure this is the checkout screen */
if ($cart["idx"] == 0) {
echo $VM_LANG->_PHPSHOP_EMPTY_CART;
$checkout = False;
}
else {
$checkout = True;
|
changed file:
| Code: : |
global $weight_total, $total, $tax_total, $cart, $order_tax_details, $discount_factor;
if ($cart["idx"] == 0) {
echo $PHPSHOP_LANG->_PHPSHOP_EMPTY_CART;
$checkout = False;
//my additions
$loc = $_SESSION['referer'];
header("Location: $loc");
}
/* make sure this is the checkout screen */
if ($cart["idx"] == 0) {
echo $VM_LANG->_PHPSHOP_EMPTY_CART;
$checkout = False;
}
else {
$checkout = True;
|
I'm no php specialist, but first thing that stands out is the double language string in the changed file.
Other thing is that I'm missing the following string in the changed file;
| Code: : |
$cart = $_SESSION['cart'];
|
Hope you can help me out with this problem.
I am using VM 1.0.15 and Joomla 1.0.15
WKR Frans