Reward Points
Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1874
Printed Date: 20-January-2025 at 11:08pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Reward Points
Posted By: macleather
Subject: Reward Points
Date Posted: 04-August-2008 at 9:00pm
Hi All,
I want to change the color of the Reward Points verbiage shown on the product details page. I think it would be better seen in some contrasting color rather than the same as the rest of the description. However, I can't seem to find which asp file contains this information.
Any help is appreciated.
Alan
|
Replies:
Posted By: Hamish
Date Posted: 05-August-2008 at 4:52am
Hi Alan, The file is viewPrdCode.asp - but an easier solution which involves no special ongoing maintenance is to add the HTML tags to viewprd_50 & viewprd_51 in includes/languages.asp.
------------- Editing ProductCart Code?
See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code
|
Posted By: macleather
Date Posted: 05-August-2008 at 3:07pm
Hi Hamish,
Thanks for the reply. I prefer the HTML tags in languages.asp for the same reason you mention however I was not aware you could insert tags there. I put in a span tag <span style="color:red"> both before the " and also inside the " on both lines and when I tried to get into control panel I got a script error for those lines for each instance. Do you know if I need to do this some other way?
Thanks, Alan
|
Posted By: Hamish
Date Posted: 05-August-2008 at 3:27pm
Hi, Try changing each of the " marks you want embedded to a pair of double quotes. <span style=""color:red"">
------------- Editing ProductCart Code?
See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code
|
Posted By: Hamish
Date Posted: 05-August-2008 at 3:44pm
Hi Alan, just to clarify - put the <span style=""color:red""> INSIDE the existing quote marks.
The problem you were having was because the single " character was ending the variable. Doubling them up causes the variable to be continued with a single " embedded in the string.
------------- Editing ProductCart Code?
See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code
|
Posted By: macleather
Date Posted: 05-August-2008 at 4:03pm
Hamish, That worked like a charm. It sure is great to have so many smart people helping out at this forum.
Maybe you know where the number of points displayed between the text I just changed comes from. I'd like to change the color of that to match. It says "You will earn XX points on this product. I want the XX points to be in red as well.
Thanks so much, I've been trying to do this for 2 days now.
Alan
|
Posted By: Hamish
Date Posted: 05-August-2008 at 6:06pm
Hi Alan, Your 99% of the the way there. Just remove :- - </SPAN> from viewprd_50 - <span style=""color:red""> from viewprd_51 and that will allow the <span> to span the entire phrase (excuse the pun )
------------- Editing ProductCart Code?
See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code
|
Posted By: macleather
Date Posted: 05-August-2008 at 6:30pm
I feel soooo stupid. I know that... Obviously my brain didn't know it today. Thanks for taking the time to "see" my problem. I guess as they say, two heads are better than one and thank goodness your's is working.
Much Appreciated,
Alan
|
|