Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Order management from multiple sites
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Steve2507
VP-CART Expert

590 Posts

Posted - January 22 2007 :  04:24:29  Show Profile  Reply with Quote
We are looking at using the multiple site functionality with VPASP, however I am having a few problems understanding one aspect.

If you have two sites, feeding off one database and in the shop$config.asp file you've changed the xshopid to xshopid="mystore1" and xshopid="mystore2" in the order management of the admin section where does it tell you what site the order has come from?

I am probably being a bit thick on this but I can't find it.

Thanks

Steve

Edited by - Steve2507 on January 22 2007 04:26:56

support
Administrator

4679 Posts

Posted - January 22 2007 :  17:22:22  Show Profile  Visit support's Homepage  Reply with Quote
Hi Steve,

Currently there is no easy way to tell which site the order came from. We are adding this into the new release though so the xproductmatch setting will be added to the order record.

Thanks
Cam

VP-ASP Support
Go to Top of Page

Steve2507
VP-CART Expert

590 Posts

Posted - January 23 2007 :  06:17:02  Show Profile  Reply with Quote
Hi Cam,

Thanks for the reply.

You say there is no easy way around it, does anyone know of a work around?

Thanks

Steve
Go to Top of Page

jdb32
Starting Member

35 Posts

Posted - January 24 2007 :  05:31:35  Show Profile  Reply with Quote
I have done it. I'm not where I can look at my code right now, but all you really need to do is when the order is created and added to the database you just add the value of xshopid to one of the extra order fields in the orders table.

But look for the function called ShopAddOrder in the Shop$DB.asp file. In that function there are many statements that look like:

updatefield "fieldname", "value"

Just add another line someplace looking like:

updatefield "[other field]", xhopid

(replace "[other field]" with the real name of one of the extra fields in the Orders table).

Again I am doing this from memory, so I may be off a bit. I'll check later when I can.

John
Go to Top of Page

Steve2507
VP-CART Expert

590 Posts

Posted - February 19 2007 :  08:36:22  Show Profile  Reply with Quote
Forgot to say, worked perfectly.

Thanks
John
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00