0

I'm using nopcommerce open source shopping cart. I have problem. I want to get only Stock Quantity from another database. So I thing I want to add a another data base connection string. How can I do it??

I want to show data from two data base in the same view.

Plz give me the solution..

aruni
  • 2,664
  • 10
  • 44
  • 68

2 Answers2

1

nopcommerec has yet not provide such facilities to add more then one data source.instead of that you need to write webservice to consume stock data

Shivkumar
  • 1,903
  • 5
  • 21
  • 32
-1

create stock table in nopccommerec and write web serverice in InstallationService.cs in(NOP.Service/Installation). which will insert value in stock table while installing NOP Application.

Shivkumar
  • 1,903
  • 5
  • 21
  • 32
  • but this doesn't help if the stock control has to be dynamic and if its needs to be get on the fly from a remote data source .. – mahen3d Sep 21 '12 at 06:29
  • write a web service to access the remote database.if you want it all values during installation then add web service in installtionService.cs. – Shivkumar Sep 21 '12 at 08:31