ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Moving Description below product image
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Moving Description below product image

 Post Reply Post Reply
Author
Message
fidjiti View Drop Down
Senior Member
Senior Member


Joined: 30-November-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote fidjiti Quote  Post ReplyReply Direct Link To This Post Topic: Moving Description below product image
    Posted: 12-February-2007 at 1:39pm
Okay I'm trying to move the description from showing up on the right side of the product image to below the product image.

Heres and example of what it looks like now:
http://www.fidjiti.com/shop/pc/viewPrd.asp?idcategory=&i dproduct=589

Heres and example of what i would like it to look like:
http://www.fidjiti.com/shop/pc/viewPrd.asp?idcategory=&i dproduct=859
I had to add a SPACE BAR to the "short description" field in order to get it to move the text below the image. But the "more details" link is still there. I would prefer no link there and I would also prefer not to have to add a SPACE BAR to the "short description" field in order to move the info below the image.

If you know which page I can edit to do this and what I need to change to make it work, I would greatly appreciate it. Just trying to get it to look good and not be so cluttered. :)
Thanks in advance.
Linda - I wish I knew ASP.
To view my ever evolving site click the "www" button below. :)
Back to Top
netprofits View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers


Joined: 05-January-2006
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote netprofits Quote  Post ReplyReply Direct Link To This Post Posted: 12-February-2007 at 2:44pm

The space is needed becasue the short description is a required field. You would need to modify admin/instaprd.asp and admin/modprda.asp to not require those fields.

To change the "More details" link and anything about the display of a product details page, you modify viewPrdCode.asp. There are sections labeled for each section of the display.

NetProfits Internet Consulting

Certified ProductCart Developer

Our Site
Back to Top
fidjiti View Drop Down
Senior Member
Senior Member


Joined: 30-November-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote fidjiti Quote  Post ReplyReply Direct Link To This Post Posted: 12-February-2007 at 8:34pm
Short description isn't required on my version of PC. Just the regular description is required in the admin section. So i just want to move the data from the "product description" below the image. I'll look at those files and post my findings.

Linda - I wish I knew ASP.
To view my ever evolving site click the "www" button below. :)
Back to Top
netprofits View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers


Joined: 05-January-2006
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote netprofits Quote  Post ReplyReply Direct Link To This Post Posted: 13-February-2007 at 8:10am
Sorry, my bad...the description field is the required field, not the short description. But if the short description is completely blank, then PC displays the description field to the right of the product picture. If the short description has a blank, then the "More Details" link displays (as you mentioned). So you would just need to modify viewprdcode.asp to turn not even check the short description field (then you won't need to put in a space, hide the More Details link and just have the description displayed below the picture.
NetProfits Internet Consulting

Certified ProductCart Developer

Our Site
Back to Top
fidjiti View Drop Down
Senior Member
Senior Member


Joined: 30-November-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote fidjiti Quote  Post ReplyReply Direct Link To This Post Posted: 13-February-2007 at 4:18pm
K...so here's the code that i found that would display the description next to the product, I just don't know what I should do to remove it from the right of the image and just leave the description below it.

This code is closer to the top of the page:

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START:  Show Product Description
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    
Public Sub pcs_ProductDescription
    if psDesc <> "" then
        response.write "<div class='pcShowProductSDesc' style='padding-top: 5px'>"
        response.Write psDesc & " <a href='#details'>" & dictLanguage.Item(Session("language")&"_viewPrd_21") & "</a>"
        response.write "</div>"
    else
        response.write "<div class='pcShowProductSDesc' style='padding-top: 5px'>"
        response.Write pDetails
        response.write "</div>"
    end if
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END:  Show Product Description
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Then this code is lower and says it's the long description.

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Long Product Description
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Sub pcs_LongProductDescription
' Display long product description if there is a short description
    if psDesc <> "" then %>
        <table class="pcShowContent">
            <tr>
                <td><a name="details">&nbsp;</a></td>
            </tr>
            <tr>
                <td class="pcSectionTitle">
                    <%=dictLanguage.Item(Session("language")&"_viewPrd_22 ")%>
                </td>
            </tr>
            <tr>
                <td style="padding:8px;">
                    <%=pDetails%>
                </td>
            </tr>
            <tr>
                <td>
                    <%
                    response.write "<div align='right'><a href='#top'>" & dictLanguage.Item(Session("language")&"_viewPrd_23") & "</a></div>"
                    %>
                </td>
            </tr>
        </table>
<%
    end if
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Long Product Description
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

So does anyone know what I would have to change to make the "long" description be the only thing that shows and it's below the product image? (without the more details link at the top) It's probably something simple, I just don't know what that simple thing is. :) I'll play around with it. I guess I could just delete all of the code from that fisrt section. Maybe that would do the trick.  (good thing I made a copy of the original file)
Linda - I wish I knew ASP.
To view my ever evolving site click the "www" button below. :)
Back to Top
netprofits View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers


Joined: 05-January-2006
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote netprofits Quote  Post ReplyReply Direct Link To This Post Posted: 13-February-2007 at 4:36pm

In the first section of code, delete all the lines except the first and last so you have something like this:


Public Sub pcs_ProductDescription
End Sub

In the 2nd section of code, remove JUST this text:


if psDesc <> "" then

Make sure to KEEP the %> after the THEN jeyword.

Then remove the "end if" that is one line above the "End Sub" line.

NetProfits Internet Consulting

Certified ProductCart Developer

Our Site
Back to Top
fidjiti View Drop Down
Senior Member
Senior Member


Joined: 30-November-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote fidjiti Quote  Post ReplyReply Direct Link To This Post Posted: 13-February-2007 at 4:49pm
You're a genius! Thanks for that, it totally worked. See a sample product page here.

Thanks again!
Linda - I wish I knew ASP.
To view my ever evolving site click the "www" button below. :)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.