/db/orders_ext.php

rvakili

No avatar

2007-04-03 05:43

Hi All,

I am using Q.C 1.4 and add some fied to the order form. I updated the order.php in the core. The value dose not pass to the /db/orders_ext.php however the number of fields $$$
are fine.

Is there any other file I have to modefiy to pass the value to the db?

Thanks.

» Quick.Cart v1.x

treewood (OpenSolution)

Avatar: treewood

2007-04-03 08:35

rvakili - core/orders-ff.php - this file save data to file

rvakili

No avatar

2007-04-03 19:01

THANKS TREEWOOD

The only thing I can see was adding more field and changing the < to <= in the first line. Still no value pass. I also increased function dbSaveOrderProduct( $aData ) Still no value pass. I hope you can guid me if I am missing someting.

Thanks again



for( $i = 0; $i <= $iCount; $i++ ){
if( $i > 0 ){
$aFile[$i] = rtrim( $aFile[$i] );
$aExp = explode( '$', $aFile[$i] );
if( isset( $aElements[$aExp[0]] ) && $aElements[$aExp[0]] >= 1 )
$aFile[$i] = $aExp[0].'$'.$aExp[1].'$'.$aExp[2].'$'.sprintf( '%01.0f', $aElements[$aExp[0]] ).'$'.$aExp[4].'$'.$aExp[5].'$'.$aExp[6].'$'.$aExp[7].'$'."\n";< br /> else

treewood (OpenSolution)

Avatar: treewood

2007-04-04 09:26

rvakili - sorry but i dont understand this code. If You want add fields to db/orders_ext.php then You must edit core/orders.php and add this fields names to: saveOrder() (to dbAddOrderExtensions() in saveOrder() function), and display from throwOrder().

If You cant do it then contact us and we will make it for You. You written before about dbSaveOrderProduct() but this function save data to db/orders_products.php.

rvakili

No avatar

2007-04-04 18:17

Hi Treeeood,

I did add the fields to core/orders.php. The fields show up fine. The value dose not pass to the admin. When I look at db/orders_ext the fields are ok but the valuse is empty.

Thanks

rvakili

No avatar

2007-04-05 01:36

Treewood. Thanks for your help. I find the problem. I add Tax & Discount plug in and I had to edit tax.php.

Thanks again

Back to top
about us | contact