Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.0 Hint''s and Tips
 Line Breaks in Long Description Tab
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jbutt
VP-CART New User

USA
56 Posts

Posted - May 17 2017 :  21:10:37  Show Profile  Reply with Quote
Here is a quick tip if you would like to preserve any line breaks or new lines in text from the extended description (long description tab) in the extended product page.

insert the following code in basic-style.css around line 675 (doesn''t have to be there but it will keep it close to the other related css parts.

.tabcontent {
white-space: pre-wrap;
}

John

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - May 18 2017 :  10:30:48  Show Profile  Reply with Quote
Good tutorial John, will try soon. Thank you
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - May 18 2017 :  12:55:48  Show Profile  Visit serjtankian's Homepage  Reply with Quote
have tested and the result it looks the white gap is to far?

http://prntscr.com/f9csix





*peace - serj*
Go to Top of Page

jbutt
VP-CART New User

USA
56 Posts

Posted - May 18 2017 :  14:31:04  Show Profile  Reply with Quote
Hi Serj,

The gap you notice is caused by two things that can be easily rectified. I had the same issue and realized that white-space affects even the spacing in the html code that isn''t specifically a line break.

In shopprotabs.asp go to line 81. Remove all spacing between the end _padding"> and the followning <%


It should look like this:

<div id="<%=xprotabsconfigsary(icnt)%>" class="tabcontent content_padding"><%

Do the same to line 121. The final result will look like this.

%></div>

Finally, you can delete or comment out the break in line 113. This is what my code looks like.
================================================

<div id="<%=xprotabsconfigsary(icnt)%>" class="tabcontent content_padding"><%
case lcase(xprotabsconfigsary(icnt))
case "xalsobought"
Handle_ALSOBOUGHT ivalue,parsearray,parseRS
htmlwrite "<div class=""addotherbtnwrapper"">"

''800 - 2016.09.07 - Alsobought: If checkbox, then display Add to items button
if cdbl(session("alsobought_checkbox_ctr")) > 0 then
handle_submitbutton ivalue,parsearray,parseRS
end if

htmlwrite "</div>"
case "xcrossselling"
Handle_CROSSSELLING ivalue,parsearray,parseRS
htmlwrite "<div class=""addotherbtnwrapper"">"
handle_submitbutton ivalue,parsearray,parseRS
htmlwrite "</div>"
case "xprocatdisplay"
Handle_procatdisplay ivalue,parsearray,parseRS
htmlwrite "<div class=""addotherbtnwrapper"">"
handle_submitbutton ivalue,parsearray,parseRS
htmlwrite "</div>"
case "xallowratingproducts"
displayreviews
case "xtellafriend"
displaytellafriendform
case "xproductextdesc"
''701 - 2011.04.19 - Enhancement: Speed enhancement fixes
fieldvalue = parseRS("extendeddesc")

transvalue=TranslateLanguage(dbc, "products", "extendeddesc","catalogid", parsers("catalogid"), fieldvalue)
htmlwrite transvalue

''800 - 2017.03.29 - Integrate with Lipscore
case "xallowlipscore"
displaylipscoresform parseRS

end select
%></div>
==============================

Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - May 18 2017 :  15:29:58  Show Profile  Visit serjtankian's Homepage  Reply with Quote
strange, i already did the same thing as you but the gap still there





*peace - serj*
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