<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Zen Cart Module for 2.3.2]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1907&amp;type=atom" />
	<updated>2011-02-19T17:31:59Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1907</id>
		<entry>
			<title type="html"><![CDATA[Zen Cart Module for 2.3.2]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8356#p8356" />
			<content type="html"><![CDATA[<p>I am modifying the OSCommerce module to work with a Zen Cart. I have made the hooks.php file so that the module loads in and is presented correctly, but I have having trouble connecting to the Zen Cart database.</p><p>There is a form that takes info about the Zen Cart database. Is there anything wrong with this code? It works in FA 2.2, but not in the current version.<br /></p><div class="codebox"><pre><code>include($path_to_root . &quot;/includes/ui.inc&quot;);

if ($action == &#039;show&#039;) {

    start_form(true);
    start_table(TABLESTYLE2, &quot;width=40%&quot;);

    $th = array(&quot;Function&quot;, &quot;Description&quot;);
    table_header($th);

    $k = 0;

    alt_table_row_color($k);

    label_cell(&quot;Table Status&quot;);
    if ($found) $table_st = &quot;Found&quot;;
    else $table_st = &quot;&lt;font color=red&gt;Not Found&lt;/font&gt;&quot;;
    label_cell($table_st);
    end_row();

    text_row(&quot;Mysql Host&quot;, &#039;dbHost&#039;, $dbHost, 20, 40);

    text_row(&quot;User&quot;, &#039;dbUser&#039;, $dbUser, 20, 40);

    text_row(&quot;Password&quot;, &#039;dbPassword&#039;, $dbPassword, 20, 40);

    text_row(&quot;DB Name&quot;, &#039;dbName&#039;, $dbName, 20, 40);
    tax_groups_list_row(_(&quot;Default Tax Group:&quot;), &#039;taxgroup&#039;, $default_TaxGroup);

    end_table(1);

    if (!$found) {
        hidden(&#039;action&#039;, &#039;create&#039;);
        submit_center(&#039;create&#039;, &#039;Create Table&#039;);
    } else {
        hidden(&#039;action&#039;, &#039;update&#039;);
        submit_center(&#039;update&#039;, &#039;Update Mysql&#039;);
    }

    end_form();

    end_page();
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ckrosco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1158</uri>
			</author>
			<updated>2011-02-19T17:31:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8356#p8356</id>
		</entry>
</feed>
