News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Virtual Product Download link affected by product inventory [solved]

Started by groovezog, April 08, 2014, 04:06:58 AM

Previous topic - Next topic

groovezog

My question relates to the plugin: Shipment for Virtual Products

I'm having a problem with the download link not showing in the email for items that have "1" in the " In Stock " field. In other words, if there is only one downloadable item left at the time of purchase, then the download link is not sent. If there are two or more downloadable items left, then there are no problems.

If I go to the Order List, update the order status to "Shipped" and then notify the customer, a new invoice will be sent containing a download link. HOWEVER, clicking on the download link just takes the user to a page that reads "You got logged!" I guess because the user is trying to download a product that is out of stock.

- I have read extensively through the forum. I don't see a similar problem.
- I have disabled template overrides.
- I have reverted to the Beez_5 frontend template
- I have opened a support ticket, but I haven't heard anything back in a couple days.
- This is happening for both Authorize.net and Standard payment options
- I have a Super Admin login on a development site if someone would like to have a look. I can PM this.

I'm using:
Shipment for Virtual Products vm2.0.22_1.3
Joomla! v2.5.19
Virtuemart 2.6.0, and the problem was happening with 2.0.26d as well
PHP v5.4.26
Regular SEF URLs, with URL rewriting

I sell a downloadable manual, and each manual has a unique serial number. Only one of each manual should be sold, and when it has sold it should not appear on the site or be able to be purchased. That's why I don't simply set the "In Stock" to more than one.

Thank you for any help you can offer.

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

groovezog

Quote from: Maxim Pishnyak on April 08, 2014, 13:24:44 PM
Did you submit a ticket?
Yes, as I noted, and I received a solution that works!

Here's what I did:
go to /administrator/components/com_virtuemart/models/product.php line 805 and change this

if ($app->isSite () and VmConfig::get ('stockhandle', 'none') == 'disableit' and ($child->product_in_stock - $child->product_ordered) <= 0) {

to

if ($app->isSite () and VmConfig::get ('stockhandle', 'none') == 'disableit' and ($child->product_in_stock - $child->product_ordered) <= -1) {

Thanks Max

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart