- Posts: 29
- Thank you received: 2
Download free product after ordering
- wirthconsulting
-
Topic Author
- Offline
We have Hikashop 1.5.4 Business edition & Joomla 1.7.3.
We have some free products and some paid products. We want customers to register (i.e. go through the check out process) for any type of product regardless of whether it is free or paid.
I reviewed this forum post www.hikashop.com/en/support/forum/2-gene...l-products.html#7400 which noted that since version 1.4.4 it is possible to 'order' free products using the 'Display 'add to cart' button for free products' option in the Configuration. We have turned this option on.
The rest of the forum post says you need to update a line in the File: Show / View: Order in the frontend.
After checking this file it already has the required line
if($this->order_status_download_ok || bccomp($product->order_product_price,0,5)==0){
However when the order created email is received, you click on the link and view the order summary page. Then you try to click on the file download itself on the order summary page and an error appears saying "Order status does not permit download".
How do I allow free products ($0.00) to be downloaded after the user has gone through checkout?
Thanks,
Please Log in or Create an account to join the conversation.
Here is a plugin that you can use to confirm automatically free orders. That should solve your problem.
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
- wirthconsulting
-
Topic Author
- Offline
- Posts: 29
- Thank you received: 2
Please Log in or Create an account to join the conversation.
The validate free.. is exactly what makes my testing a lot easier but I can't find the right way to use it....
I have installed it and it is enabled in the plugins but then?
Can't find any hint of it anywhere in HIKA.....
Do I need to set something or is it suppose to work 'invisible'?
In that case it is not working for me.
I was hoping I could setup a product, lets say E-book for 5 euro as download, give myself a coupon code of 100% discount and test the whole process.
Bastiaan
Please Log in or Create an account to join the conversation.
If it doesn't work, either the plugin is not published or the order price is not 0.
Please Log in or Create an account to join the conversation.
Related: in the backend I have to specifically switch on the 'notify customer' to get that email out. Wish there was an option to set it to default 'on' and hopefully the plugin starts to send out emails than too.
Please Log in or Create an account to join the conversation.
That will be available in next release of HikaShop.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 35
- Thank you received: 0
Please Log in or Create an account to join the conversation.
The download link in the creation email is an edge case that will be in the next version to be released in a month or so.
Please Log in or Create an account to join the conversation.
- Posts: 35
- Thank you received: 0
(bare with me, it's my first hika installation)
I have free products (electronic) which should be "purchased", so I have the customer details at the end.
after "buying" the product, the email is sent out immediately though the plugin you published.
The customer now is awaiting immediately a download link, but this is only sent in the following (manual) email. Am I in sync with what you wrote, or can i accomplish this already in the current version?
Many thanks,
Torsten
Please Log in or Create an account to join the conversation.
So yes, you should be able to accomplish what you want with the current version and that plugin already.
Please Log in or Create an account to join the conversation.
- Posts: 35
- Thank you received: 0
can it be, that this plugin is no loger working since the last hikashop update? I recall it worked in a demo install earlier, but now i tried it on two installs without success with the most recent hika version.
I just installed hika on a new demo site, plugin is enabled, status is set to confirmed in the order automatically, but the confirmation email to the customer with the DL link is never sent? (only order creation email is sent to customer email)
Many thanks,
Torsten
Please Log in or Create an account to join the conversation.
That plugin only changes the status of the order while it is created. So there is no second email sent.
And since that first email doesn't contain any code to display the download links, it's normal that you get that result.
In next version of HikaShop, we'll change that creation email so that the links are added to the email if the order is confirmed.
Please Log in or Create an account to join the conversation.
- Posts: 35
- Thank you received: 0
many thanks for your reply. Is there any workaround for the time being? I have to get the email-adresses of the downlaoders, so they can get inserted into acymailing for the newsletter...that's the purpose...any idea?
Thanks!
Torsten
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 35
- Thank you received: 0
sadly this doesn't work.
Attached the modified file.
Regards!
Torsten
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
$query = 'SELECT * FROM '.hikashop_table('file').' WHERE file_ref_id IN ('.implode(',',$ids).') AND file_type = \'product\' ORDER BY file_ref_id ASC, file_ordering ASC';
to:
$query = 'SELECT * FROM '.hikashop_table('file').' WHERE file_ref_id IN ('.implode(',',$ids).') AND file_type IN( \'product\',\'file\') ORDER BY file_ref_id ASC, file_ordering ASC';
in the file administrator/components/com_hikashop/class/cart.php ?
Please Log in or Create an account to join the conversation.
- Posts: 35
- Thank you received: 0
this is sadly still not working. The confirmation email still doesnt contain any link to the download.
regards,
torsten
Please Log in or Create an account to join the conversation.
How are configured your products ? Do you have options, charcteristics ?
Does it work with a simple product on your end ?
Please Log in or Create an account to join the conversation.