Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 ASP (Windows server) versions
 Detailnoratings syntax error?
Author « Topic »  

Positivek9
Ecommerce Template Guru

USA
4061 Posts

Pre-sales questions only
(More Details...)

Posted - 09/30/2017 :  11:38:28  
Hi there!

I keep getting a syntax error when I try to add the following to the includes:

If you want to show content when there are no reviews or ratings add this...
...in vsadmin/includes.asp
detailreviewnoratings='<div class="detailnoratings">Whatever You like</div>'

Can you check the formatting, I've tried replacing the ' with " but I still get an error.

Thanks in advance!

Julie
Browns Summit NC USA

Edited by - Positivek9 on 09/30/2017 11:38:48

Andy
ECT Moderator

95440 Posts

Posted - 09/30/2017 :  11:42:55  
Hi Julie

Use this syntax

detailreviewnoratings="<div class=""detailnoratings"">Whatever You like</div>"

Andy


Please feel free to review / rate our software

Positivek9
Ecommerce Template Guru

USA
4061 Posts

Pre-sales questions only
(More Details...)

Posted - 09/30/2017 :  11:55:41  
No error but no stars are showing? All I have is the text..... ??

Originally I had this (before the changes I had done this for the stars):

detailreviewnoratings="<div class=""detailnoratings""><a href=""javascript:window.location=window.location.href+'&review=true'""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><br>Be the first to rate!</a></div>"

Should I just go back to that or am I missing something?

Julie
Browns Summit NC USA

Andy
ECT Moderator

95440 Posts

Posted - 09/30/2017 :  13:09:20  
Does it show ok without the javascript line.?

Andy

Please feel free to review / rate our software

Positivek9
Ecommerce Template Guru

USA
4061 Posts

Pre-sales questions only
(More Details...)

Posted - 09/30/2017 :  13:22:33  
If I use the line detailreviewnoratings="<div class=""detailnoratings"">Whatever You like</div>"

It just shows the text "Whatever you like" - no stars, no link to review.

Julie
Browns Summit NC USA

Andy
ECT Moderator

95440 Posts

Posted - 09/30/2017 :  14:12:40  
Sorry I was referring to something like this

detailreviewnoratings="<div class=""detailnoratings""><a href=""#reviews'""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><img src=""images/reviewcartgno.gif"" style=""vertical-align:middle;margin:0px;""><br>Be the first to rate!</a>
</div>"

Andy

Please feel free to review / rate our software
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000