Confirm page: contents placed wrong

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 7 months ago #331182

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4

Hi

After submitting an order of zero amount due to a coupon, I get the page:
new.vipkortet.dk/kasse/checkout/confirm

But the text is placed at the top left?

I know it came from checkout / end.php, but that file has not been touched.



regards
Thomas

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 7 months ago #331189

Hi,

I suspect it's an issue linked to the template.
Can you temporarily switch to the default template of Joomla and check whether you have the same issue or not ?
If not, it would confirm it's linked to the template but I'm not sure what it could be. Could you provide precise instructions to reproduce the issue ? Because I looked at your website but couldn't find a way to access your checkout...

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

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 7 months ago #331214

Hi
Just tried the default template with same result.



The page only has 1 product, af membershipcard, so it's a bit hidden :-)

Please go to
new.vipkortet.dk/vipkort/bestil
> Læg i kurv

On checkout, register NY VIP
And use this coupon: VIPnb2021

After submitting the order, you'll see the text placed wrong.

Regards
Thomas

Attachments:

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
3 years 7 months ago #331217

Hello,

This result with your Template & ProtoStar is very weird, this result seems to indicate that the checkout view has been modified but without going through the HikaShop override system .

But it's just a guess, in order to go more far can you provide these elements :
- Url link to your backend
- Backend user references (with all access).

Awaiting your elements to be able to progress on your subject.
Regards

Last edit: 3 years 7 months ago by Philip.

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

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 7 months ago #331257

It is weird!
Info is on the way ...

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 7 months ago #331263

Hi,

What's interesting is that the text at the top is cut in the middle by the DIVs from the template:
i.imgur.com/6McH8OS.png
You can see that the text "Tak for din ordre.Du kan nu få adgang til din ordre ." is at the beginning of the body tag, next you have HikaShop's hidden footer tag (with the version number), and then you have HTML comments and scripts from the template. Then, you have some DIVs of the template, and then you have the "her" link to access the order and finally you have CSS and JS files which are supposed to be in the head of the page, not the body.

However, this should not be possible since the text and the link come from the same translation key:
YOU_CAN_NOW_ACCESS_YOUR_ORDER_HERE="Du kan nu få adgang til din ordre <a href='%s'>her</a>."

So what's likely is that you have a plugin of the group "system" which process the pages and find something here which lead it to go haywire and messes the whole page.

So I think what you should do is to disable the plugins one by one, and each time place a free order and see if that helps. Once you identify the problem, you can contact the developer of the plugin so that he can check what's going on.

Now, what you can do as a quick fix, is to edit the file checkout / end.php via the menu Display>Views and change the code:

echo JText::_('THANK_YOU_FOR_PURCHASE');
	if(!empty($this->url))
		echo '<br/>'.JText::sprintf('YOU_CAN_NOW_ACCESS_YOUR_ORDER_HERE', $this->url);
to:
JFactory::getApplication()->redirect('XXX');
where XXX is the URL of a page where you want to redirect the customer after a free order.
For example, you could use:
JFactory::getApplication()->redirect($this->url);
to directly redirect to the order details page of the order.
That should hopefully circumvent the problem.

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

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 7 months ago #331264

Yes, that is weird!

But thanks for the getting back to me on this - I'll use the redirect :-)

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

Time to create page: 0.072 seconds
Powered by Kunena Forum