New field in checkout

andrewshift

No avatar

2007-02-12 10:46

I would need to add two new field in the checkout page. Now the fields are

First Name:
Last Name:
Company:
Street:
Zip Code:
City:
Telephone:
Email:
Comment on Order:

And I would need to add two fields named "Codice Fiscale" and "Partita IVA" that are mandatory info to issue an invoice here in Italy. These two field should be mandatory.

Anyone could help me? How and Where I've to add these two fields?

Many thanks
Andrea

» Quick.Cart v2.x

treewood (OpenSolution)

Avatar: treewood

2007-02-12 13:06

andrewshift - maybe it will help You:
http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=214

You have newer version but i think You will find solution

andrewshift

No avatar

2007-03-07 23:23

Thanks treewod. I've downloaded the new version and followed the instructions in this thread.
Edited orders_delivery.tpl
added two new variables in the lang file
edited orders.php

the problem is following these instructions

Quick/core/orders-ff in "function dbSaveOrder" line 336 you have to add the variables too eg: $aForm['variable name'], one this is done go to line 357 in dbSaveOrderStatus you'll see the line ending in '$'. $aExp[14]."$\n";well this is an array and must be fill the number of fields you added eg: if i added 3 new fields i have to write '$'. $aExp[14].'$'. $aExp[15].'$'. $aExp[16]."'$'. $aExp[17]."$\n";

I understand that I've to modify the file orders-ff to make it work since I can see my two new fields but the content of these fields is not saved. the problem is that these instructions are for an older version of quickcart so I don't know what to do and where to modify the file.

I've created $aData[sCodiceFiscale]" and $aData[sPartitaIva]" after $aData[sCompanyName].

If you could help me modify the orders-ff file I'd realy appreciate it...

Many thanks

Back to top
about us | contact