Hello!
I would like some help about downloadable products .
I would like people to be able to download right away their products even Order is set as "Pending" , how do i go about it? i found some solutions already but it appears to be for older opencart versions. i am on 1.5.1.3
Thanks!
Max
Hey,
I just looked through the model for downloads and it looks like this might stop customers who have had their order status updated from Pending to Completed, unable to download their products.
To fix this, edit file catalog / model / account / download.php
Find:
Replace With:
Now set your complete order status back to "Complete", and now the customer can download their products if either their order status matches the complete order status, or if their order status matches the default order status.
Cheers,
Joel.
I just looked through the model for downloads and it looks like this might stop customers who have had their order status updated from Pending to Completed, unable to download their products.
To fix this, edit file catalog / model / account / download.php
Find:
Code: Select all
$query = $this->db->query("SELECT o.order_id, o.date_added, od.order_download_id, od.name, od.filename, od.remaining FROM " . DB_PREFIX . "order_download od LEFT JOIN `" . DB_PREFIX . "order` o ON (od.order_id = o.order_id) WHERE o.customer_id = '" . (int)$this->customer->getId() . "' AND o.order_status_id > '0' AND o.order_status_id = '" . (int)$this->config->get('config_complete_status_id') . "' ORDER BY o.date_added DESC LIMIT " . (int)$start . "," . (int)$limit);
Code: Select all
$query = $this->db->query("SELECT o.order_id, o.date_added, od.order_download_id, od.name, od.filename, od.remaining FROM " . DB_PREFIX . "order_download od LEFT JOIN `" . DB_PREFIX . "order` o ON (od.order_id = o.order_id) WHERE o.customer_id = '" . (int)$this->customer->getId() . "' AND o.order_status_id > '0' AND (o.order_status_id = '" . (int)$this->config->get('config_complete_status_id') . "' OR o.order_status_id = '" . (int)$this->config->get('config_order_status_id') . "') ORDER BY o.date_added DESC LIMIT " . (int)$start . "," . (int)$limit);
Cheers,
Joel.
OpenCart Addons wrote:Go to your shop settings (System / Settings) and under the Option tab change "Complete Order Status" to Pending.
I have....ADMIN/ SYSTEM/SETTINGS /OPTION/(CHECKOUT) settings set as follows:
I have "order status" set to "complete", and "Complete order Status" set to "pending", but customer cannot download file. When they click on link in email, they see this (below):
Date Added Status Comment
04/01/2014 Pending
Why is this happening? seems to be be something simple. The downloads are FREE so why such an issue?
Who is online
Users browsing this forum: No registered users and 16 guests