Moving Description below product image |
Post Reply |
Author | ||
fidjiti
Senior Member Joined: 30-November-2006 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
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. :) |
||
netprofits
Certified ProductCart Developers Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
|
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. |
||
fidjiti
Senior Member Joined: 30-November-2006 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
|
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. :) |
||
netprofits
Certified ProductCart Developers Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
|
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.
|
||
fidjiti
Senior Member Joined: 30-November-2006 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
|
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"> </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. :) |
||
netprofits
Certified ProductCart Developers Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
|
In the first section of code, delete all the lines except the first and last so you have something like this:
In the 2nd section of code, remove JUST this text:
Make sure to KEEP the %> after the THEN jeyword. Then remove the "end if" that is one line above the "End Sub" line. |
||
fidjiti
Senior Member Joined: 30-November-2006 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
|
Linda - I wish I knew ASP.
To view my ever evolving site click the "www" button below. :) |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |