Zen Cart Logo
Forums / General Questions / Add to cart button for virtual products

Add to cart button for virtual products

Views: 962

Results 1 to 9 of 9
26 Nov 2012, 11:52 AM
#1
lilly06 avatar

lilly06

New Zenner

Join Date:
Dec 2010
Location:
monaco
Posts:
40
Plugin Contributions:
0

Add to cart button for virtual products

Hello

I would like to know how to be able to set a add to cart button on product listing that add to cart the product instead of bringing the customer to the page product.

I have the button already on my products listing but no way to make it work as add to cart... any help would be much appreciated!

Thanx in advance

26 Nov 2012, 5:01 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Add to cart button for virtual products

admin > config > product listing > Display Product Price/Add to Cart > set order

Zen-Venom Get Bitten

26 Nov 2012, 10:53 PM
#3
lilly06 avatar

lilly06

New Zenner

Join Date:
Dec 2010
Location:
monaco
Posts:
40
Plugin Contributions:
0

Re: Add to cart button for virtual products

kobra:

admin > config > product listing > Display Product Price/Add to Cart > set order

thank you but i think i haven't explained well what i need..here is what i want: http://commercial-use-scraps.com/index.php?main_page=products_new add to cart under preview on working for virtual products, this is what i have and it doesn't add to cart but bring to the product page:
http://scrapsandthecity.com/store/index.php?main_page=products_new&zenid=a97cff636f54bf7e306ced7921f6c996

i wonder how i can get this to work

thanx for your time :)

27 Nov 2012, 12:03 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Add to cart button for virtual products

You currently have "Buy Now" button image

Zen-Venom Get Bitten

27 Nov 2012, 3:29 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,107
Plugin Contributions:
56

Re: Add to cart button for virtual products

It looks like your virtual products are downloadable. If that's the case, what's happening is that the shopping cart's default buy-now action is redirecting the customer to the product_info page because the product has attributes.

You might check out this link (http://www.zen-cart.com/showthread.php?142161-HOW-CAN-I-AUTO-SELECT-SINGLE-ATTRIBUTE-CHOICES-DURING-ADD-TO-CART-process&p=809142#post809142) where DrByte provided a collection of code changes that would allow a product with a SINGLE attribute to be added to the customer's cart from a product listing page.

8 Dec 2012, 10:26 AM
#6
lilly06 avatar

lilly06

New Zenner

Join Date:
Dec 2010
Location:
monaco
Posts:
40
Plugin Contributions:
0

Re: Add to cart button for virtual products

Thank you so much for this!!!! so if i understand well when i have 2 downloads or more it won't work, for all products as i have some that have many downloads.. i am going to check this post from drbyte right now! Thanx sooo much!

lat9:

It looks like your virtual products are downloadable. If that's the case, what's happening is that the shopping cart's default buy-now action is redirecting the customer to the product_info page because the product has attributes.

You might check out this link (http://www.zen-cart.com/showthread.php?142161-HOW-CAN-I-AUTO-SELECT-SINGLE-ATTRIBUTE-CHOICES-DURING-ADD-TO-CART-process&p=809142#post809142) where DrByte provided a collection of code changes that would allow a product with a SINGLE attribute to be added to the customer's cart from a product listing page.

8 Dec 2012, 12:13 PM
#7
lilly06 avatar

lilly06

New Zenner

Join Date:
Dec 2010
Location:
monaco
Posts:
40
Plugin Contributions:
0

Re: Add to cart button for virtual products

i did the whole procedure :) and it works super well!, but i can't remember how i put the add to cart button under those products as i would like to get this also for all products, as i have a box instead for the rest of my store instead of the add to cart button..

Sample what i have and love here:
http://scrapsandthecity.com/store/index.php?main_page=products_new

and what i installed (by the way thank you DrByte as it's perfect for downloadable products!):
http://scrapsandthecity.com/store/index.php?main_page=index&cPath=7
i want the add to cart button :)

Thank you so much in advance for any help :)

8 Dec 2012, 5:43 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Add to cart button for virtual products

I see "add" on your product listing pages and "add to cart" on your product info pages

Zen-Venom Get Bitten

9 Dec 2012, 11:33 AM
#9
lilly06 avatar

lilly06

New Zenner

Join Date:
Dec 2010
Location:
monaco
Posts:
40
Plugin Contributions:
0

Re: Add to cart button for virtual products

kobra:

I see "add" on your product listing pages and "add to cart" on your product info pages

Yes exact :) indeed i meant the buy now button, this is what i would like instead of the add and then add to cart... sorry for my english..