Checkout shows code

  • Posts: 117
  • Thank you received: 6
1 year 8 months ago #349793

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4.2.8
-- PHP version -- : 8
-- Browser(s) name and version -- : all

Good (monday)morning

I have waited all weekend to post this.

On checkout I have unexpected behaviour (see attachment).

Obviously there is something missing somewhere

Greetz

Dick

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 8 months ago #349794

Hi,

Registration is not allowed on your website ( i.imgur.com/RobuhHt.png ) and you didn't provide a user account credentials, so I wasn't able to analyze the situation directly.
Checking your screenshot, the HTML code displayed there seems to come from your template's login popup mechanism.
First, check if you have the folder templates/YOUR_TEMPLATE/html/com_hikashop/ via FTP.
If you do, rename it to temporarily deactivate all the view overrides for HikaShop in your template and then try again to reproduce the issue. If you're not able to, it means that the issue comes from one of the overrides in there, so you can rename each sub folder one after the other and then the files in them one by one so that you can identify which view file is creating the problem.
If you still have the issue regardless, then I'm not sure what should be done. You'll probably have to check with your template provider.

Now, if you could provide credentials or instructions to reproduce the issue, we could have a more in-depth look into it and maybe figure something out.

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

  • Posts: 117
  • Thank you received: 6
1 year 8 months ago #349822

Good afternoon Nicolas, thanks for wanting to help:

A. The folder com_hikashop was not present in templates/MY_TEMPLATE/html/ so I added it
B. I Have made template overrides for: Front-end wt_vhost_pro - HikaMarket productmarket form
I have gone back to the original and
I have removed the content of the folder: templates/MY_TEMPLATE/html/com_hikamarket

the situation did not changee

I have enabled registration

If you need admin please send me a pm on This email address is being protected from spambots. You need JavaScript enabled to view it.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 8 months ago #349823

Hi,

So, from what I can see there, it's the logout popup content which is added at the beginning of the address_template.
In the HikaShop configuration, you have a setting "address format" under the Checkout tab.
There, you can customize the format of the addresses displayed by HikaShop.
When you change that format, the modified format is stored in the file templates/YOUR_TEMPLATE/html/com_hikashop/address/address_template.php
If you say you don't have the folder templates/wt_vhost_pro/html/com_hikashop ( wt_vhost_pro is apparently your template folder name ), it means you ( or your template provider ) didn't change the address format and you're using the default one.

This means that for some reason, the template / login module popup system thinks it should add the logout popup content there.

How is that login/logout popup made ? Is that something in your template ? Or is it a special module you're using ?

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

  • Posts: 117
  • Thank you received: 6
1 year 8 months ago #349841

Ooooops!

I have used this login modal
extensions.joomla.org/extension/loginmodal/

I thought: well this one is made by the person who is been telling us for over 15 years that he is "the co-founder of Joomla".
So it had to be flawless.
So I thought.

Oh well...

I removed the modal and evewrythink is working perfect now!

Hallelujah!

And thanks a million!

(I have really been strugglin with this one!)

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 8 months ago #349844

Hi,

I checked the code of that plugin and it uses the event onAfterDisplay to add the HTML of the modal module to the page.
I think it should use another event to do that as this event will be called each time a view is displayed (and so it displays for each address). Ideally, it should add it at the end of the page. I would have used instead onAfterRender and I would have done a str_replace on </body> to prepend the modules HTML before it.
That would avoid such problems.

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

  • Posts: 117
  • Thank you received: 6
1 year 8 months ago #349858

Thank you again

I just took it out.
It cannot cause any problems if it's in the dust bin.
Again: thanks a lot!

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

Time to create page: 0.070 seconds
Powered by Kunena Forum