Jump to content

Ronny

Members
  • Content count

    96
  • Joined

  • Last visited

Profile Information

  1. Ronny

    Image Magic

    Hi. Can anyone tell my why I get the following message when trying to edit the possition of the whatermark in Image Magic? Fatal error: Call to undefined function: tep_cfg_pull_down_watermark_alignment() in /mydomain.com/admin/configuration.php(125) : eval()'d code on line 1
  2. Ronny

    Send Order Html email v6.0Beta

    Installed the fckeditor. Works now exept for file upload. With some back and forth editing I finally managed to make a folder in the upload section. But nothing happens when trying to upload images. If I upload them with my ftp client I can access them through the Order Html email v6 upload panel. Any idea?
  3. Ronny

    Super Download Shop

    Ok. I´ll try that. Thanks.
  4. Ronny

    Super Download Shop

    Thank you. I installed the 1.1 version and it works great :thumbsup: However, is there a simple way to change the language of the message telling the costumer that download is not available? I´d like it to show in english and norwegian.
  5. Ronny

    Super Download Shop

    Thanks for your reply. I will install the version 1.1. Do I nead to run the SQL files again or are these unchanged? All the files are uploaded to their respective folders. I treat the root as catalog. The problem here is if the files contain paths in the code with the catalog included. Is this the case. My admin is password protected with an alternativ login contrib. By the way: I managed to get the"Downloads Controller Update Status Value" , "Downloads Controller Download on hold message" and "Downloads Controller Order Status Value" to show twice in the Configuration/Download in admin panel. Any idea how to remove one of them?
  6. Hello. I just installed the Super Download Shop contrib. Two problems so far: 1) I get the following message when trying to access product attributes in my admin panel: Parse error: syntax error, unexpected T_CASE in /hsphere/local/home/webtask/eterya.com/admin/products_attributes.php on line 90 Here´s the modification from line 90: // BOF Super Download Shop v1.0 mod case 'add_filegroups': $filegroup_id = tep_db_prepare_input($HTTP_POST_VARS['filegroup_id']); $file_group_array = $HTTP_POST_VARS['file_group_name']; // check if any name given $name_check = 0; for ($i=0, $n=sizeof($languages); $i<$n; $i ++) { if (!empty($file_group_array[$languages[$i]['id']])) $name_check = 1; } if (is_numeric($filegroup_id) && $name_check == 1) { for ($i=0, $n=sizeof($languages); $i<$n; $i ++) { $file_group_name = tep_db_prepare_input($file_group_array[$languages[$i]['id']]); tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS . " (download_group_id, download_group_name, language_id) values ('" . (int)$filegroup_id . "', '" . tep_db_input($file_group_name) . "', '" . (int)$languages[$i]['id'] . "')"); } } tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info)); break; case 'add_group_file': $filegroup_id = tep_db_prepare_input($HTTP_POST_VARS['filegroup_id']); $file_desc_array = $HTTP_POST_VARS['file_desc']; $file_name = ''; if (isset($HTTP_POST_VARS['input_filename']) && !empty($HTTP_POST_VARS['input_filename'])) { $file_name = tep_db_prepare_input($HTTP_POST_VARS['input_filename']); } if (tep_not_null($file_name) && file_exists(DIR_FS_CATALOG_DOWNLOAD . $file_name)) { // check existing file and descriptions $file_query = tep_db_query("select download_groups_file_id from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " where download_group_filename = '" . $file_name . "'"); if (tep_db_num_rows($file_query) > 0) { $file_array = tep_db_fetch_array($file_query); tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " (download_groups_file_id, download_group_id, download_group_filename) values ('" . (int)$file_array['download_groups_file_id'] . "', '" . (int)$filegroup_id . "', '" . tep_db_input($file_name) . "')"); } else { tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " (download_group_id, download_group_filename) values ('" . (int)$filegroup_id . "', '" . tep_db_input($file_name) . "')"); $download_groups_file_id = tep_db_insert_id(); for ($i=0, $n=sizeof($languages); $i<$n; $i ++) { $file_desc = tep_db_prepare_input($file_desc_array[$languages[$i]['id']]); if (empty($file_desc)) $file_desc = tep_db_prepare_input(TEXT_TEMP_DESC . ' ' . $download_groups_file_id); tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_TO_FILES . " (download_groups_file_id, language_id, download_group_file_description) values ('" . (int)$download_groups_file_id . "', '" . (int)$languages[$i]['id'] . "', '" . tep_db_input($file_desc) . "')"); } } } else { if (!tep_not_null($file_name)) $messageStack->add(ERROR_NO_FILENAME, 'error'); else $messageStack->add(sprintf(ERROR_FILE_DOES_NOT_EXIST, $file_name), 'error'); } tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info)); break; case 'add_mass_files': $filegroup_id = tep_db_prepare_input($HTTP_POST_VARS['filegroup_id']); $file_selected = $HTTP_POST_VARS['file_selected']; foreach($file_selected as $k => $file_name) { if (tep_not_null($file_name)) { $file_name = tep_db_prepare_input($file_name); // check if file already in group $file_check_query = tep_db_query("select * from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " where download_group_id = '" . (int)$filegroup_id . "' and download_group_filename = '" . $file_name . "'"); if (tep_db_num_rows($file_check_query) == 0) { // check existing file and descriptions $file_query = tep_db_query("select download_groups_file_id from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " where download_group_filename = '" . $file_name . "'"); if (tep_db_num_rows($file_query) > 0) { $file_array = tep_db_fetch_array($file_query); tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " (download_groups_file_id, download_group_id, download_group_filename) values ('" . (int)$file_array['download_groups_file_id'] . "', '" . (int)$filegroup_id . "', '" . tep_db_input($file_name) . "')"); } else { tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " (download_group_id, download_group_filename) values ('" . (int)$filegroup_id . "', '" . tep_db_input($file_name) . "')"); $download_groups_file_id = tep_db_insert_id(); for ($i=0, $n=sizeof($languages); $i<$n; $i ++) { $file_desc = tep_db_prepare_input(TEXT_TEMP_DESC . ' ' . $download_groups_file_id); tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_TO_FILES . " (download_groups_file_id, language_id, download_group_file_description) values ('" . (int)$download_groups_file_id . "', '" . (int)$languages[$i]['id'] . "', '" . tep_db_input($file_desc) . "')"); } } } } } tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info)); break; case 'update_filegroup_name': $file_group_name_array = $HTTP_POST_VARS['file_group_name']; $filegroup_id = tep_db_prepare_input($HTTP_POST_VARS['filegroup_id']); for ($i=0, $n=sizeof($languages); $i<$n; $i ++) { $file_group_name = tep_db_prepare_input($file_group_name_array[$languages[$i]['id']]); tep_db_query("update " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS . " set download_group_name = '" . tep_db_input($file_group_name) . "' where download_group_id = '" . (int)$filegroup_id . "' and language_id = '" . (int)$languages[$i]['id'] . "'"); } tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info)); break; case 'update_file_desc': $file_desc_array = $HTTP_POST_VARS['file_desc']; $file_id = tep_db_prepare_input($HTTP_POST_VARS['file_id']); for ($i=0, $n=sizeof($languages); $i<$n; $i ++) { $file_desc = tep_db_prepare_input($file_desc_array[$languages[$i]['id']]); tep_db_query("update " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_TO_FILES . " set download_group_file_description = '" . tep_db_input($file_desc) . "' where download_groups_file_id = '" . (int)$file_id . "' and language_id = '" . (int)$languages[$i]['id'] . "'"); } tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info)); break; case 'delete_download_group': $filegroup_id = tep_db_prepare_input($HTTP_GET_VARS['filegroup_id']); tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS . " where download_group_id = '" . (int)$filegroup_id . "'"); // check files in other group $files_query = tep_db_query("select download_groups_file_id from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " where download_group_id = '" . (int)$filegroup_id . "'"); while ($file_array = tep_db_fetch_array($files_query)) { $file_check = tep_db_query("select download_groups_file_id from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " where download_group_id != '" . (int)$filegroup_id . "' and download_groups_file_id = '" . $file_array['download_groups_file_id'] . "'"); if (tep_db_num_rows($file_check) === 0) { tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_TO_FILES . " where download_groups_file_id = '" . $file_array['download_groups_file_id'] . "'"); } } tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " where download_group_id = '" . (int)$filegroup_id . "'"); tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info)); break; case 'delete_file_from_group': $filegroup_id = tep_db_prepare_input($HTTP_GET_VARS['filegroup_id']); $file_id = tep_db_prepare_input($HTTP_GET_VARS['group_file_id']); tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " where download_group_id = '" . (int)$filegroup_id . "' and download_groups_file_id = '" . (int)$file_id . "'"); // check files in other group $file_check = tep_db_query("select download_groups_file_id from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " where download_group_id != '" . (int)$filegroup_id . "' and download_groups_file_id = '" . (int)$file_id . "'"); if (tep_db_num_rows($file_check) === 0) { tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_TO_FILES . " where download_groups_file_id = '" . (int)$file_id . "'"); } tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info)); break; case 'delete_file_all_groups': $file_id = tep_db_prepare_input($HTTP_GET_VARS['group_file_id']); tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_FILES . " where download_groups_file_id = '" . (int)$file_id . "'"); tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD_GROUPS_TO_FILES . " where download_groups_file_id = '" . (int)$file_id . "'"); tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info)); break; // EOF Super Download Shop v1.0 mod 2) I´m supposed to access catalog/admin/filegroup_db_setup.php to create the initial file group entry in my database for each language. When doing so this file opens: /admin/forbiden.php Anyone who can help me? PS: My site is in the root folder and not catalog.
  7. Ronny

    Invoice module

    Hello. Does anyone know how to make the invoise_1.30 cintribution use the function of selecting zones. In other words, make invoice availeble to surtain languages. Most payment modules have this option in the admin area under edit but not this one. Here´s the contrib: Invoice 1.3
  8. Ronny

    Invoice for norwegians only

    OK. I figured something out. The COD module has function that hides the module if the product is virtual. In my case I´m selling downloadable products so I guess that´s why it doesn´t show. Tryed to edit the cod.php but got error messages regarding modules.php. Need help on this :-"
  9. Ronny

    Invoice for norwegians only

    Actually it doesn´t show when I disable zone either. :'(
  10. Ronny

    Invoice for norwegians only

    Thank you. Did as you described but now it doesn´t show at all, no matter what language I choose. I installed cod (called invoice now) and set it to: Enable COD: Yes Zone: Norway Order status: Standard Sort order: 1 Any idea why it doesn´t show?
  11. Ronny

    Invoice for norwegians only

    I downloaded the module from Contributions. Have no idea how to modify a module. All the other payment modules I have do have the zones option but not the invoice module. Typical :'(
  12. Ronny

    Invoice for norwegians only

    Tryed doing that. Not sure if did it correct. I added norway to the zones section in Locations / Taxes category. Then tryed to edit the invoice in payment modules but there weren´t any options for zones there. Am I missing something?
  13. Ronny

    Invoice for norwegians only

    I have installed an invoice module on my shop. I allso have Paypal as an option. I would like the invoice option to be availeble to norwegians only. The only way I can think of is to make the option invisible for visitors viewing the site in another language. Is this possibe? If so, how?
  14. I installed the Send Order Html email v6.0Beta. found here: Link When trying to access my admin area I get this error message: Warning: main(FCKeditor/fckeditor.php): failed to open stream: No such file or directory in /hsphere/local/home/webtask/eterya.com/admin/includes/functions/html_output.php on line 14 Fatal error: main(): Failed opening required 'FCKeditor/fckeditor.php' (include_path='.:/hsphere/shared/apache/libexec/php4ext/php/') in /hsphere/local/home/webtask/eterya.com/admin/includes/functions/html_output.php on line 14 When trying to purchase a product I get this message when complete ordering: Warning: main(includes/modules/email/checkout.1.php): failed to open stream: No such file or directory in /hsphere/local/home/webtask/eterya.com/checkout_process.php on line 285 Fatal error: main(): Failed opening required 'includes/modules/email/checkout.1.php' (include_path='.:/hsphere/shared/apache/libexec/php4ext/php/') in /hsphere/local/home/webtask/eterya.com/checkout_process.php on line 285 I´m not much of a programmer but it seams to me that it can´t find fckeditor.php and checkout.1.php. And for a good reason cause I never found those files in the contribution. Is there something missing or am I missing something? :huh:
  15. Hello. I installed the Accept Privacy contrib. This makes the costumer having to agree to the privacy notice before registering an account. The privacy notice is shown in a popup window. My problem is that the popup only shows the text in the language set as default in the admin panel. Changing language by clicking a flag in the shop does not help. Anyone?
×