Zen Cart Logo
Forums / Managing Customers and Orders / Deleting items from customer cart

Deleting items from customer cart

Locked

Views: 7,824

Results 21 to 33 of 33
This thread is locked. New replies are disabled.
24 Feb 2007, 4:16 PM
#21
dehaw avatar

dehaw

Zen Follower

Join Date:
Feb 2005
Location:
Lochgelly :: Fife :: Scotland :: UK
Posts:
423
Plugin Contributions:
0

Deleting items from customer cart

Hi Ajeh,

I just want the client to have the ability to delete the product if they no longer wish to proceed with the payment, the delete button is there so i want it to be able to be used.

currently the product options in admin are set to:

Product Qty Units: 1
Product Qty Min/Unit Mix: no
Products Quantity: 0
Product Qty Minimum: 1
Product Qty Maximum: 0
Products Shipping Weight: 0
Product Priced by Attributes: no

check stock level: false
subtrack stock: false
allow checkout: yes

Show Shopping Cart - Delete Checkboxes or Delete Button: 3
Show Shopping Cart - Update Cart Button Location: 1

I hope this helps.

I added two different products to the cart and none get deleted.

Derek

24 Feb 2007, 4:25 PM
#22
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleting items from customer cart

Have you an URL where we can see this?

Sounds like you have something messed up on the template ...

24 Feb 2007, 4:36 PM
#24
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleting items from customer cart

You have too many errors on your site to test anything ...

For giggles, switch to the Classic Template ... does it work now?

If so, the errors are in your template files and you need to compare them to the originals ...

Beyond Compare from scootersoftware.com is a great tool for this ...

24 Feb 2007, 4:45 PM
#25
dehaw avatar

dehaw

Zen Follower

Join Date:
Feb 2005
Location:
Lochgelly :: Fife :: Scotland :: UK
Posts:
423
Plugin Contributions:
0

Re: Deleting items from customer cart

Ajeh:

You have too many errors on your site to test anything ...

For giggles, switch to the Classic Template ... does it work now?

If so, the errors are in your template files and you need to compare them to the originals ...

Beyond Compare from scootersoftware.com is a great tool for this ...

Hi Ajeh,

Just changed to the classic green template, added the product to the cart: http://www.shadowaudio.co.uk/newsite/index.php?main_page=shopping_cart&product_id=928

still doesnt delete.

Derek

24 Feb 2007, 4:53 PM
#26
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleting items from customer cart

There are several files involved here ...

I am not sure which you have either not updated or customized to break the code ... :eek:

Try reloading a clean copy of the file:
/includes/classes/shopping_cart.php

/includes/init_includes/init_cart_handler.php

/includes/modules/pages/shopping_cart/.

NOTE: check for an override on this
/includes/templates/template_default/templates/tpl_shopping_cart_default.php

Otherwise ... it is a great day for getting Beyond Compare from scootersoftware.com and you can do a nice, slow FTP compare of a clean Zen Cart v1.3.7 with the files on your site ...

NOTE: you can download your site to also do this compare ... the idea is to compare the exact files on the site to a clean v1.3.7 and not compare them to what you "think" is on the site ... :smile:

6 Mar 2007, 9:53 AM
#27
dehaw avatar

dehaw

Zen Follower

Join Date:
Feb 2005
Location:
Lochgelly :: Fife :: Scotland :: UK
Posts:
423
Plugin Contributions:
0

Re: Deleting items from customer cart

Hi Ajeh,

Well after a few weeks of trying to find a solution i finally got there today, lol.

Its actually quite embarrassing to say the least, more so with my experience, it turns out the cache folder wasn't writable....:blush: :blush: :blush:

Lol, also, i am in the process of completing the integration of Zencart into Joomla as a component and had the same problem, so went in via ftp changed the permissions and now the cart works perfectly :thumbsup:

So thanks Ajeh for your patience once more!

Just one more question...

in the admin side of the zencart joomla component i have converted all the files to work within the confines of joomla without a wrapper and everything is working perfectly except when i try and view the shipping modules page, i get this error:

Fatal error: Call to a member function on a non-object in /srv/www/vhosts/website/httpdocs/administrator/components/com_zen/includes/functions/general.php on line 2422

Which is obviously telling me theres something not being loaded, so when i view that specific page the function being referenced are:

$check_cart_free = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
    $check_cart_cnt = $_SESSION['cart']->count_contents();
    $check_cart_weight = $_SESSION['cart']->show_weight();

is this a session problem? When i comment out those three lines the page works perfectly.

any help would be apprectiated :thumbsup:

Kind regards

Derek

6 Mar 2007, 11:20 AM
#28
dehaw avatar

dehaw

Zen Follower

Join Date:
Feb 2005
Location:
Lochgelly :: Fife :: Scotland :: UK
Posts:
423
Plugin Contributions:
0

Re: Deleting items from customer cart

Hi Ajeh,

This is really weird, i changed the permissions of the cache folder to 777 and the product deleted fine.

I went off the browser for a few hours and went back on after telling the client we sorted the delete button to show them it working, lol, and again it failed to delete the product, i checked the permissions again and the folder is sitting at 777.

Weird, any ideas?

Derek

6 Mar 2007, 1:10 PM
#29
dehaw avatar

dehaw

Zen Follower

Join Date:
Feb 2005
Location:
Lochgelly :: Fife :: Scotland :: UK
Posts:
423
Plugin Contributions:
0

Re: Deleting items from customer cart

I also noticed the minimum requirements for php being 4.3.2, and our php version is 4.3.1, would this make a difference?

if so, what difference and is there a wrokaround before having to upgrade the php engine?

Many thanks

Derek

6 Mar 2007, 2:01 PM
#30
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleting items from customer cart

That is a very old version of php ... a more current stable one is php 4.4.4 ...

I also don't know anything about Zen Cart and Joomla ...

6 Mar 2007, 6:17 PM
#31
dehaw avatar

dehaw

Zen Follower

Join Date:
Feb 2005
Location:
Lochgelly :: Fife :: Scotland :: UK
Posts:
423
Plugin Contributions:
0

Re: Deleting items from customer cart

Hi Ajeh,

Ok i found the problem, it seems if the product has attributes attached the product deletes fine, if it has no attributes it doesn't delete, do you know what could be causing this?

Regarding the zencart/joomla integration and the function problem above, its related to the actual zencart install so what i need to find out is at what point does this try and load and what's then causing the functions not to be loaded, if you know what i mean.

I really need to get this product deletion problem sorted, but i will be upgrading php shortly.

Kind Regards

Derek

1 Apr 2007, 2:35 PM
#32
dehaw avatar

dehaw

Zen Follower

Join Date:
Feb 2005
Location:
Lochgelly :: Fife :: Scotland :: UK
Posts:
423
Plugin Contributions:
0

Re: Deleting items from customer cart

Hi Ajeh,

Thanks for your help on this, but we had a major problem last week with a plesk auto-upgrade which meant we needed to re-image the server, so this time we chose to go with Fedora Core which came pre-installed with php version 5.0.4, and the products now delete from the shoppping cart whether they have attributes or not, so it was definately the php version 4.3 we had installed at the time that was the problem, well i assume anyway.

Thanks again

Derek

1 Apr 2007, 2:38 PM
#33
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleting items from customer cart

Very weird ... glad you have resolved this one ...

Thanks for the update ... :smile: