ProductCart and jQuery

Last Updated: Jun 23, 2014 10:39AM EDT

How it is loaded


ProductCart leverages the popular jQuery JavaScript library to perform client-side tasks such as displaying information in a modal window, handling the user experience on One Page Checkout, and more.

jQuery is loaded in the ProductCart storefront as follows:
  • the file ”header.asp” in the pc folder includes ”inc_header.asp
  • the file ”inc_header” includes ”inc_jquery.asp
  • inc_jquery.asp” loads the CSS and JavaScript as follows (as of January, 2011)
 
<!--INCLUDE JQUERY - START -->
<%
private const scJQuery="1"
%>
<link type="text/css" href="../includes/jquery/themes/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
<%
user_agent = request.servervariables("HTTP_USER_AGENT")
if Instr(ucase(user_agent),"CHROME")>0 then
	%>
    <link type="text/css" rel="stylesheet" href="onepagecheckout.css" />
    <link type="text/css" rel="stylesheet" href="onepagecheckoutGoogle.css" />
<% else %>
	<link type="text/css" rel="stylesheet" href="onepagecheckout.css" />
<% end if %>
<script type="text/javascript" src="../includes/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../includes/jquery/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../includes/jquery/jquery.validate.min.OPC.js"></script>
<script type="text/javascript" src="../includes/jquery/jquery.bgiframe.pack.js"></script>
<script type="text/javascript" src="../includes/jquery/jquery.form.js"></script>
<!--INCLUDE JQUERY - END -->

 

Potential conflicts


If you load jQuery independently of ProductCart (e.g. you load it in header.asp as part of your Web site interface), there could be some conflicts that result in JavaScript errors.

For example, some customers have reported problems on One Page Checkout (cannot move passed Billing panel).

We strongly recommend that you do not load 2 instances of jQuery. You should be able to safely remove the additional include statements in your Web site design and just rely on the fact that ProductCart loads jQuery already.
647e99095133bd6d1ae916f97dc7f92f@productcart.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete