Checkout to download a free file fails

  • Posts: 9
  • Thank you received: 0
  • Hikashop Essential
7 years 8 months ago #263929

-- url of the page with the problem -- : demo.hikashop.com/index.php/en/hikashop/...div/checkout/confirm
-- HikaShop version -- : 3.0.0
-- Joomla version -- : ?
-- PHP version -- : ?
-- Browser(s) name and version -- : Safari 10.0.3
-- Error-message(debug-mod must be tuned on) -- : none

On the demo shop I changed The Invisible Man to weightless and free. I could then checkout without payment. After that I was taken to a page ( demo.hikashop.com/index.php/en/hikashop/...div/checkout/confirm ) but there was no link to download my file.

I have the same problem on my new shop. An email is send and that download link works.

All the best
Ben

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #263934

Hi,

I don't see why you say it fails then ?
It seems to work. You get the email with the download link after the checkout. And you can also find a download link if you access the order through the user control panel menu, or in the download area:
demo.hikashop.com/index.php/en/other-fea...panel/user/downloads
Normally, when you have a payment method, you have a "return URL" parameter where you can set the link where you want to be redirected after the checkout. If you don't have a price, then you don't have a payment method, and thus you're not redirected after the checkout and you stay on the default thank you page.
If you want to do something else, then you can edit the file "end" of the view "checkout" via the menu Display>Views and redirect the customer where you want with some custom code:
<?php JFactory::getApplication()->redirect('url'); ?>

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

  • Posts: 9
  • Thank you received: 0
  • Hikashop Essential
7 years 8 months ago #264019

On my development site (url in private message), I "buy" a free download and finally get a message
- Thank you for your purchase
- You can now access your order here (...shopping-basket/order/show/cid-8/token-IQiteklp
That link displays an empty page.

On the Hikashop demo I have again set The Invisible Man to free with no weight. Now when I "buy" a copy I get a page that says
- Thank you for your purchase
- there is no link

I am happy for my site to remove the link if necessary. So, I think my questions are
a) why does the link not work?
b) how to remove the link?

(If the answer to b) is to edit the php code I can do that)

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

  • Posts: 9
  • Thank you received: 0
  • Hikashop Essential
7 years 8 months ago #264067

** SOLVED **
Well, it kind of fixed itself. I don't know what I did but it's running now.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #264023

Hi,

The link is not on the thank you page on our demo website because the template we use has an old view override on the thank you page which doesn't include the link.
It's normal that you get the link there.
a. I can't say why the link doesn't work. It should work. I suppose that there is a SEF issue or something. First try downloading the install package of HikaShop on our website and install it again on yours. That will add all the latest patches and it might help.
Otherwise, we would need more information to be able to answer to that question.

b. Removing the link should be easy. Edit the file "end" of the view "checkout" and remove it from there. But you could even do it without any code change by change the translation YOU_CAN_NOW_ACCESS_YOUR_ORDER_HERE with a translation override:
www.hikashop.com/download/languages.html#modify

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

  • Posts: 9
  • Thank you received: 0
  • Hikashop Essential
7 years 8 months ago #264103

Thanks Nicolas,

Something else that might have been causing a very blank page for me was the lack of Joomla notifications in the template I was using. I've added those back in now and get many useful messages.

Ben

Last edit: 7 years 8 months ago by BenClay.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum