iPhone app extension

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hello guys.

I'm Adam, I'm working on an iPhone app based on nopCommerce.

I have finished iPhone app, but I'm quite new to the nopCommerce (not new to asp.net - 2 years experience and familiar with MVC), I wanna synchronise the products in the shopping bag to the server side.

Currently in my application, after products are placed into shopping bag, the next step is processing the payment.
During this process, I need to synchronise iPhone local data to the server side.

in case you can't follow what I said. Here's screen shot: http://flic.kr/p/aPK89Z

For example, there's currently 1 item in the shopping bag

I have the productId, ProductVariantId and selected productVariantAttribute in a NSArray (like a List in asp.net)
when I press pay button in the Bag View (the screenshot shows the shop view), it will communicate with the server to verify the login status of the user. In this case, the user will input his username/password pair to login and after successfully login, app will load the shopping cart page which is http://demo.nopcommerce.com/cart and synchronise the NSArray which contains the ProductId/ProductVaraintId/Selected ProductVariantAttribute. So here comes the question. Is there a webservice that i can call directly to add the items in the bag to the server? If not, what is the mechanism behind this process in nopcommerce?

Thanks
12 years ago
I don't know how to help you, but it is very nice,,, good work mate

Yves
12 years ago
I wanna contribute the code, how can i do that?
12 years ago
adamsoft wrote:
I wanna contribute the code, how can i do that?

https://www.nopcommerce.com/boards/t/10966/you-can-now-upload-your-extensions-and-plugins.aspx
12 years ago
adamsoft wrote:

...


There is no publicly exposed code that allows you to manipulate your shopping cart. However, because nopCommerce 2.x is build on MVC you can use HTTP POST to post changes to the server.

Right now what you can do is:

1. Authenticate a session on the server using username/password.
2. HTTP post to the appropriate URL and include the authentication cookie created on login.
** To add a product to the cart you could post to http://localhost/cart/addproduct/{productId} where {productId} is the integer identifier of a product.

Otherwise you will need to write a plugin that exposes web services for operations like adding to a shopping cart and completing an order.
12 years ago
I am almost there. My another question is, how can I handle the product attributes?
12 years ago
skyler.severns wrote:

...


There is no publicly exposed code that allows you to manipulate your shopping cart. However, because nopCommerce 2.x is build on MVC you can use HTTP POST to post changes to the server.

Right now what you can do is:

1. Authenticate a session on the server using username/password.
2. HTTP post to the appropriate URL and include the authentication cookie created on login.
** To add a product to the cart you could post to http://localhost/cart/addproduct/{productId} where {productId} is the integer identifier of a product.

Otherwise you will need to write a plugin that exposes web services for operations like adding to a shopping cart and completing an order.



Thanks for your help. I am having issues with products with products with attribute values and multi variants.
Is there any other HTTP post method that I can call directly?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.