Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

Paid Downloads - No download link in invoice

  • linkpointmedia
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 4 months ago #3264 by linkpointmedia
Paid Downloads - No download link in invoice was created by linkpointmedia
I am unable to get the download links to appear in the invoice. When I click "View Your Order Online" the downloads are listed out as expected.

The plugin is set as follows:
  • Cart Attribute: Yes
  • Cart Input: No
  • Default value: spiral_download
  • Admin only: No
  • Hidden: No
  • Number download field: 0
  • Days download field: 0
  • Order Status: Confirmed by Shopper, Confirmed, Shipped
  • Allow Streaming: No
  • Max Download Speed: 1000
  • Download Type: Simple attachment

Any ideas? Thanks.

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

More
4 years 4 months ago - 4 years 4 months ago #3265 by boggler
Replied by boggler on topic Paid Downloads - No download link in invoice
It is a problem with the Virtuemart invoice template. You need to edit virtuemart/views/invoice/tmp/invoice_items.php, depending on exactly which version you are using it will probably be about line 64, where you have
<?php
	$product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE');
	echo $product_attribute;
?>

change to
<?php
if ($this->recipient == 'shopper' && $this->isMail) {
    $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE');
   echo $product_attribute;
}
?>
Last edit: 4 years 4 months ago by boggler.
The following user(s) said Thank You: linkpointmedia

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

  • linkpointmedia
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 4 months ago - 4 years 4 months ago #3266 by linkpointmedia
Replied by linkpointmedia on topic Paid Downloads - No download link in invoice
Thanks! That did the trick.

Is there any way to remove these lines as I have no intention of using those features:
Download Limit: Unlimited
Download Ends: Unlimited

Thanks
Last edit: 4 years 4 months ago by linkpointmedia.

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

More
4 years 4 months ago #3267 by boggler
Replied by boggler on topic Paid Downloads - No download link in invoice
Yes, it is lines 715 to 716 in spiral_download.php:-
$html .= '<li>'.JText::_('VMCUSTOM_SPIRAL_DOWNLOAD_DOWNLOAD_LIMIT').$media->downloadInfo->downloads_limit.'</li>';
$html .= '<li>'.JText::_('VMCUSTOM_SPIRAL_DOWNLOAD_DOWNLOAD_ENDS').$media->downloadInfo->downloads_end.'</li></ul>';

change to
$html .= '</ul>';
The following user(s) said Thank You: linkpointmedia

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

  • linkpointmedia
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 4 months ago #3268 by linkpointmedia
Replied by linkpointmedia on topic Paid Downloads - No download link in invoice
Thanks, that fixed it. :)

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

Moderators: boggler
Time to create page: 0.207 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.