send order to client problem..

2peu

No avatar

2006-04-04 16:59

I instaled 1.2 Qc and the send order to client plugin.
The name and adress and total sum are ok, but the product details is messed up.
Here is the problem:

------------------------
Below are products from Your order
------------------------
<tr>
<td>
<a href="?p=productsMore&amp;iProduct=1">xgfdg</a><br />
</td>
<td>
5454.00
</td>
<td>
<fieldset><input type="text" name="aElements[6]" value="1" maxlength="3" size="2" /></fieldset>
</td>
<td>
5454.00
</td>
<td>
<a href="?p=ordersDelivery&amp;sOption=del&amp;iElement=6">Ste rge</a>
</td>
</tr>

2peu

No avatar

2006-04-05 11:26

hmmm?

treewood (OpenSolution)

Avatar: treewood

2006-04-05 11:35

2peu - it seems that You have html code in sendOrderToClient.tpl

2peu

No avatar

2006-04-05 14:41

Yes i know..but my sendOrderToClient.tpl it's ok :

<!-- BEGIN EMAIL_TITLE -->
Thank You for order. Order id $iOrder
<!-- END EMAIL_TITLE -->
<!-- BEGIN EMAIL_HEAD -->
------------------------
Your delivery address
------------------------
First and last name: $_POST[sFirstName] $_POST[sLastName]
Street: $_POST[sStreet]
Postal code: $_POST[sZipCode]
City: $_POST[sCity]
Phone: $_POST[sTelephone]

------------------------
Below are products from Your order
------------------------
<!-- END EMAIL_HEAD -->

<!-- BEGIN LIST_HEAD -->
<!-- END LIST_HEAD -->

<!-- BEGIN LIST_LIST -->
- $aList[sProduct] (Quantity: $aList[iQuantity], Summary price: $aList[fSummary])<!-- END LIST_LIST -->

<!-- BEGIN LIST_FOOTER -->
<!-- END LIST_FOOTER -->

<!-- BEGIN EMAIL_FOOTER -->

------------------------
Delivery and summary costs
------------------------
Courier: $aCourier[sName] (Price: $aCourier[fPrice])

Summary cost: $fSummary<!-- END EMAIL_FOOTER -->

<!-- BEGIN NOT_FOUND -->
<!-- END NOT_FOUND -->

..maybe it's from my email client..

treewood (OpenSolution)

Avatar: treewood

2006-04-05 14:46

edit then plugins/sendOrderToClient/actions_client.php and go to line ~19 where is listBasket.
It should be:
$sEmailContent .= trim( listBasket( $iOrder, 'sendOrderToClient.tpl' ) );

You have the same?

2peu

No avatar

2006-04-05 15:41

Yes it's the same:

<?php
if( $p == 'ordersDelivery' ){

if( !isset( $_SESSION['iCustomer'] ) )
session_start( );

require_once DIR_CORE.'orders-'.$config['db_type'].'.php';
require_once DIR_CORE.'orders.php';

require_once DIR_CORE.'couriers-'.$config['db_type'].'.php';
require_once DIR_CORE.'couriers.php';

if( isset( $_POST['sOption'] ) && $_POST['sOption'] == 'send' && checkOrderFields( $_POST ) === true ){
$iOrder = throwOrderIdTemp( $_SESSION['iCustomer'], null );
if( isset( $iOrder ) && is_numeric( $iOrder ) ){
$sTo = $_POST['sEmail'];
$sTitle = ltrim( $tpl->tbHtml( 'sendOrderToClient.tpl', 'EMAIL_TITLE' ) );
$sEmailContent = ltrim( $tpl->tbHtml( 'sendOrderToClient.tpl', 'EMAIL_HEAD' ) );
$sEmailContent .= trim( listBasket( $iOrder, 'sendOrderToClient.tpl' ) );

if( !empty( $_POST['iCourier'] ) ){
$aCourier = explode( '|', $_POST['iCourier'] );
$aCourier = throwCourier( $aCourier[0] );
$fSummary = sprintf( '%01.2f', $aCourier['fPrice'] + $aList['fSummary'] );
$sEmailContent .= $tpl->tbHtml( 'sendOrderToClient.tpl', 'EMAIL_FOOTER' );
}
mail( $sTo, $sTitle, $sEmailContent, 'FROM: '.EMAIL );
}

}
}
?>

2peu

No avatar

2006-04-08 08:24

I have found something.. if i disable the productAttributes plugin, everything works fine !!!!!!!!!! i think it's a bug....

Back to top
about us | contact