Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

    Default Direct price entry attribute?

    Is there any way to have an attribute allow the direct entry of a monetary value?

    Yea, I know, 'let the customers pick their own prices?' No, it's like a "donation".. ..they have to enter an amount and that gets added to the price. I tried pulldowns, but the list is too long and tedious to maintain.

  2. #2
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: Direct price entry attribute?

    If you do find out, please let me know, I need this too.

  3. #3
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

    Default Re: Direct price entry attribute?

    This would likely require a new PRODUCTS_OPTIONS_TYPE which are stored in the table of the same name and all the associated code to handle it.

  4. #4
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: Direct price entry attribute?

    Well, I just recently made a module similar to this, yes you are right dhcernese I added a new PRODUCTS_OPTIONS_TYPE and PRODUCTS_OPTIONS_VALUE

    and um... I guess it is slightly better than what you had in mind, I use sliders

    Check this out:
    http://www.webextremecustomiser.com/...&products_id=1

    But I got one problem though:

    This module changed 3 core files, attribute.php and both header_php.php files in checkout_confirmations and shopping_cart pages. I still cannot find a workaround to this, do you think that is fine?

    Not sure if it's working?

    Try to make an actual donation with it ;)
    Last edited by jaycode; 1 Jan 2008 at 03:39 AM.
    The greatest pleasure in life is doing what people say you cannot do.

    Check on www.WebExtremeCustomiser.com for my modules (free contribution):
    AJAX Image Swapper
    AJAX Banner Swapper
    Fixed Navigation

  5. #5
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

    Default Re: Direct price entry attribute?

    More experienced Zenners could better comment on the structure of your modifications. However, I believe you cannot make this change without modifying several core files-- and if you do, they should use the override system (perhaps in your template subdirectories!).

    I'm surprised it's only 3 files.. ..I started down this path and found myself modifying more. I started by creating custom defines in my own files, to support a type of "monetary".

    Going down this path one notices that there are then three exceptions to most of the code, _FILE, _TEXT, and now this new one. Hints at some refactoring required to more directly support a base type that does not come with a set of specified values.

    Dan
    p.s. your slider is interesting. it did not slide in real-time response to my mouse only moved after releasing, however. is it supposed to follow the mouse?

  6. #6
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: Direct price entry attribute?

    Quote Originally Posted by dhcernese View Post
    More experienced Zenners could better comment on the structure of your modifications. However, I believe you cannot make this change without modifying several core files-- and if you do, they should use the override system (perhaps in your template subdirectories!).

    I'm surprised it's only 3 files.. ..I started down this path and found myself modifying more. I started by creating custom defines in my own files, to support a type of "monetary".
    Well I cheated a bit, to tell you the truth, For example for the classes/shopping_cart.php I did actually changed that file but instead of directly changing it there, I made my changes to a new file sliderview_donation_shopping_cart.class.php and pointed Zen-Cart to load that class instead of shopping_cart.php.

    One thing I'd like to see Zen-Cart would be able to handle is the ability for developers to add new attribute types. One way to help this is by dividing the includes/modules/attributes.php into several auto-loaded files. But looks like they got more important issues to resolve than this eh?

    Quote Originally Posted by dhcernese View Post
    Going down this path one notices that there are then three exceptions to most of the code, _FILE, _TEXT, and now this new one. Hints at some refactoring required to more directly support a base type that does not come with a set of specified values.
    Exactly, looks like you went to the right direction here.

    Quote Originally Posted by dhcernese View Post
    p.s. your slider is interesting. it did not slide in real-time response to my mouse only moved after releasing, however. is it supposed to follow the mouse?
    Ah yes you are right, looks like the changing of bubble talk content caused memory leak in IE, it was perfect in Mozilla, as usual. I have changed that, the content is now changing only after the handler set to a position. Thanks for letting me know.
    The greatest pleasure in life is doing what people say you cannot do.

    Check on www.WebExtremeCustomiser.com for my modules (free contribution):
    AJAX Image Swapper
    AJAX Banner Swapper
    Fixed Navigation

  7. #7
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: Direct price entry attribute?

    Hi jaycode, have you released this as a contribution or is it available for purchase somewhere?

    I don't need anything fancy like you have with the slider. I actually did want it to let customers choose their price and also to use as a general payment product.

  8. #8
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: Direct price entry attribute?

    Hi tj1, yes I plan to make this as a contribution someday later, I just switched to Mootools from Scriptaculous, so I need to re-write all my existing code, which is crazy...

    Plus, the exams are coming. At current rate, I think I can start working on it by March, sorry I hope you do not need the module ready soon?
    The greatest pleasure in life is doing what people say you cannot do.

    Check on www.WebExtremeCustomiser.com for my modules (free contribution):
    AJAX Image Swapper
    AJAX Banner Swapper
    Fixed Navigation

  9. #9
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: Direct price entry attribute?

    Hi, just checking again to see if you've already made a contribution of this.

    Thanks.

  10. #10
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: Direct price entry attribute?

    Quote Originally Posted by tj1 View Post
    Hi, just checking again to see if you've already made a contribution of this.

    Thanks.
    Nope I haven't, been very busy to deal with contributions these days. I can give you the module with slider still attached and you can remove them yourself if you want?
    The greatest pleasure in life is doing what people say you cannot do.

    Check on www.WebExtremeCustomiser.com for my modules (free contribution):
    AJAX Image Swapper
    AJAX Banner Swapper
    Fixed Navigation

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Add base price to attribute price so that attribute shows total amount
    By dcitsolutions in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 18 Nov 2010, 08:56 AM
  2. Need attribute price to display total price not incremental price
    By Rickk123 in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 2 Sep 2010, 06:26 PM
  3. Direct entry monetary value
    By dhcernese in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 12 Mar 2009, 01:40 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