<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — osCommerce]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=587&amp;type=atom" />
	<updated>2010-11-23T12:54:57Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=587</id>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7521#p7521" />
			<content type="html"><![CDATA[<p>Tomand I have done a bit more work on this and it is looking good for a 2.3 version with GST/VAT support for tax inclusive pricing.</p><p>We need to check out the impact of different customer records in 2.3. Eg Customer/Branch/Contact and neither of us has looked at that yet. Any pointers will be appreciated. The earlier 2.2 version only went Customer/Branch</p>]]></content>
			<author>
				<name><![CDATA[rodw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=713</uri>
			</author>
			<updated>2010-11-23T12:54:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7521#p7521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7508#p7508" />
			<content type="html"><![CDATA[<p>Thanks to Janusz for pointing out my mistake.</p><p>I have submitted a new release for posting on the website.</p><p>I also added code to automatically detect if you are using the same DB for both.</p><p>It pretty much assumes that if the server and db name you give have osc tables in them<br />then you are using one DB, otherwise they are separate.</p><p>You still should use a unique mysql user if you are using different db&#039;s on the same server.</p><p>I look for the osc table &#039;order_status_history&#039; actually I look for a table that contains that<br />string anywhere in the name kajsdfgajs_order_status_history_laksdaklsjd matches</p><p>I hope this helps</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2010-11-21T14:06:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7508#p7508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7507#p7507" />
			<content type="html"><![CDATA[<p>Yes, in 2.3RC3 changes were made related to TB_PREF. Now&nbsp; TB_PREF is set to &#039;&amp;TB_PREF&amp;&#039;&nbsp; &nbsp;pattern which is superseded by right preffix just in db_query(). This was necessary to enable right upgrade on multi-database installations (where). </p><p>Also I&#039;m not sure about the right place for function definitions in extension file. Probably the better one would be below all include() lines.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-11-21T14:06:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7507#p7507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7506#p7506" />
			<content type="html"><![CDATA[<p>I can&#039;t imagine that that has changed.</p><p>Is it possible that TB_PREF is wrong?</p><p>What company number are you working with?<br />Maybe the module install had TB_PREF set wrong?</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2010-11-21T12:35:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7506#p7506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7502#p7502" />
			<content type="html"><![CDATA[<p>hi guys</p><p>I have used this before in the earlier version.</p><p>I am trying to get this working in FA 2.3 RC3 and am running into troubles. It is getting as far as creating the new data table but then it never finds the table again so the Update MySql Button is never displayed.</p><p>I have narrowed it down to this bit of code which sets <strong>$found = 1</strong> if it appears in the show tables list returned by SHOW TABLES. <br /></p><div class="codebox"><pre><code>$sql = &quot;SHOW TABLES&quot;;
$result = db_query($sql, &quot;could not show tables&quot;);
$found = 0;
while (($row = db_fetch_row($result))) {
    if ($row[0] == TB_PREF.&quot;oscommerce&quot;) $found = 1;
}</code></pre></div><p>I have confirmed it is not formatting the table name correctly in a multi company situation as if I ask it to look for a hard coded &quot;0_oscommerce&quot;, it works.</p><p>So how do you return a string with the company number prepended to the table name?</p>]]></content>
			<author>
				<name><![CDATA[rodw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=713</uri>
			</author>
			<updated>2010-11-21T03:06:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7502#p7502</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=6642#p6642" />
			<content type="html"><![CDATA[<p>ckrosco - when you are done please send me your file and I will update and post the new file for all to use</p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2010-08-03T11:27:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=6642#p6642</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=6271#p6271" />
			<content type="html"><![CDATA[<p>Yes I can do that, but I am not a programmer, and there are several shortcomings to this - the biggest being that if your items are priced by attributes, and attributes are weights, your imported orders may not accurately reflect the change in inventory.</p><p>If your products are priced by item, this will work great as I have it now. Where do I upload it?</p>]]></content>
			<author>
				<name><![CDATA[ckrosco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1158</uri>
			</author>
			<updated>2010-06-21T20:11:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=6271#p6271</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=6270#p6270" />
			<content type="html"><![CDATA[<p>Once you have finished debugging, do you plan to upload your mod to the community?</p>]]></content>
			<author>
				<name><![CDATA[rthor]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=874</uri>
			</author>
			<updated>2010-06-21T19:32:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=6270#p6270</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=6250#p6250" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ckrosco wrote:</cite><blockquote><p>So I guess something is wrong - right?</p></blockquote></div><p>Yes something was wrong. I&#039;m using this for Zen Cart and I had to modify some of the add_to_order fields (around line 495).</p><p>So now it works great! Except one thing - I would like the date to reflect the actual date of the order. Right now, you have it coded as:</p><p>$cart-&gt;document_date = TODAY();<br />$cart-&gt;due_date = TODAY();</p><p>I tried to get the date from the Zen Cart database with:</p><p>$sql = &quot;SELECT DATE(date_purchased) FROM orders WHERE orders_id = $oID&quot;;<br />$result = mysql_query($sql, $osc);<br />$date_purchased = mysql_fetch_assoc($result);<br />mysql_free_result($result);&nbsp; &nbsp; </p><p>And then using:</p><p>$cart-&gt;document_date = $date_purchased;<br />$cart-&gt;due_date = $date_purchased;</p><p>but this doesn&#039;t work.</p><p>Isn&#039;t there an elegant way to get the actual order date?</p>]]></content>
			<author>
				<name><![CDATA[ckrosco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1158</uri>
			</author>
			<updated>2010-06-15T16:20:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=6250#p6250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=6245#p6245" />
			<content type="html"><![CDATA[<p>I used this module to import customers - worked flawlessly, although I had to change </p><p>$one_database = 1; // Use one DB </p><p>to</p><p>$one_database = 0; // Use one DB</p><p>This is for the same database server, but two different data bases.</p><p>All customers are accessible via the &#039;Add and Manage Customers&#039; menu.</p><p>But after importing some orders, I don&#039;t know what to do with them. I cannot see these orders anywhere.</p><p>Reading the above posts, I think the orders have been imported as Sales Orders, so I should be able to use &quot;Delivery Against Sales Orders&quot;, but no matter what options I choose for search, &quot;No records&quot; are returned. </p><p>What is the next step after importing orders?</p><p>-----------------</p><p>Looking at the FA database, I see the imported order in the &#039;sales_order&#039; table, but there is nothing in the &#039;sales_order_details&#039; table, or anywhere else I can see that has details about each order.</p><p>So I guess something is wrong - right?</p>]]></content>
			<author>
				<name><![CDATA[ckrosco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1158</uri>
			</author>
			<updated>2010-06-15T02:03:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=6245#p6245</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=6236#p6236" />
			<content type="html"><![CDATA[<p>Yes that sounds right</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2010-06-13T21:24:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=6236#p6236</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=6232#p6232" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tom wrote:</cite><blockquote><p>The osC ProductsID must match the FA ItemID.<br />If you run the osCommerce &#039;Price Check&#039; it will point out errors</p></blockquote></div><p>Can you clarify this?</p><p>osc:</p><p><strong>products_id</strong> in <strong>products</strong> table </p><p>should match </p><p>FrontAccount:</p><p><strong>id</strong> in <strong>item_codes</strong> table</p><p>Is that correct?</p>]]></content>
			<author>
				<name><![CDATA[ckrosco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1158</uri>
			</author>
			<updated>2010-06-13T17:38:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=6232#p6232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5233#p5233" />
			<content type="html"><![CDATA[<p>Rod,</p><p>I can help. I am sorry it has taken me so long to reply.</p><p>Let&#039;s talk directly.</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2010-03-11T12:13:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5233#p5233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5172#p5172" />
			<content type="html"><![CDATA[<p>OK Tom, I am ready to tackle this now as I have made a commitment to use FA from her on.</p><p>I see a green bar that says customers found, 0 customers imported. How can I debug this? Can I get FA to print some messages on the screen about what it finds?</p><p>t could be my setup as I have added a module to OsC that allows me to have multiple price breaks whihc are each asociated with a tax type. It is possible your module is not looking deep enough in the OsC data files on my setup due to this.</p>]]></content>
			<author>
				<name><![CDATA[rodw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=713</uri>
			</author>
			<updated>2010-03-07T11:24:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5172#p5172</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: osCommerce]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5066#p5066" />
			<content type="html"><![CDATA[<p>I have been meaning to write a Summary page that gives more debug info.</p><p>Maybe it&#039;s time for that...</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2010-03-01T17:37:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5066#p5066</id>
		</entry>
</feed>
