Skip to main content

Move Register Button to Bottom of Page

More
13 years 8 months ago #87513 by ajandu
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

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

More
13 years 8 months ago #87557 by Xavier
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.

More
13 years 8 months ago #87691 by ajandu
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.

More
13 years 8 months ago - 13 years 8 months ago #87788 by Xavier
You have to move this php code:
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: 13 years 8 months ago by Xavier. Reason: Wrong code given ;)

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

More
13 years 8 months ago #87791 by ajandu
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.

More
13 years 8 months ago #87794 by ajandu
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.

More
13 years 8 months ago #87796 by ajandu
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.

More
13 years 8 months ago #87808 by Xavier
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.218 seconds
Powered by Kunena Forum