Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > E-commerce - one click add to cart View modes: 
User avatar
Member
Member
leem - 8/6/2009 6:01:16 AM
   
E-commerce - one click add to cart
Hi,

I want to have it so when a user click buy on a product it adds the item to the cart but takes them straight to the payment page not the shopping cart listing page, what would be the best approach for this


User avatar
Member
Member
Jagr - 8/6/2009 7:35:59 AM
   
RE:E-commerce - one click add to cart
Hello,

I am interested in this issue also :)

User avatar
Member
Member
kentico_pavelk - 8/6/2009 8:30:01 AM
   
RE:E-commerce - one click add to cart
Hi,

You may customize the purchase process so it contains only steps that you need. You can find more information about it in our E-commerce guide. Please find a link to it below.
http://devnet.kentico.com/docs/ecommerceguide/index.html?customizing_the_purchase_proce.htm


Best Regards,
Pavel Knotek

User avatar
Member
Member
leem - 8/6/2009 8:52:52 AM
   
RE:E-commerce - one click add to cart
Hi,

I have had a look at that part which is great but by only including the order confirmation setup I get a data insert error due to the a customer address not being selecting (as its a digital purchase and paypal via paypal, an address is not required).

What is data is required by the system to process an order

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 8/11/2009 3:30:57 AM
   
RE:E-commerce - one click add to cart
Hello,

could you please see this knowledge base article? http://devnet.kentico.com/Knowledge-Base/E-commerce/Direct-PayPal-payment.aspx There is a sample code, too.

Does it help?

Best regards,
Helena Grulichova

User avatar
Member
Member
leem - 8/12/2009 9:55:07 AM
   
RE:E-commerce - one click add to cart
Thanks, implemented the sample and the process works great, however the cart doesn't seem to convert into an order in the backend. at want point should the sample create the order as can't find any code for that

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 8/27/2009 11:04:19 AM
   
RE:E-commerce - one click add to cart
Hi,

The order needs to be created in the step just before going to PayPal. So in the PayPalStep.ascx.cs (code behind of your step control), you will need to add a code to create new Order (OrderInfo object) before the ProcessPayment() is triggered.

In default checkout process, this action is performed in ShoppingCartPreview step. The complete code used in 4.0 version can be found in ~\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartPreview.ascx.cs in ProcessStep() method. You could use this code in your step with some modifications (e.g. addresses, customer names, etc...).

One fresh note (information) is that in the future KenticoCMS version should be an API method for the new order code implemented...however in 4.0 and 4.1 you need to use the itemized code.

Anyway, this whole information is apparently not included in the mentioned KB article (nor the sample files). I'm sorry for any difficulties it has brought to you.

Regards,
Zdenek C.