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
Struck while posting to php - mini cart-Resolved
Struck while posting to php - mini cart-Resolved
Last edited by solo73 on Wed Nov 21, 2007 5:07 pm, edited 1 time in total.
Re: Struck while posting to php - mini cart
Please make a look at the source of {contact_form} tag.
It's a good example to learn how to send forms inside CMSms ...
It's a good example to learn how to send forms inside CMSms ...
Re: Struck while posting to php - mini cart
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.
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
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
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
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
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