Forums / General Questions / how to handle custom parts/products?

how to handle custom parts/products?

Locked

Views: 633

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
12 Feb 2010, 9:18 PM
#1
factory avatar

factory

New Zenner

Join Date:
Feb 2010
Posts:
2
Plugin Contributions:
0

how to handle custom parts/products?

Hi our situation is different than most. We have a custom php process that a customer goes through to select raw materials to build a custom product. The materials required and dollar amounts are calculated by this process. Is there a way to send that info to zencart so when they click to order the description and dollar amount is sent to zencart then right on to the credit card gateway without them entering any products etc.. in zencart?
thx!
Steve

12 Feb 2010, 9:34 PM
#2
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: how to handle custom parts/products?

I guess you could extend your custom script a bit to insert the customized product (in a hidden category) and then redirect them to the shopping cart with the item already added. They will probably get redirected to the login page and after they do that, fall into the checkout stream at the right place.

13 Feb 2010, 5:04 PM
#3
factory avatar

factory

New Zenner

Join Date:
Feb 2010
Posts:
2
Plugin Contributions:
0

Re: how to handle custom parts/products?

kiddo:

I guess you could extend your custom script a bit to insert the customized product (in a hidden category) and then redirect them to the shopping cart with the item already added. They will probably get redirected to the login page and after they do that, fall into the checkout stream at the right place.

Thanks for taking the time to reply...

That's exactly what I was thinking... Do you have any guidance how to accomplish this?? To autoload the shopping cart etc?? also to get shipping calculated etc.. I'm sure there is something I would need to set in order to make zencart away of weight..
Thanks for your help!

13 Feb 2010, 6:02 PM
#4
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: how to handle custom parts/products?

Your script I'm guessing has already figured out the weight, cost and other parameters of the purchase, use that info to insert a product record into the products table, products_description table, and an entry in products_to_categories table.

After you write the new record to products, call mysql_insert_id() to get the new zen record id and use that to write the other two tables I mentioned.

Now do a little searching of other threads about how to put your new item in the shopping cart and send the customer there. Better things have been written about that than I can do now on my coffee break.