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
 Add optional insurance during checkout
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

keng
VP-ASP New User

152 Posts

Posted - May 25 2005 :  18:34:25  Show Profile  Reply with Quote
Hi,

I would like offer my customer the option to add an insurance during check out.

Does anybody have a code or a solution to this please?

Thanks!

bmw000
VP-ASP New User

137 Posts

Posted - May 25 2005 :  19:23:52  Show Profile  Visit bmw000's Homepage  Reply with Quote
You can add it as a product feature. It would be time consuming possibly if you have a lot of items but I think it would work.

I know that's not the answer you were probably looking for, but it's all I got.

Hope this helps.


Brian Weber
BMW Solutions, LLC
http://www.bmwsolutions.com
Go to Top of Page

rvaga
VP-ASP Super User

USA
254 Posts

Posted - May 25 2005 :  20:49:39  Show Profile  Reply with Quote
Perhaps if you offered a bit more information?

If you just need a couple of insurance options, you could add these right below the cart items and Continue-Recalculate buttons in "View Cart:"

around line 238 in shopaddtocart.asp

response.write "<b>Insurance for your order is an optional $5.00</b><a href='http://www.yourwebsite optional.html/shopaddtocartnodb.asp?Productname=Insurance&price=5.00
&quantity=1><img src='vpnav_cat.gif' border='0'>or use text here instead of button</a><p>"

If you need a pull-down menu. . . beats me!


Go to Top of Page

greatphoto
VP-ASP Super User

USA
304 Posts

Posted - May 25 2005 :  22:50:55  Show Profile  Reply with Quote
Wow rvaga...that is slick. I never knew shopaddtocartnodb.asp existed. That could come in handy. Thanks!

Go to Top of Page

keng
VP-ASP New User

152 Posts

Posted - May 26 2005 :  00:27:33  Show Profile  Reply with Quote
Hi Rvaga,

Your code/text did not wrap properly. I got confuse with the correct syntax for "><a href='http://www.yourwebsite optional.html/". There is no optional.html on vpasp. Help. Thanks!

Go to Top of Page

keng
VP-ASP New User

152 Posts

Posted - May 26 2005 :  00:28:20  Show Profile  Reply with Quote
quote:

Hi Rvaga,

Your code/text did not wrap properly. I got confused with the syntax for "><a href='http://www.yourwebsite optional.html/". There is no optional.html on vpasp. Help. Thanks!





Go to Top of Page

greatphoto
VP-ASP Super User

USA
304 Posts

Posted - May 26 2005 :  08:44:50  Show Profile  Reply with Quote
Hi Keng-

Here is another way it could be written:

 
response.write "<b>Insurance for your order is an optional $5.00: </b>
<a href=shopaddtocartnodb.asp?Productname=Insurance&price=5.00&quantity=1>
Add insurance</a>"


You don't use the full absolute URL that includes your store domain name ("www.yourwebsite ") I think that is why rvaga stuck "optional" in there to hint that you can use the full URL or not. Note that in the code I showed above, I just used a text link. rvaga was showing how to do a button that may look nicer depending on your overall goal.



Edited by - greatphoto on May 26 2005 08:46:43
Go to Top of Page

rvaga
VP-ASP Super User

USA
254 Posts

Posted - May 26 2005 :  15:53:28  Show Profile  Reply with Quote
Thanks for stepping in and explaining, greatphoto.

Yes, that's exactly what I meant by "optional." I tend to use full URLs out of habit, it is not necessary. I do this so I can move a file and not worry about whether links to a subdirectory are valid.

As far as I know, there is no difference between the extension .htm and .html. Anyone know, is there a difference??

The add-to-cart-no-database is in the developer's pdf manual, I'm way too dumb to come up with something like this on my own.

Keng, if you haven't browsed the following page, you should:
http://www.vpasp.com/virtprog/info/

Go to Top of Page

greatphoto
VP-ASP Super User

USA
304 Posts

Posted - May 26 2005 :  18:12:39  Show Profile  Reply with Quote
quote:

As far as I know, there is no difference between the extension .htm and .html. Anyone know, is there a difference??

The add-to-cart-no-database is in the developer's pdf manual, I'm way too dumb to come up with something like this on my own.



No real difference between .htm and .html. Apparently, .htm is traditionally the more standard Windows (IIS) extension to use, as a holdover from the past when windows/dos only supported 3 letter extensions. Meanwhile, Linux (Apache) gravitated towards the 4 letter version. I think that now either one works with either platform much of the time.

Okay, so shopaddtocartnodb.asp was documented. Still, this was a nice original application of it. I think your claim of being dumb won't hold up if you keep having such good ideas...

Go to Top of Page

keng
VP-ASP New User

152 Posts

Posted - May 26 2005 :  22:21:55  Show Profile  Reply with Quote
PERFECT! It works! Thank you so much.

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