How to remove Next' button from checkout bar?

  • Posts: 66
  • Thank you received: 0
10 years 4 months ago #185893

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.2

Hello,

While the user is in the Checkout process. Please follow the screenshot attached. I have marked it with red. I want to remove the next button from there.



Please guide.

Attachments:

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 4 months ago #185939

Hi,

HikaShop has no such button at that place by default.
The next button is displayed at the end of the page normally and won't display if there is the login view displayed on the page as the login view tells it not to. But if you customized the checkout views to have the next button display before the display of the checkout views, then but the time the login view tells it not to display, the button has already been displayed. So in that case, you should add more custom code to only display the button when logged in with such code:
$user = JFactory::getUser();
if(!$user->guest){
//button display
}
That code supposes however that you're not using the guest checkout. For guest checkouts, the code more be a bit more complex.

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

  • Posts: 66
  • Thank you received: 0
10 years 4 months ago #185978

Hi,

HikaShop has no such button at that place by default.
The next button is displayed at the end of the page normally and won't display if there is the login view displayed on the page as the login view tells it not to. But if you customized the checkout views to have the next button display before the display of the checkout views, then but the time the login view tells it not to display, the button has already been displayed. So in that case, you should add more custom code to only display the button when logged in with such code:
$user = JFactory::getUser();
if(!$user->guest){
//button display
}
That code supposes however that you're not using the guest checkout. For guest checkouts, the code more be a bit more complex.


I am sorry but this is guiding me to nowhere. I have enabled the guest checkout and I want to keep it as it is. I also have done nothing special to add that 'Next' button in the navigation bar (or whatever you call it).

The regular flow includes the 'Next' button below. But I don't want it to be there on the navigation bar.
i.e. in this line ................ LOGIN=>CART=>PAYMENT..................NEXT .
'NEXT' button should be removed, but just the button below the fields should be intact. I hope I am able to clarify my doubt more meaningfully.

Please tell me how to do that, the buyers started to complain about it already!!.

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

  • Posts: 2143
  • Thank you received: 747
10 years 4 months ago #185979

magicwords wrote: I also have done nothing special to add that 'Next' button in the navigation bar (or whatever you call it).


No "interference" intended from my side, but I remembered a thread where you had requested moving this button: www.hikashop.com/forum/checkout/873775-h...button-position.html


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Last edit: 10 years 4 months ago by lousyfool.

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

  • Posts: 66
  • Thank you received: 0
10 years 4 months ago #185990

good attempt lousyfool and thanks for it.

But did you also then notice the title of it? I asked for moving the 'payment button' and here I am asking the 'next' button. So did you not notice the difference between two terminologies prior to notifying my own thread?

Thanks and apologize for cross-questioning. Just take it casually.

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

  • Posts: 2143
  • Thank you received: 747
10 years 4 months ago #186005

Haha, never mind.

I only noticed that according to one of your screenshots over in the other thread, and as a result of a modification you made then, the "next" button showed up exactly where it is in your screenshot here and now. And so I only thought I'll kindly remind you of how it got there, so removal will be quick and easy for you. :)

Cheers!


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 4 months ago #186022

As I said I my first message, there is no next button by default there. So that means that you added in there yourself.
It really seems that you want to undo something that you did yourself and thus you should know better than us how to revert what you changed.
As a simple solution, delete the file templates/YOUR_TEMPLATE/html/com_hikashop/checkout/step.php and that will remove all the modifications you added to the step file of the checkout view and normally that should include the modification in order to move the next button where you added it.

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

  • Posts: 66
  • Thank you received: 0
10 years 4 months ago #186067

Nicolas,

I did the modifications based on earlier forum posts. Pls help me with this, if I remove the step.php file then probably all the customizations requried earlier (including 'NEXT' in that bar was not the requirement) will be restored and this is I don't want.

Pls let me know which view file I have to edit and what?

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

  • Posts: 2143
  • Thank you received: 747
10 years 4 months ago #186079

@magicwords:

Over in the other thread I linked to previously, Nicolas gave you only one piece of code for the "checkout / step" file. All you need to do is to remove exactly that code in exactly that modified file again. It's really as simple as that.

Nicolas' hint on deleting the entire modified file at the specified location is obviously helpful for testing purposes - to verify that without your modification it works. Needless to say that, as an alternative to deletion, temporarily renaming that file would do the same.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

Time to create page: 0.108 seconds
Powered by Kunena Forum