Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 edit Cross selling Image size and font size
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

perinius
Starting Member

USA
47 Posts

Posted - December 17 2008 :  20:52:21  Show Profile  Reply with Quote
Can anyone let me know where the formatting for the cross selling items is?
I looked in shopalsobought and did a search for "image" but nothing was found.
I also searched shop.css for "cross" and "also" but nothing was found.
Thanks!

Ben

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - December 18 2008 :  04:08:27  Show Profile  Reply with Quote
Hi Ben,

open shopproductsubs.asp in a text or html editor and find the sub routine Sub FormatAssociatedrow (rs) approx. line 1780. In this routine you will see the table display formatting for Cross Selling and Also Bought (both use this table)

<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="20%" valign="top">
<a href="<%=url%>"><img src="<%=imagefile%>" width='60' height='60' border='0'></a>
</td>

<td width="50%" valign="top" align="left"> <span class=hdrproduct><a href="<%=url%>"><%=cname%></a></span>
<br /><%=cdescription%></td>
<td width="30%" align="right" valign="top">
<%if hideprice <> true then %>
Our Price:<span class='price'><%=shopformatcurrency(rs("cprice"), getconfig("xdecimalpoint"))%></span><br />
<%end if%>
<p><strong><a href="<%=url%>"><%=getlang("langproductclick")%></a></strong></p>
</td>

</tr>
</table>


You can alter your image size here. The fonts are controlled by the Products formatting in shop$colors.asp

Regards,

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

gledav
VP-CART New User

Australia
66 Posts

Posted - June 30 2009 :  23:17:42  Show Profile  Visit gledav's Homepage  Reply with Quote
Hi Carol,

I'm trying to alter the way cross selling products display in order to add mfg as I have the manufacturer of the products not included in cname. I've tried to do it in the code section you have above without success. Is there a template that governs the display of the cross selling feature? Any help would be appreciated. Kind regards, Glenn.
Go to Top of Page

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - July 01 2009 :  04:30:11  Show Profile  Reply with Quote
Hi,

I don't think there is a template which governs the display of cross selling or also bought. I altered the display of cross selling by changing the code as listed above in shopproductsubs.asp.
If you want to add the mfg field you will need to do the following:
Find Sub FormatAssociatedrow (rs) - approx line 1780. This sub is only used if you have images to display with the cross selling.
Find dim catalogid, imagefile, ccode, cprice, url, cdescription, mfg and add the code in red
Then find:
ccode=rs("ccode")
cdescription = rs("cdescription")

mfg = rs("mfg")
dim assocdbc
and add the code in red

You can now add the mfg field to the table:

<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="15%" valign="top" align="centre">
<a href="<%=url%>"><img src="<%=imagefile%>" ></a>
</td>
<td width="80%" valign="top" align="left"> <span class=hdrproduct><a href="<%=url%>"><%=ccode%></a></span>
<%=cdescription%> <br />
<%=mfg%> <br />
<%if hideprice <> true then %>
Price:<%=shopformatcurrency(rs("cprice"), getconfig("xdecimalpoint"))%>
<%end if%>
<br /><strong><a href="<%=url%>"><%=getlang("langproductclick")%></a></strong>
</td>
</tr>
</table>

This is my altered code for our display, not the original.
Hope this helps.

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

gledav
VP-CART New User

Australia
66 Posts

Posted - July 09 2009 :  00:46:30  Show Profile  Visit gledav's Homepage  Reply with Quote
Thanks again, Carrol. I'll give it a go.


Glenn

www.wineseek.com.au
www.creativemusic.com.au
www.mygiftbasket.com.au
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