Switcher Guest Checkout

  • Posts: 206
  • Thank you received: 10
  • Hikashop Multisite
8 years 2 months ago #250191

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6

I have the swticher login enabled with login, registration and guest checkout.
1) When i switch to guest i would like to hide my user customfields. Which (i guess javascript) do i need to add in which file.
2) The button says "register" for registration and guest checkout. while in a none switcher mode it says "next". We prefer "next" for guest checkout. How can we add this?

Kind regards,
Jeroen

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 2 months ago #250194

Hi,

1. You'll have to edit the file components/com_hikashop/views/checkout/view.html.php and add your javascript code after the line:
} else if(value==2 && checked==true) {

Something like:
document.getElementByID('XXX').style.display = 'none';
where XXX is the id of the HTML element that you want to hide when the customer click on "guest" in the switcher.


2. You can use a translation override if you want to change that text:
www.hikashop.com/download/languages.html#modify

The following user(s) said Thank You: Joomill

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

  • Posts: 206
  • Thank you received: 10
  • Hikashop Multisite
8 years 2 months ago #250241

Thank you!

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

Time to create page: 0.056 seconds
Powered by Kunena Forum