Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How can I add a "delete from cart" button in my shopping_cart page?

How can I add a "delete from cart" button in my shopping_cart page?

Started by satyros on 2 Jan 2012, 2:26 PM · Views: 1,082

Results 1 to 9 of 9
2 Jan 2012, 2:26 PM
#1
satyros avatar

satyros

New Zenner

Join Date:
Dec 2011
Location:
Athens, Greece
Posts:
33
Plugin Contributions:
0

Post #1 by satyros

I am using Modern Zen Template and as far as I have see, many people want to do this bit noone found a solution yet.
I want to add a "delete from cart" button in my shopping_cart page.
My demo site is https://www.koufetakia.gr/eshop

thanx in advance

2 Jan 2012, 5:04 PM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Post #2 by rescoccc

Assuming your template is coded to Zen Cart standards, it should show a delete from cart button. If it doesn't, try uploading one to /includes/templates/your_template/images/icons. Name it small_delete.gif.

The best way to learn is to try stuff. But, back it up first.

2 Jan 2012, 5:11 PM
#3
satyros avatar

satyros

New Zenner

Join Date:
Dec 2011
Location:
Athens, Greece
Posts:
33
Plugin Contributions:
0

Post #3 by satyros

RescoCCC:

Assuming your template is coded to Zen Cart standards, it should show a delete from cart button. If it doesn't, try uploading one to /includes/templates/your_template/images/icons. Name it small_delete.gif.

But as you can see from my link, there is no button. It is not the image that is missing but I think it's missing from the php

2 Jan 2012, 5:12 PM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Post #4 by rescoccc

Oh, and there's also a setting in admin for controlling the behavior. Look in configuration/stock/shopping cart delete button or checkbox.

The best way to learn is to try stuff. But, back it up first.

3 Jan 2012, 1:31 PM
#5
satyros avatar

satyros

New Zenner

Join Date:
Dec 2011
Location:
Athens, Greece
Posts:
33
Plugin Contributions:
0

Post #5 by satyros

RescoCCC:

Oh, and there's also a setting in admin for controlling the behavior. Look in configuration/stock/shopping cart delete button or checkbox.
I tried all three options. The only one that works is the check in button. The delete button will not appear!!!!

3 Jan 2012, 1:48 PM
#6
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Heerenveen, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Post #6 by design75

Go to your stylesheet.css and remove display:none; from

.cartRemoveItemDisplay a {
    display: none;
}

this will solve your poblem

do the same for

.cartQuantityUpdate input {
    visibility: hidden;
}
3 Jan 2012, 1:58 PM
#7
satyros avatar

satyros

New Zenner

Join Date:
Dec 2011
Location:
Athens, Greece
Posts:
33
Plugin Contributions:
0

Post #7 by satyros

Design75:

Go to your stylesheet.css and remove display:none; from

.cartRemoveItemDisplay a {
display: none;
}

> 
> this will solve your poblem
> 
> do the same for
> 
> ```
.cartQuantityUpdate input {
    visibility: hidden;
}

my stylesheet is like:

.cartRemoveItemDisplay {
width: 3.5em;
}
I also noticed that despite the fact that I have checked from the admin panel the update button to be next to the quantity, it only appears below all products. It's like the update button and the delete button are hidden as you said, but cannot find such thing in my css.

3 Jan 2012, 2:11 PM
#9
satyros avatar

satyros

New Zenner

Join Date:
Dec 2011
Location:
Athens, Greece
Posts:
33
Plugin Contributions:
0

Post #9 by satyros

Design75:

Sorry,

both statements apear to be in shoping_cart.css

that did the job!!!
how can I thank you?