Checkout Process confusion

  • Posts: 57
  • Thank you received: 2
11 years 5 months ago #105702

Hi,
I have the attached (picture 1)configuration in my checkout process. Registration is necessary because of downloadable goods.

The confusion is on the checkout registration page:(picture 2)
The user must login or register. If he does, he will be directed to another page.
So the "Terms and Conditions" and the "next" button should not be visible, because they are senseless in this case.
But I cant figure out, how.
Any hints?

Cheers,
Ralf

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #105745

Hi,

The system check if he's registered of if he set an address, so if it's not the case when clicking on the next button he will come back on this same page and have a message displayed.
Else you can edit the view "checkout / step", check the user status and hide the next button if he's not registered.

You can replace:

		if($this->nextButton){
			echo $this->cart->displayButton(JText::_('HIKA_NEXT'),'next',$this->params,hikashop_completeLink('checkout&task=step&step='.($this->step+1)),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"');
		}
By:
		if($this->nextButton && hikashop_loadUser() != null){
			echo $this->cart->displayButton(JText::_('HIKA_NEXT'),'next',$this->params,hikashop_completeLink('checkout&task=step&step='.($this->step+1)),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"');
		}

Last edit: 11 years 5 months ago by Xavier.

Please Log in or Create an account to join the conversation.

  • Posts: 57
  • Thank you received: 2
11 years 5 months ago #105762

Hi Xavier,

with this code, the button is gone on all steps, but I have got it, thanks.

But the question, how to remove the "Terms and Conditions" remains. I can't figure out, in which file it will be released...

Cheers,
Ralf

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #105867

Hi,

For the terms and conditions, either drag&drop its view where you want it in your checkout or remove it via the checkout workflow option of the configuration.

The following user(s) said Thank You: Hans987

Please Log in or Create an account to join the conversation.

  • Posts: 57
  • Thank you received: 2
11 years 5 months ago #105884

Uh, this was stupid, I have missed the forrest for the trees.

Thanks!
Ralf

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum