Results 1 to 10 of 13

Hybrid View

  1. #1
    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

  2. #2
    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).

  3. #3
    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).

  4. #4
    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.

  5. #5
    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

  6. #6
    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?

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

    Default Re: Adding attributes

    Quote Originally Posted by vpervades
    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?
    That is not part of the distributed code so have not a clue
    Zen-Venom Get Bitten

 

 

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