Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 General help me questions
 Upsell
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dunpeal
VP-CART New User

70 Posts

Posted - August 12 2007 :  17:24:32  Show Profile  Reply with Quote
How do i add upsell products in VPASP ? I am trying to offer another product for customers after they add to cart.

See Upsell in action here - add item to cart to see upsell
http://www.lef.org/newshop/items/item03123.html

Thanks

Steve2507
VP-CART Expert

590 Posts

Posted - August 13 2007 :  12:45:28  Show Profile  Reply with Quote
Hi,

We have set up a cross selling/upselling feaure by creating product features using checkboxes. A customer can then add a product plus the optional extra easily.

Essentially all of our normal product features (e.g. sizes, colours etc) utilise dropdown menus, then the cross selling features utilise checkboxes so we can keep a check on it and also we can make the optional extras stand out.

Have a look at our site and see if this is what you mean.



Steve
www.clixgalore.co.uk/AffSelectProgram.aspx?AdvProgID=7911
www.temptationsdirect.co.uk
Go to Top of Page

dunpeal
VP-CART New User

70 Posts

Posted - August 14 2007 :  11:43:33  Show Profile  Reply with Quote
Thanks for replying steve. That looks good, so what is the trick to caling in those optional extras in the template file and making them unique. Are they sub products ?
Go to Top of Page

Steve2507
VP-CART Expert

590 Posts

Posted - August 14 2007 :  13:32:20  Show Profile  Reply with Quote
Hi,

First of all you need to create the "optional extras". These are simply product features with a price attached to the feature. For example these are the settings for one:

Feature Number 888898
Feature Caption Optional extras:
Feature Name ID Sensual Glide Glide Lube 80ml CH60100
Feature Our Price 3.00
Feature Type Checkbox
Multiple Yes
Required No
Default No
Other Fields UOT60100.jpg
Other Fields 1 7080
Other Fields 2 ID Sensual Glide Glide Lube 80ml CH60100

Other Fields is the image of the optional extra, Other Fields 1 is the catalogd of the product and Other Fields 2 is the name that is displayed to the user.

I have put in the name of the product in Other Fields so that I can alter the way it is displayed to the user.

I haven't used featureimage because I had problems with it and my solution was quicker and easier than trying to find out what was wrong.

Then you attach the feature to the product as if it were a standard feature.

Then in the shopproductfeaturesgenerate.asp file the GenerateButton sub (approximately line 190) becomes

Sub GenerateButton (myconn)
' generates either radio or checkbox
Dim LoopEnd, FeatureValue, images
Dim Multiname, valuename
loopend="False"
sSelect=""
dim checkname, setselected
setselected=""
images=""
' read features record and add to select statements
response.write "<br><table width='100%' cellspacing='7' cellpadding='2' class='dashed'><tr><td>" & ProdFeatureCaption & strFeatureCaption & ProdFeatureCaptionEnd 
tempOption=""
valuename=fprefix & Prodindex & "Featurevalue" & fcount
checkname=fprefix & Prodindex & "Feature" & fcount
Do While LoopEnd="False" 
   GenerateFeaturename tempoption
   Featurevalue=lngFeatureid
    If strfeaturedefault<>0 then
      setselected=" checked=""checked"" "
   else
      setselected=""
   end if      
   If FeatureMultiSelection="YES" then
      sselect="<a href=shopexd.asp?id=" & strfeatureother1 & "&bc=no target=_blank><img src=Images_Recommended/" & strfeatureother & " width=25 height=25 border=0 alt=""" & strfeatureother2 & """></a><input type=""checkbox""" & setselected & " name=""" & valuename & """ value=""" & featurevalue & """ />" & tempoption & " "
   else
      sselect="<input type=""radio""" & setselected & " name=""" & checkname & """ value=""" & featurevalue & """ />" & tempoption & " "   
   end if
   addfeatureimage images   
   response.write sselect & "<br />"
   sselect=""
   FeatureRs.movenext
   if Not FeatureRS.EOF then 
      GetOptionValues FeatureRS, myconn
   else
      LoopEnd="True"
   end if
loop
sSelect= "</p>"
response.write sSelect & "</td></tr></table><br><br>"
If images<>"" then
   WriteFeatureimages images
end if   
If FeatureMultiSelection="YES" then
  response.write "<input type=""hidden"" name=""" & checkname & """ value=" & Chr(34) & lngfeatureid & Chr(34) & " />"
end if  
end sub

This puts a box around the option and sets the layout and alt text for the product.

In Sub GetOptionValues you then need to add the line
strfeatureother2=objrs("featuresother2")

which calls the Other Fields 2.

One important thing to remember is that if you have any other features with a radio button or checkbox they will also have the box around them. To get around this I made sure that all our other features did not appear as checkboxes or radio buttons.

Hope this helps.


Steve
www.clixgalore.co.uk/AffSelectProgram.aspx?AdvProgID=7911
www.temptationsdirect.co.uk
Go to Top of Page

dunpeal
VP-CART New User

70 Posts

Posted - August 14 2007 :  15:32:43  Show Profile  Reply with Quote
Excellent Steve. I am going to try that out. Thanks for the details
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