<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>SalesCart Forums : order managment java&#115;cript code change</title>
  <link>http://forum.salescart.com/forum/</link>
  <description><![CDATA[This is an XML content feed of; SalesCart Forums : SalesCart Standard / PRO / SQL : order managment java&#115;cript code change]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 07 Jun 2026 02:10:32 +0000</pubDate>
  <lastBuildDate>Wed, 02 Jun 2004 09:53:13 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.salescart.com/forum/RSS_post_feed.asp?TID=109</WebWizForums:feedURL>
  <image>
   <title><![CDATA[SalesCart Forums]]></title>
   <url>http://forum.salescart.com/forum/forum_images/web_wiz_forums.png</url>
   <link>http://forum.salescart.com/forum/</link>
  </image>
  <item>
   <title><![CDATA[order managment java&#115;cript code change : Actually if it is a bug within...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=109&amp;PID=424&amp;title=order-managment-javascript-code-change#424</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=4">Techno Geek</a><br /><strong>Subject:</strong> 109<br /><strong>Posted:</strong> June/02/04 at 9:53am<br /><br />Actually if it is a bug within the code you get it for free. The only thing that you would need to do is send in the support request and we would give you the files. <br /><br />As long as you have the current version of the cart, you would have the current files.]]>
   </description>
   <pubDate>Wed, 02 Jun 2004 09:53:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=109&amp;PID=424&amp;title=order-managment-javascript-code-change#424</guid>
  </item> 
  <item>
   <title><![CDATA[order managment java&#115;cript code change : Will, Thanks for the response....]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=109&amp;PID=422&amp;title=order-managment-javascript-code-change#422</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 109<br /><strong>Posted:</strong> June/01/04 at 1:22pm<br /><br />Will,<br />Thanks for the response.  I looked at the support page and looks like you only provide support for 60 days.  What url are you referring to when you say a support ticket?<br /><br />This was just one issue that was fixed.  I imagine that others have been fixed as well.  Can we get those as well or do we have to pay for them?  Just wondering what the process is.  Plus, could be a major pain since we may have coded for a lot of these already.  Do you also provide what code has changed for us developers that do add-ons to your purchased code?<br /><br />Thanks]]>
   </description>
   <pubDate>Tue, 01 Jun 2004 13:22:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=109&amp;PID=422&amp;title=order-managment-javascript-code-change#422</guid>
  </item> 
  <item>
   <title><![CDATA[order managment java&#115;cript code change : I believe the issue has been addressed....]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=109&amp;PID=418&amp;title=order-managment-javascript-code-change#418</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=4">Techno Geek</a><br /><strong>Subject:</strong> 109<br /><strong>Posted:</strong> June/01/04 at 9:01am<br /><br />I believe the issue has been addressed. Please submit a support ticket and we'll send you the appropriate files. <br /><br />This was a bug in the order management so the revised files are provided upon request.]]>
   </description>
   <pubDate>Tue, 01 Jun 2004 09:01:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=109&amp;PID=418&amp;title=order-managment-javascript-code-change#418</guid>
  </item> 
  <item>
   <title><![CDATA[order managment java&#115;cript code change : Not sure if this is just our order...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=109&amp;PID=413&amp;title=order-managment-javascript-code-change#413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 109<br /><strong>Posted:</strong> June/01/04 at 6:39am<br /><br />Not sure if this is just our order managment pages or not.  Today is the 1st and when you go into Control Panel/Manage Orders/Purchase orders ......  you view 'Order Retrieval' with a bunch of sections.  The top one 'by Date' has Today, Yesterday, 2 days Ago, and 3 days Ago option buttons.  On the first few days of each month your javascript may not provide the proper date if you select anything other then Today.&nbsp;&nbsp;&nbsp;I have found some code online that may help and I will provide what I have.  <br /><br />Will, can you give some feedback on if you also have this same issue and if this will work?<br /><br />If anyone finds issues with this please provide some feedback for everyone that uses this.<br /><br />-page with javascript: shop/online/3_order.asp<br />-javascript function: AddDay<br /><br />&lt;code&gt;<br />function AddDay(xdays){<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var now = new Date() <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var day = now.getDate() - xdays<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var month = now.getMonth() + 1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var year = now.getYear()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var dateValue = "" + month + "/" + day + "/" + year <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Start of new code<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (day &lt; 1){<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // original source code from http://developer.irt.org/script/1127.htm<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var today = new Date();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var MonthDays = new Array(31,28,31,30,31,30,31,31,30,31,30,31);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theYear = today.getYear();<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (theYear &lt; 1000) theYear +=1900;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StartOfThisYear = new Date(theYear,0,1);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndOfThisYear = new Date(theYear,11,31);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StartOfLastYear = new Date(theYear-1,0,1);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndOfLastYear = new Date(theYear-1,11,31);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (today.getMonth()==0) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StartOfLastMonth = new Date(theYear-1,11,1);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndOfLastMonth = new Date(theYear-1,11,MonthDays&#091;11&#093;);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StartOfLastMonth = new Date(theYear,today.getMonth()-1,1);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LastMonth = today.getMonth()-1;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DaysInLastMonth = MonthDays&#091;LastMonth&#093;;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (LastMonth == 1) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // February<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (theYear%400==0 || (theYear%4 == 0 && theYear%100!=0) )<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DaysInLastMonth +=1;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EndOfLastMonth = new Date(theYear,today.getMonth()-1,DaysInLastMonth);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Recalculating date<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; now = EndOfLastMonth<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; day = now.getDate() - xdays + 1<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; month = now.getMonth() + 1<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; year = now.getYear()<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dateValue = "" + month + "/" + day + "/" + year <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//End of new code<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />return dateValue;<br />}<br /><br /> &lt;/code&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;]]>
   </description>
   <pubDate>Tue, 01 Jun 2004 06:39:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=109&amp;PID=413&amp;title=order-managment-javascript-code-change#413</guid>
  </item> 
 </channel>
</rss>