<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1000685" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1000685</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cgipearl-calculation-form-4-ecommerce#comment-1002983</link>
    <description> &lt;p&gt;Hey thanks for the response guys,&lt;/p&gt;
&lt;p&gt;Well what I need is:&lt;br /&gt;
1)To total the amount of the purchase&lt;br /&gt;
2)the cost of the product(s)&lt;br /&gt;
3)plus the applicable taxes and shipping costs&lt;/p&gt;
&lt;p&gt;What I need to do is calculate the above and pass it to the commerce engine from the form.&lt;/p&gt;
&lt;p&gt;They suggest using a CGI script (or java) that asks customers to choose which product(s) they want and the quantities they wish to buy. Or to hardcode the pricing info so when a customer selects the &amp;quot;buy 1 product button&amp;quot; a predetermined total is charged.&lt;/p&gt;
&lt;p&gt;Then they suggest using a shopping cart (which is fine by me). This would obviously calculate subtotal, tax, shipping and total amount. ( I think the shopping cart option is more $)&lt;/p&gt;
&lt;p&gt;I hope this explains it a better.&lt;/p&gt;
&lt;p&gt;Thanks again&lt;br /&gt;
Shpek&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Jun 1999 03:19:00 +0000</pubDate>
 <dc:creator>shpek</dc:creator>
 <guid isPermaLink="false">comment 1002983 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cgipearl-calculation-form-4-ecommerce#comment-1002984</link>
    <description> &lt;p&gt;Here&#039;e an example of exactly what I am looking for.&lt;br /&gt;
If anyone can help me out It&#039;s be REALLY appreciated!&lt;br /&gt;
&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://orders.karemor.com/secure-bin/orderform.exe&quot; title=&quot;https://orders.karemor.com/secure-bin/orderform.exe&quot;&gt;https://orders.karemor.com/secure-bin/orderform.exe&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 24 Jun 1999 18:49:00 +0000</pubDate>
 <dc:creator>shpek</dc:creator>
 <guid isPermaLink="false">comment 1002984 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cgipearl-calculation-form-4-ecommerce#comment-1002982</link>
    <description> &lt;p&gt;did i get this right?&lt;br /&gt;
you don&#039;t have to build something like a shopping-cart, just one single order-form, yeah?&lt;/p&gt;
&lt;p&gt;i would use a &#039;verification&#039;-form like this:&lt;br /&gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot;name=&amp;quot;price&amp;quot; value=&amp;quot;20&amp;quot;&amp;gt;20$&lt;br /&gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;items&amp;quot; value=&amp;quot;2&amp;quot;&amp;gt;2 items&lt;br /&gt;
&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;total&amp;quot; value=&amp;quot;40&amp;quot;&amp;gt;total: 40$&lt;/p&gt;
&lt;p&gt;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;order&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;it&#039;s just the basics here, but if you do it like this you have the opportunity, the costumer can check his data again.&lt;br /&gt;
but back to the script, it is not much you need, only thing it has to do is total up the amount, send the mail to the company and store the order in a database.&lt;br /&gt;
i&#039;d like to tell you more but could you give me some info first, about how to send the order to the cc-company and what your friend wants to do with the order-data...&lt;br /&gt;
cu&lt;br /&gt;
patrick&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
&lt;a href=&quot;http://www.allcgi.de&quot; title=&quot;http://www.allcgi.de&quot;&gt;http://www.allcgi.de&lt;/a&gt;&lt;br /&gt;
not quite up yet, but see if you can find something for you!&lt;/p&gt;
 </description>
     <pubDate>Thu, 24 Jun 1999 00:18:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1002982 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cgipearl-calculation-form-4-ecommerce#comment-1002981</link>
    <description> &lt;p&gt;Hello;&lt;br /&gt;
You could use an Associative array (%). Have the info be inputed by a form, but in this case, I will have to put values in for them so you know what im talking about.&lt;/p&gt;
&lt;p&gt;$productname=&amp;quot;Batman Action Figure&amp;quot;;&lt;br /&gt;
$price =3.25;&lt;br /&gt;
$quantity = 3;&lt;br /&gt;
$final = $price * $quantity;&lt;br /&gt;
$info{$productname}=$final;&lt;/p&gt;
&lt;p&gt;the associative array would be&lt;br /&gt;
%info here, and it would contain all of the product names as the keys and the amount as the values.&lt;br /&gt;
Than you can print these in a .txt or whatever by&lt;/p&gt;
&lt;p&gt;open(IN,&amp;quot;&amp;lt;info.txt&amp;quot;);&lt;br /&gt;
foreach ( $info{$productname})&lt;br /&gt;
{&lt;br /&gt;
print IN &amp;quot;$productname:$final\n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
close(IN);&lt;/p&gt;
&lt;p&gt;I hope this shows up right, and I hope even more that it would work &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt; (im still learning too).&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
[Dass]&lt;br /&gt;
[Email:robp@netlimit.com]-[ICQ:16560402]&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Jun 1999 22:04:00 +0000</pubDate>
 <dc:creator>Dass</dc:creator>
 <guid isPermaLink="false">comment 1002981 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
