Struck while posting to php - mini cart-Resolved

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
solo73
New Member
New Member
Posts: 6
Joined: Mon Nov 21, 2005 3:11 pm

Struck while posting to php - mini cart-Resolved

Post 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
Last edited by solo73 on Wed Nov 21, 2007 5:07 pm, edited 1 time in total.
cyberman

Re: Struck while posting to php - mini cart

Post 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 ...
solo73
New Member
New Member
Posts: 6
Joined: Mon Nov 21, 2005 3:11 pm

Re: Struck while posting to php - mini cart

Post 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.
Duketown

Re: Struck while posting to php - mini cart

Post 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
solo73
New Member
New Member
Posts: 6
Joined: Mon Nov 21, 2005 3:11 pm

Re: Struck while posting to php - mini cart

Post 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
Post Reply

Return to “Developers Discussion”