Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2012
    Posts
    15
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Update quantity in cart on selecting an attribute

    Quote Originally Posted by hues View Post
    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
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Oct 2012
    Posts
    15
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Oct 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Update quantity in cart on selecting an attribute

    Any help please.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Update quantity in cart on selecting an attribute

    Quote Originally Posted by hues View Post
    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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v155 Update Button of Shopping Cart Reduces Quantity in Cart
    By mc12345678 in forum Bug Reports
    Replies: 2
    Last Post: 29 Jul 2016, 12:26 PM
  2. v139h update attribute quantity
    By propster in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 18 Jul 2013, 11:44 AM
  3. Update cart Quantity
    By red8ii8 in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 20 Oct 2010, 02:06 AM
  4. shopping cart - hide the Cart Quantity Update button when not needed
    By dause in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 Oct 2009, 04:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg