Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Wishlist Button Changes

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-29-2015, 07:50 AM
 
Whisperingtreenet Whisperingtreenet is offline
 

Member
  
Join Date: Jun 2011
Posts: 18
 

Default Wishlist Button Changes

The the 'add to wishlist' button is appearing on the front page and category pages product listings when I want that button to be 'add to cart' Does anyone know how to switch that out with custom css?

This is for the latest version of xcart 5


Thanks!
Reply With Quote
  #2  
Old 11-03-2015, 04:30 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Wishlist Button Changes

Quote:
Originally Posted by Whisperingtreenet
The the 'add to wishlist' button is appearing on the front page and category pages product listings when I want that button to be 'add to cart' Does anyone know how to switch that out with custom css?

This is for the latest version of xcart 5


Thanks!
Hello.
Do you want to change the title of the button only? Or do you want the item to be added to the cart when that button is clicked?
To do the former, you should look for the 'Add to wishlist' language label and edit its content.
The latter is not possible to do with CSS.
Besides, you already have the 'Add to cart' button in the product listing in your site (see screenshot attached)
Attached Thumbnails
Click image for larger version

Name:	a2c.png
Views:	113
Size:	219.3 KB
ID:	4356  
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #3  
Old 11-17-2015, 07:25 AM
 
Whisperingtreenet Whisperingtreenet is offline
 

Member
  
Join Date: Jun 2011
Posts: 18
 

Default Re: Wishlist Button Changes

The add to cart button is way small and not intuitive. Most customers won't put together that clicking on the shopping bag will add it to the cart. I would like to have an actual add to cart button like we have on the product pages instead of the tiny bag.
Reply With Quote
  #4  
Old 11-20-2015, 04:39 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Wishlist Button Changes

Quote:
Originally Posted by Whisperingtreenet
The add to cart button is way small and not intuitive. Most customers won't put together that clicking on the shopping bag will add it to the cart. I would like to have an actual add to cart button like we have on the product pages instead of the tiny bag.
Well, the cheapest way to do so is to replace the /skins/default/en/items_list/product/images/bag/small.png image with the 'Add to cart' button image (example attached) and add the following code to the 'Custom CSS'.
Code:
.items-list .products-grid .add-to-cart-button { right: 20px; bottom: 5px; } .products .product-add2cart { width: 120px; height: 35px; }
Here's the result of that change: https://i.gyazo.com/5e00e84d93ae222c8256f00e2a9add5e.png
Please note that the image will be overwritten during an upgrade, so it is recommended to implement this change as a module.
Attached Thumbnails
Click image for larger version

Name:	small.png
Views:	110
Size:	2.0 KB
ID:	4377  
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote

The following user thanks razortw for this useful post:
kevinrm (11-20-2015)
  #5  
Old 11-20-2015, 05:23 AM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Wishlist Button Changes

I agree about the shopping bag not being all that intuitive, I will probably implement this myself as well. Thanks for the code!
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #6  
Old 11-28-2015, 05:04 PM
 
Whisperingtreenet Whisperingtreenet is offline
 

Member
  
Join Date: Jun 2011
Posts: 18
 

Default Re: Wishlist Button Changes

Thank you very much! I will implement this.
Reply With Quote

The following user thanks Whisperingtreenet for this useful post:
razortw (12-01-2015)
  #7  
Old 04-13-2016, 12:53 PM
 
tstone tstone is offline
 

Member
  
Join Date: Mar 2016
Posts: 21
 

Default Re: Wishlist Button Changes

Sorry for the bump, but has this code changed since the last post? I tried it, but I'm still getting the shopping bag instead of the Add to Cart button. I added the css, I uploaded the new small.png image (renamed the other one small-old) cleared both caches, but no change other than the bag is now a little bit more to the left. Any ideas?
__________________
x-cart5.2.13
Reply With Quote
  #8  
Old 04-15-2016, 12:11 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Wishlist Button Changes

Quote:
Originally Posted by tstone
Sorry for the bump, but has this code changed since the last post? I tried it, but I'm still getting the shopping bag instead of the Add to Cart button. I added the css, I uploaded the new small.png image (renamed the other one small-old) cleared both caches, but no change other than the bag is now a little bit more to the left. Any ideas?
Maybe it is cached in your browser.
Did you clear the cache?
Also, could you please share a link to your site so that we can check?
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #9  
Old 04-15-2016, 10:08 AM
 
tstone tstone is offline
 

Member
  
Join Date: Mar 2016
Posts: 21
 

Default Re: Wishlist Button Changes

I cleared both caches, and cleared browser cache, even went to a different computer for the first time. http://scoopmasters.com/buy-dogipot-products/pet-waste-stations. It looks like the css made room for the new button size as the bags are now a little to the left from where they were. I downloaded the small.png file just to make sure and it is the add to cart button. I'm sure it's something simple and stupid that I'm overlooking.
__________________
x-cart5.2.13
Reply With Quote
  #10  
Old 04-16-2016, 12:13 PM
 
tstone tstone is offline
 

Member
  
Join Date: Mar 2016
Posts: 21
 

Default Re: Wishlist Button Changes

Semi update: The small.png file I replaced is an image of a gold colored bag, the bag on my products page is red. Which tells me there is another image file of a red shopping bag that needs to be replaced with the Add to Cart image. I'll be looking for it.
__________________
x-cart5.2.13
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:16 AM.

   

 
X-Cart forums © 2001-2020