[TYPO3-shop] Payment handlescript shows BASKET_ORDERCONFIRMATION_TEMPLATE page instead of the desired output

james.brutus at wisetiger.co.uk james.brutus at wisetiger.co.uk
Mon Jan 14 12:18:35 CET 2008


Good Morning Juan Pablo,

I noticed you posting messages on Typo3, specifically relating to SHOP <
tt_products >, and wanted to pose you a question you may know.

I am new to TYPO3, and am trying to create the "form" code below, but don’t
know how to use HOOKs. The code should be for the "basket_view" just before
checkout, to incorporate an additional donations field.

Any help you can offer me would be greatly appreciated.

I have attached a pdf of the “tt_products_basket_view.php”, which you’ll be
familiar with. I attached it to illustrate the numerous labels / markers in
the code, and my confusion is from where are they defined, so as to be
evaluated correctly. Is this the code in the templates that replaces the
markers, so the functions know how to process the information.

It would seem absurd for me to modify the code in this file to implement
hooks, however, would this be the appropriate place for the HOOKs code, or
do I place it in “myfile” some where on the system, then get a function
within this code to call the “myfile.php” code. I am buffled for now.

Once I call the functions in the HOOKs, do I have to modify any Typo3
configuration files to make things work, or does the method of calling the
code take care of this.

Give me an example, if for instance I wanted to include this form code in
the basket:

<h2>ITEM_DONATION</h2>
<p><em>Subpart for the donation-form.</em></p>
<!-- ###ITEM_DONATION### begin
	Subpart for the donation-form
	-->
    <div class="tt_products_item_donation">
    	<form method="post" action="###FORM_URL###">
        	<div>
	            <label for="donation">Would you like to make a donation:
</label>
	                <input size="30" maxlength="100" type="text"
id="donation" name="donation" value="###DONATION###" />
	            <input type="submit" name="order" value="Donation" />
            </div>
        </form>
    </div>
<!-- ###ITEM_DONATION### end -->
<br /><br />

Look forward to your response.
Regards,
James.

-----Original Message-----
From: typo3-project-tt-products-bounces at lists.netfielders.de
[mailto:typo3-project-tt-products-bounces at lists.netfielders.de] On Behalf Of
Juan Pablo Villaverde
Sent: 12 January 2008 23:04
To: typo3-project-tt-products at lists.netfielders.de
Subject: [TYPO3-shop] Payment handlescript shows
BASKET_ORDERCONFIRMATION_TEMPLATE page instead of the desired output

I have a custom Payment Handlescript, but the same behavior is show with
DIBS of an empty handlescript.

The BASKET_ORDERCONFIRMATION_TEMPLATE page is shown instead of the desired
output.

tt_products runs the handlescript because I put debugging in the las line
and everythis is calculated OK.
I put a die($content); and I see the correct prepared content. But I remove
the 'die' and typo just shows the order confirmation subpart instead of the
$content.

And I also have another problem, in the handlescript, I try to read a
template subpart in this way:
  $content=$basketView->getView($tmp='', 'PAYMENT', $address, false, false,
true, '###BASKET_TPV_STARTER###',$markerArray);
and I only get an empty string (for the test in the previous problem I used
$content="test";). I have the subpart ready in the template file. It happens
with any subpart

I tried to figure out the problem but I'm a little lost now, any help will
be very appreciated!

jp



_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-tt-produc
ts

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.2/1221 - Release Date: 12/01/2008
14:04
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.2/1223 - Release Date: 13/01/2008
20:23
 



More information about the TYPO3-project-tt-products mailing list