Jump to content

Menu problem


bucktooth

Recommended Posts

Hi There,

 

I am new to the PHP world, so forgive me if I ask something stupid.

 

I'm trying to setup a penny auction site.

But i have 2 problems with the menu.

 

To see what i mean go to:

www.bid-house.com

login: test

pass: testuser

 

Go to "mijn account" in the top menu

Go to "mijn adressen" in the user menu

Click "voeg een adres toe"

Betaal adres = Billing address

Verzend adres = Shipping address

 

you see what happens, the user menu disappears.

the same thing happens when you have added the adres, and want to edit it.

(when address added klik "aanpassen" in the "mijn adressen" menu. )

 

 

The only thing i know so far is the following:

 

I think the translation is the problem.

When I translate billing and shipping (to Factuur and Verzend) in the

phpmyadmin, the problem arises.

 

The link of adding and editing an address is then:

addresses/add (or edit)/Factuur & adresses/add (or edit)/Verzend.

but it has to be: addresses/add (or edit)/Billing (or Shipping).

Otherwise it gives the problem you can see right now.

 

Same thing happens at the "pay for an auction" page.

( Usermenu -> "Gewonnen veilingen" -> You see this user has won the "test tv" click on "Betaal" )

 

That's why I suspect that the problem has something to do with the translation.

 

So I can translate it back for you, but.. when i do this, there will

be no problem.

 

 

Hope someone can help me!

 

Regards,

Rob van Dijk

 

ps. My excuse for my bad english.

Link to comment
https://forums.phpfreaks.com/topic/200026-menu-problem/
Share on other sites

Hi cb,

 

Thanks for your fast reaction.

 

Everything is there, that's the problem!

 

As i told, in the original english script it works fine!

I could translate everything in the script itself but not the 2 words billing and shipping.

I had to change these 2 words in the phpmyadmin.

 

Here the code:

<div class="box clearfix">
<div class="f-top clearfix"><h2><?php __('Adres toevoegen');?></h2></div>
<div class="f-repeat clearfix">
	<div class="content">


		<div id="rightcol">
			<?php
			$html->addCrumb(__('Mijn adressen', true), '/addresses');
			$html->addCrumb(__('Add', true), '/addresses/add/'.$name);
			echo $this->element('crumb_user');
			?>

			<fieldset>
				<legend><?php __('Add an Address');?></legend>
			<?php echo $form->create(null, array('url' => '/addresses/add/'.$name));?>
			<?php
				echo $form->input('name', array('label' => __('Name *', true)));
				echo $form->input('address_1', array('label' => __('Address (line 1) *', true)));
				echo $form->input('address_2', array('label' => __('Address (line 2)', true)));
				echo $form->input('suburb', array('label' => __('Suburb / Town', true)));
				echo $form->input('city', array('label' => __('City / State / County *', true)));
				echo $form->input('postcode', array('label' => __('Post Code / Zip Code *', true)));
				echo $form->input('country_id', array('label' => __('Country *', true), 'empty' => 'Select'));
				echo $form->input('phone', array('label' => __('Phone', true)));
				echo $form->input('update_all', array('type' => 'checkbox', 'label' => __('Make all your addresses this address.', true)));
			?>
			<?php echo $form->end('Toevoegen');?>
			</fieldset>
			<div class="actions">
				<ul>
					<li><?php echo $html->link(__('<< Back to your addresses', true), array('action' => 'index'));?></li>
				</ul>
			</div>
		</div>
	</div>
</div>
<div class="f-bottom clearfix">   </div>
</div>

 

Here does he gets the name billing and shipping

$html->addCrumb(__('Add', true), '/addresses/add/'.$name);

 

when i take .$name out and change this to "factuur" or"verzend" it will change both names. (factuur AND verzend)

 

Rob

Link to comment
https://forums.phpfreaks.com/topic/200026-menu-problem/#findComment-1049850
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.