Page 1 of 1

Struck while posting to php - mini cart-Resolved

Posted: Tue Nov 13, 2007 10:51 pm
by solo73
Hi
I am trying to build a very basic cart,  which builds a mini cart as items are added to the cart and then finally checkout and send a email and write to a flat file.
The problem is the final php file which send the email and write to the flat file whatever ordered

The checkout page has a form which posts to a php file as below


where takeout.php is a external php file outside CMS,  this works fine.
but it does not work if I define the php within CMS content


I added the php code within {php} {/php} I think the form values are not getting posted



The home page cart works fine which calls the external php file.
The Test (from the menu) does not work as this is post to the php within CMS

I also used UDT but no joy.
Please note
$config['use_smarty_php_tags'] = true;
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.htm';

Please ignore the cart design I am trying to get the functionality right.

Any help appreciated.

Thanks

Re: Struck while posting to php - mini cart

Posted: Wed Nov 14, 2007 8:26 am
by cyberman
Please make a look at the source of {contact_form} tag.

It's a good example to learn how to send forms inside CMSms ...

Re: Struck while posting to php - mini cart

Posted: Wed Nov 14, 2007 10:55 am
by solo73
Thanks cyberman

I looked into the {contact_form} code,  this looks like a self submitting php. 
I am posting all the cart information gathered in the previous 3 html pages to the final php which is emais the order.

Re: Struck while posting to php - mini cart

Posted: Tue Nov 20, 2007 4:13 am
by Duketown
Solo73,

I just checked the mentioned site, but it returned: "All okay, dropped the idea!".
Does that mean you no longer try to prepare a mini cart?
There are certainly persons interrested in what you have made.

Duketown

Re: Struck while posting to php - mini cart

Posted: Wed Nov 21, 2007 5:06 pm
by solo73
Duketown

Curretly I do not have time to program and integrate it with cmsms,  I am just planning to embed a simple cart in CMSMS.  I have not yet done this.

solo73