Terms and conditions with error 404

  • Posts: 80
  • Thank you received: 0
10 years 5 months ago #160209

-- url of the page with the problem -- : escolatur.com/clon
-- HikaShop version -- : business
-- Joomla version -- : 3.1
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error 404

Hi,
When I set the friendly URL, the article with the terms and conditions doesnt run. It shows a 404 Error.
But, if the Url is not friendly this article is showed right.
Could you help me, please?
Thanks in advance.
Leonora.



Attachments:

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

  • Posts: 80
  • Thank you received: 0
10 years 5 months ago #160273

Hi,
I solved it by changing the htaccess file.
Best regards
Leonora

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

  • Posts: 80
  • Thank you received: 0
10 years 5 months ago #160423

Hi:

The 2nd step on checkout. would have to show the "Terms and conditions" article but its link is wrong.

Recently, when I changed the htaccess file the link run ok, but now an 404Errors appears nowly Only when the friendly URL's are enabled.

The link is escolatur.com/clon/index.php?option=com_...1&Itemid=327&lang=es

I have asked for a solution to my hosting, but they believe that is a bug of hikashop.

Please, give me any solution.

Thanks in advance!
Leonora

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
10 years 5 months ago #160487

Hi,

It's probably because the URL of the popup doesn't have an Itemid. In some cases, the SEF system of Joomla doesn't like that.
Edit the line:

JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&tmpl=component'),
of the file "terms" of the view "checkout" via the menu Display>Views for your frontend template and add the parameter &Itemid=XXX where XXX is the id of a menu item displaying a joomla article and that should help avoid the 404 error for the T&C popup.

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

  • Posts: 80
  • Thank you received: 0
10 years 4 months ago #163341

Thanks, it runs!

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

  • Posts: 10
  • Thank you received: 0
8 years 7 months ago #235183

Hi. I have this same issue. I have done exactly what Nicolas said to do, but it's still showing up with the 404 dialogue box.

-- url of the page with the problem -- www.inarihealthandwellness.com
-- HikaShop version -- : Starter: 2.6.1
-- Joomla version -- : 3.3.6
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error 404

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

  • Posts: 4753
  • Thank you received: 644
  • MODERATOR
8 years 7 months ago #235216

Hello,

Can you make screenshot of your configuration, especially your checkout, in Components => HikaShop => Configuration in Checkout tab AND the article (your terms and conditions) ?

Awaiting news from you,

Regards,

Last edit: 8 years 7 months ago by Philip.

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

  • Posts: 10
  • Thank you received: 0
8 years 7 months ago #235294

Thanks Philip. Here are the screenshots.

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

  • Posts: 13201
  • Thank you received: 2322
8 years 7 months ago #235314

Hi,

The issue is that in the view that you edited, the link is not correct.
You are forcing the id of the article, and using the option value, so the id is no "3939" instead of "39" that's why it can't load the content.

So in your edition you have to remove "39" from the url.

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

  • Posts: 10
  • Thank you received: 0
8 years 7 months ago #235442

Ok, so I have attached screenshots. Without the customisation, the browser code (inspect element) shows correctly, but when I add the article ID to the checkout / terms.php, the browser code shows 3939. Both options, I am still getting 404 error.

Attachments:

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

  • Posts: 4753
  • Thank you received: 644
  • MODERATOR
8 years 7 months ago #235455

Hello,

If nothing is solved, despite fact all was said, difficult to have another idea, so next step!
Can you pass us via our "Contact us" form (add this topic Url in your message as a link please) access references for frontend and backend, we will be able to process some tests.

Awaiting news from you.

Regards,

Last edit: 8 years 7 months ago by Philip.

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

  • Posts: 4753
  • Thank you received: 644
  • MODERATOR
8 years 7 months ago #235655

Hello,

I found and fix your terms & condition issue.
To explain what I have done in Display -> Views and your terms in checkout view I replace the line :

JRoute::_('index.php?option=com_content&view=article&id=39'.$terms_article.'&tmpl=component')

By

JRoute::_('index.php?option=com_content&view=article&id=X'.$terms_article.'&tmpl=component&itemid=39'

And I set a category for your Terms & Condition Article (without this that won't works)

Hope this will fit your needs,

Regards,

Last edit: 8 years 7 months ago by Philip.
The following user(s) said Thank You: christie83

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

  • Posts: 10
  • Thank you received: 0
8 years 7 months ago #235760

Thank you so much Philip :)

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

Time to create page: 0.111 seconds
Powered by Kunena Forum