Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

redrum

Members
  • Posts

    228
  • Joined

  • Last visited

Everything posted by redrum

  1. I uploaded the alterimage.php from the v2.0.1 package, that was the latest package where alterimage.php differed from v2.1.0. v2.0.1 doesnt give me any error message, but I havent checked so evrything works yet. Is there there any advantages/drawbacks for alterimage.php between the version v2.0.1 and v2.1.0?
  2. I uploaded the /store/admin/categories.php from the contrib package. I Also uploaded /store/admin/includes/classes/alterimage.php just in case. But I still receive the error: Parse error: syntax error, unexpected $end in /home/XXXX/domains/XXXX.com/public_html/store/admin/includes/classes/alterimage.php on line 722 I do have a modified shop, but since I receive the error while using the admin/categories.php from the package i dont know what to looking for. Any idea?
  3. I receive the error message Parse error: syntax error, unexpected $end in /home/XXXX/domains/XXXX.com/public_html/store/admin/includes/classes/alterimage.php on line 722 in admin/categories.php But if I comment out require(DIR_WS_CLASSES . 'alterimage.php'); from admin/categories.php then everyting shows up allright. But then the Auto-generate image does not work. What have I done wrong and what can I do to make alterimage.php work? Thanks, Fredrik
  4. Thanks for your reply Steve. I use STS, so I deactivated STS in sts_display_output.php, but the problem remained. I then uploaded includes/checkout/checkout.js from version 1.07 and then the continue-button was loaded after I change the countries. But If I skipped to choose a payment option and hit the continue-button I received the pre_confirmation_check error. Then I changed checkAllErrors(); to return checkAllErrors(); in includes/checkout/checkout.js (version 1.07) at line 795. And then it seems to work. But I found all this a bit odd.
  5. If I enter all shipping details and then change country, the continue button wont load. It stops at "Getting Country's Zones". If I check the Error Console in Firefox I receive the following error: Error: $el.get(0) is undefined Source: http://www.URL.com/includes/checkout/checkout.js Row: 39 I dont know if this has anyting t do with the error, since it appears in the error console if I upload the includes/checkout/checkout.js from version 1.07. But when I use it the continue button loads as it should. There's also alot of warnings in the Error Console saying emty string sent to getElementById(). What is wrong and how can this be solved? Thanks, Fredrik
  6. Thanks surfalot, I compared the two files and got it to work just fine.
  7. I need to change the header in the export text file from v_categories_name_1_4 to v_categories_name_1. So I need to remove the last figure that stands for the language. And I only want to change the header. Does anyone have any idea of how to do this? This easypopulate-file will not be used to import files, only export.
  8. killerwhale65/Matthias, according to http://oscommerce-photo-gallery.micrographx.be there are several features that this contrib will be updated with. Do you have any idea of when or if next update will be availabe? Cheers, Fredrik
  9. I installed Search Order v1.0 French and English and it it seems like a nice contrubution. However, when I do a search for "Date till" (I guuess it's should be Date Untill") the search display all orders, from start untill the current date. And when I do a search for "Date from" I receive the following sql error: 1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(o.date_purchased, '5/05-8/-20') >= 0 AND DATEDIFF(o.date_purch SELECT o.orders_id, o.customers_id, o.customers_name, DATE_FORMAT(o.date_purchased, '%d/%m/%Y %T') as date_pur, ot.text, os.orders_status_name FROM orders o INNER JOIN orders_total ot ON o.orders_id = ot.orders_id INNER JOIN orders_status_history osh ON o.orders_id = osh.orders_id INNER JOIN orders_status os ON (o.orders_status = os.orders_status_id and os.language_id = "4") WHERE ot.class = "ot_total" AND DATEDIFF(o.date_purchased, '5/05-8/-20') >= 0 AND DATEDIFF(o.date_purchased, '2009-09-20') <= 0 GROUP BY o.orders_id, o.customers_name, o.date_purchased, ot.value, os.orders_status_name ORDER BY o.orders_id DESC; I changed the code so '5/05-8/-20' was displayed like '2008-05-05'. But I still received the sql error. Does anyone have a solution for these two errors? Thanks, Fredrik
  10. I'm not sure here, but it shouldnt generate random numbers. It should generate the product id. To try it out to see if it works by only do the change in one place in easypopulate.php. If you do the change on line 1911 and then do a complete export.
  11. These tables does not exist in the shop that I want to do the export from. But I took a look at it with some fresh eyes and solved it. I added $filelayout['v_products_qty_blocks'] = $products_qty_blocks; in the propper place Then '$products_qty_blocks' as v_products_qty_blocks, in the db quiry Then $products_qty_blocks = '1'; in the top of the page to define it. And then $products_qty_blocks in the line list($filelayout, $filelayout_count, $filelayout_sql, $fileheaders) = ep_create_filelayout($_GET['dltype'], $attribute_options_array, $languages, $custom_fields, $products_qty_blocks); // get the right filelayout for this download and process_row($readed_row, $filelayout, $filelayout_count, $default_these, $ep_separator, $languages, $custom_fields, $products_qty_blocks, $products_extra); and function ep_create_filelayout($dltype, $attribute_options_array, $languages, $custom_fields, $products_qty_blocks){
  12. If you change p.products_model as v_products_model to p.products_id as v_products_model you get the product id in the v_products_model table in the CSV file. I have just tried to export it by this modification. I have not tested to upload anyting with these changes. So backup and test it in a test shop first.
  13. I have some fields in the export txt/csv-file that I want to add. These fields should be same for all products, so the information shuld be hard coded in the easypopulate.php file example: v_distributors_name v_products_qty_blocks NULL 1 So NULL and 1 should be same on all lines for all products in the export file. And I dont need them in the import section. I have tried a few things but cant get it to work. All I manage to get into the export file is the column headers. Can anyone tell me how to acomplish this? Thanks, Fredrik
  14. I'm not sure here, but you should be able to work around it by change in easypopulate.php so the product id is used instead in the products_model field. //Fredrik
  15. 1. Whats your url? 2. Check this post for the solution. Dont add anyting into the database to get rid of this error message.
  16. Yes, you can turn it on and off in admin. But you should really set it up in a test shop first to try it out instead.
  17. So check that all .js fies are in the proper folder with a proper path on your server.
  18. I got it working. But I use the payment module Kreditor. Its displayed in a simular way as the osc built in credit card module. It has some extra fileds to enter below it, besides the radio button. And this module should toggle those extra fields when you select a radio button. The toggle work for the credit card, but not for Kreditor. If anyone know how to get the toggle work that would be great
  19. Does anyone have a solution for this feature? I would also like to enable products and categories on store basis after a new store is set up with one click. //Fredrik
  20. A strange thing has happened regarding the shipping options; A customer contacted me and asked why there was two shipping options in the checkout. I have installed an additional shipping option that only should be used for wholesale. The other shall only be used by retail. The customer that contacted me is set to retail customer in admin, and should only see one shipping option. I also did a search in my database to check if any customer has completed a order and selected the wholesale shipping option, but I got zero in results there. I cant recreate the problem myself. I have logged in on a test account and on other customers account, including the customer that contacted me. The settings for shipping options is set in customer groups (admin/customers_groups.php) to apply different settings for retail and wholesale. I got two wholesale groups, the only thing that differs them are the discount. The shipping settings are the same. Does anyone have any idea of what may cause this and how to avoid it? Cheers, Fredrik
  21. What kind of bugs does dynamo checkout have? Cheers, Fredrik
  22. You can limit the fly mod to gallery.php and gallery_user.php by adding the following code in includes/function/html/output.php /// Fly Mod BOF if ( basename($_SERVER['PHP_SELF']) == 'gallery.php' or basename( $_SERVER['PHP_SELF'] ) == 'gallery_user.php') { /// // if no file exists display the 'no image' file if (!is_file($src)) { $src = "images/no_image.jpg"; } // Set default image variable and code $image = '<img src="' . $src . '"'; // Don't calculate if the image is set to a "%" width if (strstr($width,'%') == false || strstr($height,'%') == false) { $dont_calculate = 0; } else { $dont_calculate = 1; } // Dont calculate if a pixel image is being passed (hope you dont have pixels for sale) if (!strstr($image, 'pixel')) { $dont_calculate = 0; } else { $dont_calculate = 1; } // Do we calculate the image size? if (CONFIG_CALCULATE_IMAGE_SIZE && !$dont_calculate) { // Get the image's information if ($image_size = @getimagesize($src)) { $ratio = $image_size[1] / $image_size[0]; // Set the width and height to the proper ratio if (!$width && $height) { $ratio = $height / $image_size[1]; $width = intval($image_size[0] * $ratio); } elseif ($width && !$height) { $ratio = $width / $image_size[0]; $height = intval($image_size[1] * $ratio); } elseif (!$width && !$height) { $width = $image_size[0]; $height = $image_size[1]; } // Scale the image if not the original size if ($image_size[0] != $width || $image_size[1] != $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } else { $height = intval($width * $ratio); } $image = '<img src="product_thumb.php?img=' . $src . '&w=' . tep_output_string($width) . '&h=' . tep_output_string($height) . '"'; } } elseif (IMAGE_REQUIRED == 'false') { return ''; } } // Add remaining image parameters if they exist if ($width) { $image .= ' width="' . tep_output_string($width) . '"'; } if ($height) { $image .= ' height="' . tep_output_string($height) . '"'; } if (tep_not_null($params)) $image .= ' ' . $params; $image .= ' border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title="' . tep_output_string($alt) . '"'; } $image .= '>'; return $image; } else { // Original: if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } Check with your original code so it match. Its pretty straight forward, but if you're new to this the code check if your on the page gallery.php or gallery_user.php. Then it uses the thumbnails on the fly mod. Otherwise it uses the original code you have. Matthias, its a nice, stright forward and easy to use contrub you made. Do you have any idea of when you will have an update with subgalleries, voting and commeting approval? Cheers, Fredrik
  23. If you inserted all the modifications for the admin side and uploaded all 3 php-files it should be located at www.YourURL.com/catalog/admin/specials_checkout.php //Fredrik
  24. It was quite some time I did this. But I guess I made a typo in the readme file. Upload the included files into the proper folders in your shop. So the correct readme should say; ============================================ 10. Uploade the files ============================================ catalog/specials_checkout.php catalog/admin/specials_checkout.php catalog/admin/includes/languages/specials_checkout.php //Fredrik
×
×
  • Create New...