Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Feb 2010
    Posts
    5
    Plugin Contributions
    0

    Default Adding attributes

    Hi
    I am still quite a newbie with zen cart I know how to add attributes to items but am wondering how I can add it to some of my other items here is what I need:

    say they order a 10 pack of a certain item is it possible to have them be able to choose 10 different colours and/ or scent combinations if they wanted 10 differant ones or can I only have them choose one colour / scent ?

    I also need the same thing with a different item say they order a 10 pack (or whatever number they order) is it possible for them to say 2 X blue , 4 X green etc but only up to the number that they purchase.

    ALso would adding attributes like these be much more trickier than adding standard atributes or can it be done using the standard attributes if so how would i do it.

    thanks for any help and / or advice in advance

    cheers Ivy
    Last edited by 001ivy; 2 Dec 2010 at 10:28 PM. Reason: spelling

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding attributes

    would adding attributes like these be much more trickier than adding standard atributes or can it be done using the standard attributes
    Can not be accomplished in the std attribute sytem
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Adding attributes

    Damn I had a feeling it wasnt posible.

    Do you know if there is any other add ons that is capable of this? Or is there a way to add a text box for them to write their decisions in?

    cheers

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding attributes

    s there a way to add a text box for them to write their decisions in
    You can add a text box attribute but it will not validate the number of items - - A human will have to insure that it is correct
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Dec 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Adding attributes

    Hi ,
    I have created a attribute a textbox .
    How I have set the price for textbox attribute is $100.
    whatever customer enters in that text box ,it only shows that $100,But I need to make it in such a way that -
    if customer enters 1 in the textbox attribute ,then it adds $100 .
    if customer enters 2 then it adds $200 .
    if customer enters 3 then it adds $300 .
    if customer enters N then it adds $N00 .
    Ie instead of displaying the price direclty ,i need to multiple this attribute price with this attribute value.

    Is anybody done this?
    any idea how to do this?
    Any help will be very useful.

    PS:
    I have tried this with the dropdown - But i need to set price for each option ,it is really not possible and it also RESTRICT the MAX. number.

    So ,Please advise me to accomplish this with text box.


    Quote Originally Posted by kobra View Post
    You can add a text box attribute but it will not validate the number of items - - A human will have to insure that it is correct

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding attributes

    You would need to write custom javascript or PHP code for this function. Don't even try it unless you are proficient with the language(s).

  7. #7
    Join Date
    Dec 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Adding attributes

    Hi ,
    Thanks for your hint.
    I have started doing custom code and i will share with you people soon.
    But before that ,Where is the add to cart function exist?
    I have changed the price in product detail page ,but it didnt reflect in the cart page .
    Any useful guidelines to accompany this ?



    Quote Originally Posted by gjh42 View Post
    You would need to write custom javascript or PHP code for this function. Don't even try it unless you are proficient with the language(s).

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding attributes

    Sorry, I haven't delved into the add to cart functions at all. There is info in the wiki about working with add to cart - in Developers > Developers API Tutorials, look for "Real World Example" and others.

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding attributes

    I have changed the price in product detail page ,but it didnt reflect in the cart page .
    Don't know what code you have or where but the calcs are in /includes/classes/shopping_cart.php
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Dec 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: Adding attributes

    Yeap,
    I got the file and changed it and i hope it is working .
    But I have installed the ajax product price update mod(update price in product info page.) .

    Now i need to do the same there?
    Is it possible?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. adding attributes
    By amarkabove in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 10 Dec 2010, 04:44 AM
  2. Adding Attributes
    By John250 in forum General Questions
    Replies: 2
    Last Post: 10 Nov 2008, 07:48 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