Is there an easy way to add 'Country' field to checkout?

Headache

No avatar

2006-02-27 23:54

I searched forums and found link to dotgeek.org page that might have answered this question, but that link is now dead.

Is there an easy way to add 'Country' field to checkout?
(My HTML knowledge is good, but I struggle with PHP as I'm quite new to it.)
Can one of the plugins add or modify checkout fields?

Thanks for any help!

wewior (OpenSolution)

Avatar: wewior

2006-02-28 11:13

if you found link to dotgeek.org just copy topic number and paste it on this forum, so in that case it will be:
http://opensolution.org/forum/index.php?p=readTopic&nr=578

Headache

No avatar

2006-03-02 02:52

Thanks... but about half way through that explanation it feels like my head is going to explode.

Don't get me wrong, I really appreaciate the time Wizzud took to explain things, but is there any easier way to add 'country' field?

Cheers.

ipodstock

No avatar

2006-03-02 03:58

Pay someone to do it for you :p

ipodstock

No avatar

2006-03-02 03:59

Just kiddin... well maybe...

You're going to have to try to follow the direction.

Headache

No avatar

2006-03-02 06:42

Bit the bullet and tried following Wizzud's directions - not too sure it applies to latest version of QCart as part way through it didn't make a lot of sense to me (might just be me though).

So, I adopted another (simpler for code-phobes, like me) strategy and, by crikey it's actually worked!

Here's my method...

To add 'country' field, open files listed below, find all instances of 'city', copy (complete with its surrounding lines of code) and paste directly below original lines of code, change the word 'city' in all duplicated code to 'country'.

core/
orders.php
orders-admin.php

templates/
orders_delivery.tpl
page.tpl
orders_print.tpl

templates/admin/
orders_more.tpl
orders_print.tpl

Upload, test, and Bob's your auntie's monkey.

Ernst

No avatar

2006-10-18 18:42

I have tried this hack but now it looks like the data in the printed forms is shifted. The application returns TAX instead of Summary. Any idea?

Ernst

No avatar

2006-10-18 19:18

Solved!
Was caused by the TaxAndDiscount-plugin.
Simply add also in tax.php the extra field.

Jippie, I fixed it myself..... ;-)

Back to top
about us | contact