Print Page | Close Window

pcShowProductsM Customization

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=4418
Printed Date: 14-July-2025 at 11:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: pcShowProductsM Customization
Posted By: nepcosignsupply
Subject: pcShowProductsM Customization
Date Posted: 13-April-2011 at 11:46am
Hello everyone,
I wanted to know in the pcShowProductsM table, I want to be able to customize the SKU field so its length does not cut off to a second line when the SKU is a bit too lengthy. Is there a way to customize this column so its full length can be displayed at 100%?
Thanks



Replies:
Posted By: Greg Dinger
Date Posted: 13-April-2011 at 11:57am
Well, briefly, this code exists in the viewcategories.asp file.  You probably need to mess with the TD tag for SKU, and perhaps with your CSS settings, in order to adjust column widths.   
 
<tr class="pcShowProductsMheader">
    <td>&nbsp;</td>
    <td>SKU</td>
    <td width="70%">Description</td>
    <td width="15%" align="center">Price</td>
 </tr>


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: nepcosignsupply
Date Posted: 13-April-2011 at 1:56pm
Thanks, but unfortunately there's no code to what you're posting in viewcategories.asp
The only piece I was able to find was -

<tr class="pcShowProductsMheader">
                            <td colspan="<%if iShow=1 then%>5<%else%>4<%end if%>">
                                <% response.write
dictLanguage.Item(Session("language")&"_viewCat_P_12") %>
                            </td>
                        </tr>

If it helps, I'm using ProductCart v4.1 SP 1
Thanks


-------------
http://www.nepcosignsupply.com/ - http://www.nepcosignsupply.com/


Posted By: Greg Dinger
Date Posted: 13-April-2011 at 2:01pm
Right.  there are tokens that reference entries in the languages.asp file for the actual words. 
 
The piece that display sku is specifically this:

       <% if pShowSku <> 0 then %>
       <td>
        <% response.write dictLanguage.Item(Session("language")&"_viewCat_P_8") %>
       </td>
       <% end if %>
 
 


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: nepcosignsupply
Date Posted: 13-April-2011 at 2:43pm
Alright thank you that worked!
Here's what I did to fix it, if anyone else is wondering:

<% if pShowSmallImg <> 0 then %>
                                <td>&nbsp;</td>
                            <% end if %>
                            <% if pShowSku <> 0 then %>
                            <td width="15%">
                                <% response.write dictLanguage.Item(Session("language")&"_viewCat_P_8") %>
                            </td>
                            <% end if %>
                            <td width="70%">
                                <% response.write dictLanguage.Item(Session("language")&"_viewCat_P_9") %>
                            </td>
                            <td width="15%" align="center">
                                <% If session("customerType")="1" then
                                    response.write dictLanguage.Item(Session("language")&"_viewCat_P_11")
                                 else
                                    response.write dictLanguage.Item(Session("language")&"_viewCat_P_10")
                                end if %>
                            </td>


-------------
http://www.nepcosignsupply.com/ - http://www.nepcosignsupply.com/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net