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
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 shopexd always goes to shopaddtocart???
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

36 Posts

Posted - March 17 2009 :  17:12:29  Show Profile  Reply with Quote

When I push the addtocart button from shopexd.asp, the shopper is always directed to shopaddtocart.asp.

Is there any possibility to avoid this?

I would prefer to go to the shopdisplayproducts.asp page related to the ordered product. If this is not possible, I would rather go to the shopdisplaycategories.asp page instead of shopaddtocart.

Are there any thoughts or workarounds about this or some hints to tweak the code? Has somebody already succeeded in realizing this?


VP-ASP Super User

260 Posts

Posted - April 05 2009 :  02:11:21  Show Profile  Visit ironhawker's Homepage  Reply with Quote
xproductstayonpage Yes or No
If Yes, when a product is ordered from the shopdisplayproducts page, the current page remains showing. If you are using the mini-cart display, that display will be automatically updated to show what is in the cart.

Randy "RC" Corn
Institute for Higher Learning
[email protected]
Go to Top of Page

VP-ASP New User

89 Posts

Posted - September 07 2009 :  13:58:45  Show Profile  Visit faolie's Homepage  Reply with Quote
I wanted this too, as if you're trying to cross-sell products from the extended description, there's a chance the opportunity will be lost when the page changes to the shopping cart.

I had a poke around and came up with this mod to implement stay on page from shopexd.

Open shopfileio and goto line 1112 (approx), which is the start of the sub Handle_FormEnd. Insert the following before the line WriteForm "</form>":

'DH: add stayonpage to extended description
dim stayonpage, url
If stayonpage="Yes" then
url="shopexd.asp?id=" & catalogid
Response.Write "<input type=""hidden"" name=""returnurl"" value=""" & url & """ />"
end if
'DH end stayonpage mod

Seems to work fine, but no guarantees - I'm not really an asp programmer.
Go to Top of Page

VP-ASP New User

91 Posts

Posted - April 12 2010 :  19:59:13  Show Profile  Visit windsurfer's Homepage  Reply with Quote
Hi Faolie
I have just paurchased VPASP 7 and would like to do the same thing i have tried to enter the code you have into the shopfileio around line 1494 just before the
WriteForm "</form>" end sub line
and right after the
sub Handle_FormEnd (ivalue, parsearray) addwebsessform line
This doesn't seem to be working for me.... any suggestions ?
Go to Top of Page

VP-ASP New User

89 Posts

Posted - April 13 2010 :  14:21:41  Show Profile  Visit faolie's Homepage  Reply with Quote
Hi Windsurfer

you caught me there - couldn't remember this. Anyway, tried it on another site I'm working on and it worked fine. This site's still v6.5, though I can't immediately see why this should matter.

You have set Xproductstayonpage to yes? (sorry if that's too obvious)

David Heriot
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000