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
 FormatProductOptions sub layout
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Amy
Starting Member

11 Posts

Posted - October 02 2007 :  01:51:02  Show Profile  Visit Amy's Homepage  Reply with Quote
Hi,

How do I layout a product's options? I only see [FormatProductOptions sub] in tmp_productformat.htm being inside a <td> and that's it.

Right now, I have 8 drop down menus but they're laid out vertically. I want to be able to lay them out differently, in 2 columns of 4 for example. Where do I go to do that?

Thanks!!

Amy
Starting Member

11 Posts

Posted - October 02 2007 :  20:05:10  Show Profile  Visit Amy's Homepage  Reply with Quote
Any idea?? The user guide doesn't mention anyting about customizing [FormatProductOptions sub]'s layout.

Go to Top of Page

THeVerve
VP-ASP New User

117 Posts

Posted - October 03 2007 :  01:30:32  Show Profile  Reply with Quote
I don't think there's a built in feature to do that.

But try this custom code :

Open the file shopproductfeaturesgenerate.asp and find the lines below (should be around line 46):

for i = 0 to Featurecount
fcount=fcount+1
ProcessFeatureforProduct Feature_Array(i), dbc
response.write "</td>"
next

change it to :

response.write "<table><tr>"
for i = 0 to Featurecount
response.write "<td valign = ""top"">"
fcount=fcount+1
ProcessFeatureforProduct Feature_Array(i), dbc
response.write "</td>"

if ((i-1) mod 2) = 0 then
response.write "</tr><tr>"
end if
next
response.write "</tr></table>"

The code above should now display the 2 options on each line. so if you have 8 options, it will be displayed as 2x4 lines
Go to Top of Page

Amy
Starting Member

11 Posts

Posted - October 03 2007 :  01:47:02  Show Profile  Visit Amy's Homepage  Reply with Quote
Thanks for you reply!

My code is slightly different (ver. 6.07) and makes no mention of HTML tags. What should I change?

It is not:

for i = 0 to Featurecount
fcount=fcount+1
ProcessFeatureforProduct Feature_Array(i), dbc
response.write "</td>"
next

Rather, it is:

for i = 0 to Featurecount
fcount=fcount+1
ProcessFeatureforProduct Feature_Array(i), dbc
next
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000