Forums / General Questions / Customer (or admin) Entered Price

Customer (or admin) Entered Price

Locked

Started by wizardsandwars on 16 Oct 2006, 12:06 AM · Views: 1,367

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
16 Oct 2006, 12:06 AM
#1
wizardsandwars avatar

wizardsandwars

Zen Follower

Join Date:
Jan 2004
Location:
Chesterfield, VA
Posts:
72
Plugin Contributions:
1

Customer (or admin) Entered Price

Greetings,

I need a way for customers (or admins entering orders through the catalog) to be able to enter the price of an order (or the price of a product).

I know that I could set up a product with price of $0.00 and give it price affecting attributes that increment, however this is still not flexible enough. I need to be able to enter any price.

What I need would be similar to this. (sorry for the link to another cart page)....

http://www.ulf.org/catalog/product_info.php?cPath=27&products_id=37

Can I get confirmation that there is still no mod that will do this in Zen?

Thanks in advance.

16 Oct 2006, 1:53 PM
#2
wizardsandwars avatar

wizardsandwars

Zen Follower

Join Date:
Jan 2004
Location:
Chesterfield, VA
Posts:
72
Plugin Contributions:
1

Re: Customer (or admin) Entered Price

Ok, well, I guess I'll give this a shot. If anyone has any suggestions plese feel free to point them out.

I'm thinking I'll set up a product with a price of $0, and add a cost affecting attribute. I'll basically copy the 'text' attribute that is normally used to customize a product. I guess I'll have to take the entered amount, and run it though some sort of currency validation to make sure it's a valid amount. Then where the attribute system normally looks up in the database how much that attribute is supposed to cost, I'll just circumvent that (probably with an 'if product id = x' statement) and plug in the value entered in the text box.

In theory, this sounds like it should work. I just need a good validation script for the amount entered, and I need to be able to identify exectly where the attribute looks up how much to add to the price in the database.

Any help anyone could provide would be greatly appreciated.

16 Oct 2006, 5:43 PM
#3
wizardsandwars avatar

wizardsandwars

Zen Follower

Join Date:
Jan 2004
Location:
Chesterfield, VA
Posts:
72
Plugin Contributions:
1

Re: Customer (or admin) Entered Price

Ok, someone pointed out this thread....
http://www.zen-cart.com/forum/showpost.php?p=277579&postcount=7

In which Linda gave an outstanding 'outside the box' thinking solution, where I would set the product price to 1.00, and use the quantity box as the input for the amount.

This sounds like it would work great, however, I notice that that quantity is rounded up to the nearest integer in the cart. Is there any wyas to retail the decimal values in the Quantity box?

Thanks in advance.

16 Oct 2006, 6:17 PM
#4
wizardsandwars avatar

wizardsandwars

Zen Follower

Join Date:
Jan 2004
Location:
Chesterfield, VA
Posts:
72
Plugin Contributions:
1

Re: Customer (or admin) Entered Price

Ok, after even more research, I found that you can allow the quantity box to accept decimal values in the following section

Admin-> Configuration-> Stock

So, it seems I have all my issues worked out. All I need to do is

  • set the product price to 1.00
  • alter the product info template to only display the price if it's isn't this special product
  • alter the product info template to change the verbage around the qty box if it is this special product, to make it an 'amount to pay' box instead
  • Alter the shopping cart, order_confirmation, order history, and emails to no show the quantity or the product ordered.
16 Oct 2006, 6:23 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer (or admin) Entered Price

Easy smeazy eh? :eek:

Got all your toys ... just gotta line 'em up in the box now ... :smartass:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Oct 2006, 7:22 PM
#6
wizardsandwars avatar

wizardsandwars

Zen Follower

Join Date:
Jan 2004
Location:
Chesterfield, VA
Posts:
72
Plugin Contributions:
1

Re: Customer (or admin) Entered Price

I have to say, that was one hulluva idea there, using the qty box for a place to allow a user entered price.

This is my 3rd project I've worked on for someone in Zen now, but really it's the first that actually required anything other than a template integration.

I'm impressed with how much is included in the core, and how much easier it is to integrate with existing sites. And I like the fact I don't have to touch any of the original files when I do modifications.

Kudos.

21 Oct 2006, 4:51 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer (or admin) Entered Price

Thanks for the update ... and happy to hear that you are finding the code is designed to be quite flexible on customizations and changes ... good luck with your site ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!