Loading Styles & Scripts on R2 When Multiple Themes Used

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
itnovator
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Tue Jan 07, 2014 11:23 am

Loading Styles & Scripts on R2 When Multiple Themes Used

Post by itnovator » Tue Jan 21, 2014 9:47 am

Hi, there, here is the problem, hopefully somebody can give a hint.

We have a default theme, say "abc" and another theme "xyz". Every page uses the default theme except one page "mns" which uses "xyz" theme. However, every time I load up the page, it is not just loading all styles and scripts from the theme "xyz", also styles and scripts from the default theme "abc". I have checked the followings:

Base.master -> layout for the new theme -> header and footer of new theme -> skin of new theme

Nowhere i included the default styles and scripts on the new theme, but why they are there in the <head>? Please someone gives a hint, it has driven me crazy!

thanks.
Fun programming!

itnovator
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Tue Jan 07, 2014 11:23 am

Re: Loading Styles & Scripts on R2 When Multiple Themes Used

Post by itnovator » Sat Jan 25, 2014 12:57 pm

Seems nobody is able to answer this question. Seems to me there is an extra JavaScript is appended at the end of footer. Is this from CommerceBuilder as default or is this something else? The current system was developed by outsourcing developers before. I did not see anywhere it was added. Anyone has a hint?

thank you.
Fun programming!

itnovator
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Tue Jan 07, 2014 11:23 am

Re: Loading Styles & Scripts on R2 When Multiple Themes Used

Post by itnovator » Sat Jan 25, 2014 12:58 pm

Sorry, here is the JavaScript was appended to the end of page:

<script language="javascript">
$(document).ready(function () {
$('#myCarousel').carousel();
});
</script>
Fun programming!

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Loading Styles & Scripts on R2 When Multiple Themes Used

Post by jmestep » Mon Jan 27, 2014 6:16 am

The carousel script tag is not from Able. You could also check in the htmlhead area of the problem object(category, product) in the edit page of the admin. People add scripts there also.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

itnovator
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Tue Jan 07, 2014 11:23 am

Re: Loading Styles & Scripts on R2 When Multiple Themes Used

Post by itnovator » Mon Jan 27, 2014 8:29 am

Thanks, Judy. Found in pageHelper.aspx. What a mess!
Fun programming!

Post Reply