Results 1 to 4 of 4
  1. #1
    Join Date
    May 2011
    Posts
    4
    Plugin Contributions
    0

    Default Multiple ADD To CART with same product ID

    I am using ZenCart v1.3.9d.
    I want to have 3 "ADDTOCART" buttons with different hidden quantities for the same product / same page ( main_page=product_info).

    A. option1 hidden qty-30 <button1>
    B. option2 hidden qty-60 <button2>
    C. option3 hidden qty-90 <button3>

    When user clicks, button1, shopping cart page should take qty-30 and so on.

    How can I do that?

    Thanks.

  2. #2
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    819
    Plugin Contributions
    0

    Default Re: Multiple ADD To CART with same product ID

    Have you considered using just the one add to cart button with 3 attributes along side of it?

  3. #3
    Join Date
    May 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Multiple ADD To CART with same product ID

    My product configurations/options are such that It is not possible to use attributes ( It does not fulfill my all product variations ). So I have customized tpl_product_info to display all possible options along with buttons on same page (same product id in DB).

    option qty price total button

    A 30 $1 $30 <Add To Cart>
    B 60 $2 $60 <Add To Cart>
    C 90 $3 $90 <Add To Cart>

    I need to know what part of code I need to change so that qty,total will be passed to shopping_cart page when corresponding <Add to Cart> is clicked.

    I tried to display multiple buttons ( in tpl_product_info ) but <Add to Cart> always picks up latest assignment. How does each button click works individually?

    ---------
    For more clarity, here is my product variations. How can I use attributes here?

    product : X
    options 1 : A1, A2,A3....An
    options 2 : B1, B2,B3....Bn

    Prices should be as follows:

    options 1 : A1
    ---------------------
    B1 price1
    B2 price2
    B3 price3

    options 1 : A2
    ---------------------
    B1 price1
    B2 price2
    B3 price3

    options 1 : A3
    ---------------------
    B1 price1
    B2 price2
    B3 price3


    How can I set price for above combination.

  4. #4
    Join Date
    May 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Multiple ADD To CART with same product ID

    Can anybody help me out ? I really appreciate your time for giving me solution.

 

 

Similar Threads

  1. v154 How to add the same option multiple times to product?
    By Fjolsvith in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 25 Mar 2016, 05:22 AM
  2. Adding Multiple products to the cart with the same Product ID
    By jamieaus in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Mar 2011, 07:44 AM
  3. Replies: 6
    Last Post: 26 Aug 2009, 06:49 AM
  4. How can I show several product on same page - each with its own "add to cart" button?
    By Dianne in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 28 Nov 2008, 04:17 AM
  5. Replies: 2
    Last Post: 29 Mar 2007, 10:53 PM

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