VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 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-ASP 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

4266 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-ASP 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-ASP 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