Welcome, Guest ( Customer Panel | Login )




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

alfabravo
VP-CART New User

74 Posts

Posted - April 28 2011 :  17:35:10  Show Profile  Reply with Quote
Is it possible to display productfeatures in colums like:
1 4 6
2 5 7
3 6 8

instead of 1 longone:
1
2
3
4...

Thanks

alfabravo
VP-CART New User

74 Posts

Posted - May 02 2011 :  02:27:34  Show Profile  Reply with Quote
I'll apreciate any idea or any help!

Thanks
Go to Top of Page

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - May 02 2011 :  04:23:28  Show Profile  Reply with Quote
Hi,

you'll need custom coding in shopproductfeaturesgenerate.asp to create a table and loop through the features to display in columns.
This would apply to v6.50, I don't know about v7

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - May 02 2011 :  06:19:54  Show Profile  Reply with Quote
I was curious to see how this worked so I've added some code to our test site.
Is this what you were looking for?

http://www.deanston-electrical.co.uk/TestScreenShot.htm

Let me know and I will show you how it's done (v6.50 only)

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

alfabravo
VP-CART New User

74 Posts

Posted - May 03 2011 :  12:13:59  Show Profile  Reply with Quote
Hi Carol

That's exactly what I'm looking for. I'm looking forward to see how you did it.

Thanks

quote:
Originally posted by carfin

I was curious to see how this worked so I've added some code to our test site.
Is this what you were looking for?

http://www.deanston-electrical.co.uk/TestScreenShot.htm

Let me know and I will show you how it's done (v6.50 only)

Regards,

Carrol
www.deanston-electrical.co.uk

Go to Top of Page

alfabravo
VP-CART New User

74 Posts

Posted - May 04 2011 :  16:16:43  Show Profile  Reply with Quote
Hi Carol

Can you show me how you did it?

Thanks
Go to Top of Page

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - May 05 2011 :  09:07:15  Show Profile  Reply with Quote
Sorry about the delay, I have not had internet access at work for the last 2 days (ISP changeover that was supposed to take 5 mins) to give you the code. Anyway here you go.

Open shopproductfeaturesgenerate.asp and save a copy.
These changes only affect the display of features that are checkboxes or radio buttons

Find the Subroutine Sub GenerateButton (myconn)

After the line
Dim Multiname, valuename
add the following:
Dim colcount
colcount=0


After the line
checkname=fprefix & Prodindex & "Feature" & fcount
Add the following:
%>
<tr>
<%


After the line
Do While LoopEnd="False"
add the following:
response.write "<td>"

Change the lines
response.write sselect & "<br />"
sselect=""

To
response.write sselect & "</td>"
sselect=""
colcount=colcount+1
if colcount>= 4 then
response.write "</tr>"
colcount=0
end if


Finally after the line
response.write "<input type=""hidden"" name=""" & checkname & """ value=" & Chr(34) & lngfeatureid & Chr(34) & " />"
add the following
%>
</tr>
<%


Save the file and test.


Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

alfabravo
VP-CART New User

74 Posts

Posted - May 05 2011 :  14:03:49  Show Profile  Reply with Quote
Thank you Carrol, it worked perfectly. I apreciate it
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