Show productsNewField in order-step-2

lasha

Avatar: lasha

2014-12-06 13:00

i've followed this instructions: http://opensolution.org/download,en,18.html?iGetManual=271 and now i want to show this field in order-step-2.php.

» Quick.Cart v6.x

L. Andghuladze

boboo

Avatar: boboo

2014-12-06 14:25

look at the function saveBasket in /core/orders.php
1.

$aBasket[$iOrder][$iProduct] = Array( 'iQuantity' => (int) $iQuantity'fPrice' => $oProduct->aProducts[$iProduct]['mPrice'], 'sName' => $oProduct->aProducts[$iProduct]['sName'] );


Every field, you want see later on the order- or basket page, must be guided through the $aBasket.

2. Then you have to fit the table with product detatils in the listProducts function (same file order.php)

<th>
'.(isset( $aData['sLinkName'] )?'<a href="'.$aData['sLinkName'].'">'.$aData['sName'].'</a>':$aData['sName']).'
</th>
<
td class="price">
'.$aData['sPrice'].'
</td>
<
td class="quantity">
'.$aData['iQuantity'].'
</td>
<
td class="summary">
'.$aData['sSummary'].'
</td>



That's the magic of QC :-)

boboo :-)

lasha

Avatar: lasha

2014-12-06 18:16

Thank you very much again!

L. Andghuladze

Back to top
about us | contact