Latest Forum Posts
Home arrow Forum
Design Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Empty cart problem

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1746
Dimage (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Empty cart problem 3 Years, 9 Months ago  
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.html

I 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
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1747
macallf (Admin)
Administrator
Admin
Posts: 655
graph
User Online Now Click here to see the profile of this user
Re:Empty cart problem 3 Years, 9 Months ago  
I have tried your site on both IE7 and Firefox and it works as expected, no 404 error! Unless you try to access the cart page before adding items to the cart. It seems as though the sef extension cannot direct to the correct page until the page has been used.

If I was to point the finger anywhere I would look at your sef extension!!

Oh! and $cart id declared as a global variable!! No need to keep redeclaring it.

I have a double declaration of the empty cart string!! Comment out or delete one of the statements

Code: :

 echo $VM_LANG->_PHPSHOP_EMPTY_CART;



from the code you supplied.

It doesn't matter which as long as one of them is not there.
 
 
Mark
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1750
Dimage (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Empty cart problem 3 Years, 9 Months ago  
Hi Mark,

That's correct, the error only occurs when nothing is in the cart.
Btw; no need to get excited, I wasn't pointing fingers - it was just a question...

I did some more research concerning the frontpage redirect/404.
On my pc I have a local installation with a backup of my site, in which SEF is switched off.
Overthere I have in IE the frontpage redirect but not the 404.
On a local installation without your childlist hack, I have the same problem.
However in FF you can visit the page without anything in the cart normally.
So it looks like it goes wrong somewhere in VM itself.

Uncommenting the mentioned language string did the trick regarding showing "Your Cart is currently empty" twice.
Standaard in IE you will be redirected whenever you want to visit that page, when there are no products in the basket.

So I'm happy with the result.

Thanks a lot for your assist.

Best regards from a sunny Holland,

Frans
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop