Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Print.css for extended description pages only?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sharon
VP-CART Super User

357 Posts

Posted - August 19 2015 :  09:36:42  Show Profile  Visit Sharon's Homepage  Reply with Quote
Is it possible to get a print stylesheet to load for the extended product pages only? I use a templates if this helps.

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - August 19 2015 :  14:05:17  Show Profile  Visit serjtankian's Homepage  Reply with Quote
you mean to print extended page? i think it''s possible but seems it will need a custom code






*serj*
Go to Top of Page

Sharon
VP-CART Super User

357 Posts

Posted - August 20 2015 :  03:04:51  Show Profile  Visit Sharon's Homepage  Reply with Quote
Custom code, beyond me then.
I can get a reasonable print from the extended description page to allow customers to save it as a PDF, but if you try & print any other page it is terrible.
Go to Top of Page

support
Administrator

4679 Posts

Posted - August 20 2015 :  03:24:51  Show Profile  Visit support's Homepage  Reply with Quote
Hi Sharon,

Serj is right it will take a little bit of custom coding.

Try this:

1. Open file shopexd.asp.

Around line 65 add in the following on a new line:

session("load_shopexd_css") = "yes"

Save and close.

2. Next open:

shop_load_othercss_sub.asp

3. At the bottom of the page just before the closing ASP tag add in the following:

sub load_shopexd_css
if lcase(session("load_shopexd_css")) <> "yes" then exit sub
%>
<link rel="stylesheet" type="text/css" href="print_style.css" />
<%
session("load_shopexd_css") = ""
end sub

Save and close.

Test by going to the shopexd.asp page.

Please let me know if this does not work.

Thanks

Cam Flanigan
VPCart Support
Go to Top of Page

support
Administrator

4679 Posts

Posted - August 20 2015 :  03:24:52  Show Profile  Visit support's Homepage  Reply with Quote
Hi Sharon,

Serj is right it will take a little bit of custom coding.

Try this:

1. Open file shopexd.asp.

Around line 65 add in the following on a new line:

session("load_shopexd_css") = "yes"

Save and close.

2. Next open:

shop_load_othercss_sub.asp

3. At the bottom of the page just before the closing ASP tag add in the following:

sub load_shopexd_css
if lcase(session("load_shopexd_css")) <> "yes" then exit sub
%>
<link rel="stylesheet" type="text/css" href="print_style.css" />
<%
session("load_shopexd_css") = ""
end sub

Save and close.

Test by going to the shopexd.asp page.

Please let me know if this does not work.

Thanks

Cam Flanigan
VPCart Support
Go to Top of Page

Sharon
VP-CART Super User

357 Posts

Posted - August 20 2015 :  03:50:31  Show Profile  Visit Sharon's Homepage  Reply with Quote
Thanks Cam, I tried as you said above and also with full path to stylesheet href="templates/default/css/print.css"

It hasn''t worked.
Go to Top of Page

support
Administrator

4679 Posts

Posted - August 22 2015 :  03:16:13  Show Profile  Visit support's Homepage  Reply with Quote
Sharon, Cam perhaps missed further steps :

4. On same file shop_load_othercss_sub.asp, locate this code :
on error goto 0

5. Before that code, please insert this code :
load_shopexd_css

So it will look like :

load_shopexd_css
on error goto 0

6. Save the file.

Also note on Cam provided step 3 :
<link rel="stylesheet" type="text/css" href="print_style.css" />

The correct path should be :
<link rel="stylesheet" type="text/css" href="templates/default/css/print_style.css" />

Thanks
Wilson
VPCart Support
VPCart Support
Go to Top of Page

support
Administrator

4679 Posts

Posted - August 23 2015 :  23:48:26  Show Profile  Visit support's Homepage  Reply with Quote
Hi Sharon,

Sorry missed the last bit.

Thanks

Cam Flanigan
VPCart Supprot
Go to Top of Page

Sharon
VP-CART Super User

357 Posts

Posted - August 24 2015 :  06:33:21  Show Profile  Visit Sharon's Homepage  Reply with Quote
One last tweak

The path to the stylesheet was missing the media type

<link rel="stylesheet" type="text/css" media="print" href="templates/default/css/print.css" />

It now works a treat.
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