[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
 OpenForum.dk • Vis emne - Valg af land

Valg af land

Spørgsmål og svar om installation af osCommerce standardpakke.
Problemer med contribution kan indlægges i Contributions.

Redaktør: Redaktionen

Valg af land

Indlægaf MartinBrauer » 2007-10-10 21:59

Hej

Alle mine kunder er fra Danmark, jeg vil derfor gerne slippe helt af med dropdown boksen. Har allerede slettet alle lande på nær Danmark.

Hvordan får jeg Danmark til at være forvalgt eller hvordan fjerner jeg helt dropdown boksen?

Håber på hjælp.

Vh
Martin
Brugeravatar
MartinBrauer
Novice
Novice
 
Indlæg: 11
Tilmeldt: 2007-10-1 17:44
Geografisk sted: Helsingør -> Gurre

Indlægaf benilope » 2007-10-10 22:51

i filen create_account.php skal du finde denne linie (omkring linie 56)

$country = tep_db_prepare_input($HTTP_POST_VARS['country']);

og udskifte med denne

$country = 243;

Du skal lige kigge efter i din database hvilket landenr. danmark har i min var det 243

/Per
_________________
Inden du spørger i forum:
1. Hvilken OSC anvender du
2. Læs først vejledningen
3. Læs i forum om dit spørgsmål er besvaret tidligere
4. Brug søgefunktionen
_____________________
Failure is not an option
Brugeravatar
benilope
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 880
Tilmeldt: 2005-08-12 20:10
Geografisk sted: Krusaa

Indlægaf pertho » 2007-10-11 21:36

Det er ikke helt nok.

Jeg havde samme irritationsmoment, og inspireret af denne tråd har jeg ændret følgende i create_account.php, og det virker.

Sæt land til default (Hos mig havde Danmark ID: 57) ca. linie 50:

// $country = tep_db_prepare_input($HTTP_POST_VARS['country']);
// country sættes altid til 57 = Danmark
$country = 57;

Fjern boksen fra siden ca. linie 500:

<!-- <tr>
<td class="main"><?php echo ENTRY_COUNTRY; ?></td>
<td class="main"><?php echo tep_get_country_list('country') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
</tr>
--> </table></td>

Bemærk <!-- og--> i linierne.
pertho
VIP medlem
VIP medlem
 
Indlæg: 2136
Tilmeldt: 2007-08-16 22:25

Indlægaf benilope » 2007-10-11 22:21

Når tep_not_null er falsk skal den tegne boksen men ikke sætte rullegardin på da der ikke er noget valg

/Per
_________________
Inden du spørger i forum:
1. Hvilken OSC anvender du
2. Læs først vejledningen
3. Læs i forum om dit spørgsmål er besvaret tidligere
4. Brug søgefunktionen
_____________________
Failure is not an option
Brugeravatar
benilope
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 880
Tilmeldt: 2005-08-12 20:10
Geografisk sted: Krusaa

Indlægaf pertho » 2007-10-12 07:06

pertho
VIP medlem
VIP medlem
 
Indlæg: 2136
Tilmeldt: 2007-08-16 22:25

Indlægaf agentjensen » 2007-10-20 13:10

KUN en tåbe frygter ikke PHP :-)
agentjensen
Ekspert medlem
Ekspert medlem
 
Indlæg: 1418
Tilmeldt: 2007-01-4 17:47
Geografisk sted: Halskov v/Skive

Re: Valg af land

Indlægaf Catch » 2009-08-19 23:39

Hej.

Rigtig god idé, men hvor sætter Danmark til at default? og hvordan finder jeg ud af hvad Danmark har som ID?
venlig hilsen
Catch
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 270
Tilmeldt: 2007-05-18 01:34

Re: Valg af land

Indlægaf benilope » 2009-08-20 13:00

_________________
Inden du spørger i forum:
1. Hvilken OSC anvender du
2. Læs først vejledningen
3. Læs i forum om dit spørgsmål er besvaret tidligere
4. Brug søgefunktionen
_____________________
Failure is not an option
Brugeravatar
benilope
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 880
Tilmeldt: 2005-08-12 20:10
Geografisk sted: Krusaa

Re: Valg af land

Indlægaf Kennith » 2009-10-2 16:05

Hvis i vil have Danmark som default kan i se dette indlæg
viewtopic.php?f=6&t=6758&p=33262&hilit=default+land#p33262
Hvis du har spørgsmål til Unique Free så stil dem her viewforum.php?f=53
Brugeravatar
Kennith
VIP medlem
VIP medlem
 
Indlæg: 2511
Tilmeldt: 2007-04-30 01:15
Geografisk sted: Aalborg


Tilbage til Installation og konfiguration

Hvem er online

Brugere der læser dette forum: Ingen tilmeldte og 19 gæster

cron