- Fixed: download tag sorting in admin
- Fixed: download editing giving error that no filename is not correct
- Added: administrative download tags which are not visible in the store front end
- Added: resettable download counter - for free downloads you can also display the count publicly
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
- Added: Apply button to save Product Downloads PRO settings without leaving the page
- Fixed: Downloads displaying when customer group filtering was enabled
- Fixed: Download pagination count in admin when filtering
- Refactored some of the code
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
If after installing and enabling the extension and its various features you do not see the menu Catalog->Downloads->Downloads nor Catalog->Downloads->Download Tags appear, please check vQmod log file for an error report.
If you have other vQmods installed, chances are that one of them is in conflict with this extension. Try to remove the other vQmods to see if the extension starts to work at some point.
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
but I am still encountering a problem. I have to downloads and I have the product and I assign the download to the specific product, but the downloads tab still wont show up on the product page. Its like I have some setting screwed up or something, and I tried following all the settings to the screenshot that were in the downloads folder but still no luck.
UPDATE: i did check the logs for the vqmod and this is a reoccuring error:
---------- Date: 2012-05-21 09:17:48 ~ IP : 10.0.51.110 ----------
REQUEST URI : /hazlitt/index.php
MOD DETAILS:
modFile : F:\Inetpub\wwwroot\hazlitt\components\com_aceshop\opencart\vqmod\xml\product_downloads.xml
id : Add freely downloadble files to your products + batch upload files from folders
version : 3.3.1
vqmver : 1.0.7
author : rmg
SEARCH NOT FOUND (ABORTING MOD): </head>
----------------------------------------------------------------------
Any insight on this would be appreciated,
Thanks,
kate
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
Thanks
Kate
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
- Added: Option to delete the file from file system when deleting the download
- Added: AJAX based file uploading with progress bar and large file support
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
For example, lets say my category is MOVIES, then I would go to Movies category and see all the movies listed, along with their download link without having to actually go the the actually product page?
Any help would be grateful,
Thanks,
Kate
If you have several downloads associated with the product then it would not scale well.
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
- Fixed: compatibility with PHP < 5.3.0
- Fixed: a JavaScript file uploading issue
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
Changes in /admin/controller/catalog/download_ext.php:
Find: $file_name = trim(basename(stripslashes($name)), ".\x00..\x20");
Below line add: $file_name = trim(preg_replace('/[^a-z0-9]+/', '-', strtolower($file_name)), '-');
Find: $file->mask = $file->name;
Replace with: $file->mask = $name;
Find: $ok = @rename($file_path, $file_path . '.' . $ext);
Replace with: $ok = @rename($file_path, $file_path . '-' . $ext);
Find 2 instances of: $filename = pathinfo($file, PATHINFO_BASENAME) . '.' . md5(rand());
Replace with: $filename = trim(preg_replace('/[^a-z0-9]+/', '-', strtolower(pathinfo($file, PATHINFO_BASENAME))), '-') . '-' . md5(rand());
I also made a little change to how the file name is generated use mask when a user downloads. Right now it converts any special characters such as & into & in the filename. I am only checking for & since it is all I require in my store, however this could be done in a much better way.
Changes in catalog/controller/product/download.php
Find: $mask = basename($download_info['mask']);
Replace with: $mask = str_replace('&','and',basename($download_info['mask']));
Here is the relevant VQMod code:
Code: Select all
<file name="admin/controller/catalog/download_ext.php">
<operation>
<search position="after"><![CDATA[$file_name = trim(basename(stripslashes($name)), ".\x00..\x20");]]></search>
<add><![CDATA[$file_name = trim(preg_replace('/[^a-z0-9]+/', '-', strtolower($file_name)), '-');]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[$file->mask = $file->name;]]></search>
<add><![CDATA[$file->mask = $name;]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[$ok = @rename($file_path, $file_path . '.' . $ext);]]></search>
<add><![CDATA[$ok = @rename($file_path, $file_path . '-' . $ext);]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[$filename = pathinfo($file, PATHINFO_BASENAME) . '.' . md5(rand());]]></search>
<add><![CDATA[$filename = trim(preg_replace('/[^a-z0-9]+/', '-', strtolower(pathinfo($file, PATHINFO_BASENAME))), '-') . '-' . md5(rand());]]></add>
</operation>
</file>
<!-- better handling of filename on product download -->
<file name="catalog/controller/product/download.php">
<operation>
<search position="replace"><![CDATA[$mask = basename($download_info['mask']);]]></search>
<add><![CDATA[$mask = str_replace('&','and',basename($download_info['mask']));]]></add>
</operation>
</file>
I've purchased an install PD Pro and everything seems to be working correctly; however, I am getting an error in my log:
PHP Notice: Undefined variable: setting in /public_html/admin/model/setting/setting.php on line 12
PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /public_html/admin/view/template/module/product_downloads.tpl on line 239
PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /public_html/admin/view/template/module/product_downloads.tpl on line 239
PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /public_html/admin/view/template/module/product_downloads.tpl on line 239
/public_html/admin/model/setting/setting.php line 12 block
Code: Select all
foreach ($query->rows as $result) {
if (!$result['serialized']) {
$data[$result['key']] = $result['value'];
} else {
$data[$result['key']] = unserialize($setting['value']);
}
}
Code: Select all
<div class="<?php echo $class; ?>">
<?php if (in_array($group['customer_group_id'], $pd_customer_groups)) { ?>
<input type="checkbox" name="pd_customer_groups[]" value="<?php echo $group['customer_group_id']; ?>" checked="checked" />
<?php echo $group['name']; ?>
<?php } else { ?>
<input type="checkbox" name="pd_customer_groups[]" value="<?php echo $group['customer_group_id']; ?>" />
<php echo $group['name']; ?>
<?php } ?>
</div>
taylorjes
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
Hi I have the same issue as previously mentioned:
PHP Warning: in_array() expects parameter 2 to be array, string given in /some_long_path/admin/view/template/module/product_downloads.tpl on line 241
Although the problem seems harmless, it fills the error log with the same amount of lines as the number of customer groups you have - e.g 9 lines in my case - each time I press the save button ...
Anyway I have found this fix:
In admin/controller/module/product_downloads.php
At line 221, I've changed:
Code: Select all
$this->data['pd_customer_groups'] = $this->request->post['pd_customer_groups'];
Code: Select all
$this->data['pd_customer_groups'] = unserialize($this->request->post['pd_customer_groups']);
|V|355 \/\/17|-| 7}{3 |3357, ... [you know the rest]
Commercial mods: New! Questions & Answers PRO - Admin Quick Edit PRO - Product Downloads PRO - Custom Product Tab PRO - New! Product Quick Edit Plus
All mods & extensions by me
Users browsing this forum: No registered users and 225 guests