maracana112012-07-17 01:09 | how to do in shipping price not fixed, but % of item cost. for example item is 1000 i need 27+2%(of 1000, NOT of 27) » Quick.Cart v5.x |
boboo2012-07-17 06:32 | Do you ask for % price of shipping cost or payment cost? qc-plugins.kimla.de |
maracana112012-07-18 18:05 | the price of shipping must include % of cost an item |
maracana112012-08-03 16:28 | ? |
eyesightfriend![]() 2012-08-08 21:58 | shipping price must be shown separately and also must include % of cost an item -------------------------------------------------- |
maracana112012-08-08 23:40 | What is the formula? |
wewior (OpenSolution)2012-08-09 08:09 | That is not so simple to do but you can try:
$aOrdersExtFields = Array( 'iOrder', 'iShipping', 'iPayment', 'mShipping', 'fShippingPrice', 'mPayment', 'mPaymentPrice', 'sIp', 'sComment' );
$aOrdersExtFields = Array( 'iOrder', 'iShipping', 'iPayment', 'mShipping', 'fShippingPrice', 'mPayment', 'mPaymentPrice', 'sIp', 'sComment', 'fOrderProductsSummary' );
function generatePrice( $mPrice1, $mPrice2, $fProductsSummary = null ){
$aData['fProductsSummary'] = normalizePrice( $this->fProductsSummary );
$aData['fProductsSummary'] = $_SESSION['fOrderProductsSummary'] = normalizePrice( $this->fProductsSummary );
$aForm = array_merge( $aForm, Array( 'iOrder' => ( $this->throwLastId( DB_ORDERS, 'iOrder' ) + 1 ), 'iTime' => time( ), 'sIp' => $_SERVER['REMOTE_ADDR'], 'iStatus' => 1, 'sLanguage' => LANGUAGE, 'mShipping' => $aShipping['sName'], 'fShippingPrice' => $aShipping['fPrice'], 'iShipping' => $aShipping['iId'], 'mPayment' => $aPayment['sName'], 'iPayment' => $aPayment['iId'], 'mPaymentPrice' => $this->throwShippingPaymentPrice( $aExp[0], $aExp[1] ) ) );
$aForm = array_merge( $aForm, Array( 'iOrder' => ( $this->throwLastId( DB_ORDERS, 'iOrder' ) + 1 ), 'iTime' => time( ), 'sIp' => $_SERVER['REMOTE_ADDR'], 'iStatus' => 1, 'sLanguage' => LANGUAGE, 'mShipping' => $aShipping['sName'], 'fShippingPrice' => $aShipping['fPrice'], 'iShipping' => $aShipping['iId'], 'mPayment' => $aPayment['sName'], 'iPayment' => $aPayment['iId'], 'mPaymentPrice' => $this->throwShippingPaymentPrice( $aExp[0], $aExp[1] ), 'fOrderProductsSummary' => $_SESSION['fOrderProductsSummary'] ) );
$aData['fPaymentShippingPrice'] = generatePrice( $aData['fShippingPrice'], $aData['mPaymentPrice'] );
$aData['fPaymentShippingPrice'] = generatePrice( $aData['fShippingPrice'], $aData['mPaymentPrice'], $aData['fOrderProductsSummary'] );
$fShippingPaymentPrice = !empty( $sPriceModify ) ? generatePrice( $aData['fPrice'], $sPriceModify ) : $aData['fPrice'];
$fShippingPaymentPrice = !empty( $sPriceModify ) ? generatePrice( $aData['fPrice'], $sPriceModify, $_SESSION['fOrderProductsSummary'] ) : $aData['fPrice'];
|
maracana112012-08-15 20:05 | thank you. it is all right |
antonionereu2013-04-30 14:43 | Hi... |