Move Register Button to Bottom of Page

  • Posts: 9
  • Thank you received: 0
11 years 9 months ago #87513

Hello,

I would like to know how to move the register button to the bottom of the page below the payment option? Right now the order on the page is:

Registration/Information Form

Register Button

Payment Method

I have submitted a document which shows the current setup on the site. Can you please help?

Thank you!
Allison

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #87557

Hi,

You can try to move the register button from the view "user / registration" (last line) to the view "checkout / step" near the end of the view.
The views can be edited in HikaShop > Display > Views.

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

  • Posts: 9
  • Thank you received: 0
11 years 9 months ago #87691

I tried this, but it seemed to remove the entire formatting of the website on that page. Can you tell me specifically which text to move?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #87788

You have to move this php code:

$additional_check='';
$form_name = 'hikashop_checkout_form';
if(JRequest::getVar('hikashop_check_order')) $additional_check='&& hikashopCheckChangeForm(\'order\',\''.$form_name.'\')';
$cartClass = hikashop_get('class.cart');
$empty='';
jimport('joomla.html.parameter');
$params = new HikaParameter($empty);
echo $cartClass->displayButton(JText::_('HIKA_REGISTER'),'register',$params,'','if(hikashopCheckChangeForm(\'register\',\''.$form_name.'\') && hikashopCheckChangeForm(\'user\',\''.$form_name.'\') && hikashopCheckChangeForm(\'address\',\''.$form_name.'\')'.$additional_check.'){ var button = document.getElementById(\'login_view_action\'); if(button) button.value=\'register\'; document.'.$form_name.'.submit();} return false;');

Last edit: 11 years 9 months ago by Xavier. Reason: Wrong code given ;)

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

  • Posts: 9
  • Thank you received: 0
11 years 9 months ago #87791

Thank you but now when I try to view the cart I get an HTTP 500 Internal Server Error. ??

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

  • Posts: 9
  • Thank you received: 0
11 years 9 months ago #87794

And also I put the code back and it has removed all the formatting from that page now - please help!

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

  • Posts: 9
  • Thank you received: 0
11 years 9 months ago #87796

Sorry to panic about the formatting, I was able to fix that. Still can't figure out how to move the button though. Thank you!!

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #87808

I have edited the code in my previous code. I still don't have tried it, because it's a support forum, so we don't manage "customizations" usually.

Can you try the code, and see if it's working fine. If you still have a 500 error, thanks to past it here.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum