Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Update quantity in cart on selecting an attribute

Update quantity in cart on selecting an attribute

Views: 1,017

Results 1 to 5 of 5
19 Jan 2015, 9:24 AM
#1
hues avatar

hues

New Zenner

Join Date:
Oct 2012
Posts:
15
Plugin Contributions:
0

Update quantity in cart on selecting an attribute

Hi, I am setting up a store, where items are given on rent.
I have added attributes for rental 3 rental periods 3 months, 6 months and 11 months. Monthly rent varies depending on the rental period selected.

Is there a way I can update the quantity in cart as soon as the rental period is selected.
Thanks for any help.

19 Jan 2015, 1:25 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Update quantity in cart on selecting an attribute

hues:

Hi, I am setting up a store, where items are given on rent.
I have added attributes for rental 3 rental periods 3 months, 6 months and 11 months. Monthly rent varies depending on the rental period selected.

Is there a way I can update the quantity in cart as soon as the rental period is selected.
Thanks for any help.

If understood correctly, basically you would like to treat the selection of an attribute as an add-to-cart button... Action would be to update the cart quantity which if unable to do through java/ajax then would refresh the screen returning to the same location/position.

Yeah, otherwise could use something like javascript/ajax to update the data associated with the selection and the information on the screen associated. Need to be able to handle those situations without javascript enable, even if it is to tell the guest that it is needed to move forward...

There's possible a plugin already to do this, I would think. Would have to search: http://www.zen-cart.com/downloads.php

29 Jan 2015, 5:40 AM
#3
hues avatar

hues

New Zenner

Join Date:
Oct 2012
Posts:
15
Plugin Contributions:
0

Re: Update quantity in cart on selecting an attribute

Yes mc12345678, Want the selection of an attribute to work as an add-to-cart button.
Were you able to find out the add on / plugin?
Need to have this functionality. Can anyone help please.

2 Feb 2015, 8:46 AM
#4
hues avatar

hues

New Zenner

Join Date:
Oct 2012
Posts:
15
Plugin Contributions:
0

Re: Update quantity in cart on selecting an attribute

Any help please.

3 Feb 2015, 8:09 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Update quantity in cart on selecting an attribute

hues:

Yes, Want the selection of an attribute to work as an add-to-cart button.
The attributes are elements inside a form. Each product attribute has an HTML ID assigned to it (ie: id="attrib-1-25"). So you could use javascript (or jQuery if you have it on your site) to bind an action to the onClick event for the html ID of the attribute, and have that action trigger the Submit button on the form.