Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Frank Heinen

Archived
  • Posts

    195
  • Joined

  • Last visited

About Frank Heinen

  • Birthday 06/27/1977

Profile Information

  • Real Name
    Frank Heinen
  • Gender
    Male
  • Location
    The Netherlands (Aalten)
  • Interests
    Science, complex process control, e-commerce.
  • Website

Recent Profile Visitors

27,278 profile views

Frank Heinen's Achievements

  1. Another problem, in resizing images who are smaller then the requested image size. Line 126 of includes/classes/oscthumb.php if ($width > $image_size[0] || $height > $image_size[1]) { should be: if ($width > $image_size[0] && $height > $image_size[1]) { Explaination: If an image is smaller then the requested width but larger then the requested image height then it does need to be resized and limited to the requested limits (note the height and width are maximum width and height). As it is now then it doesn't resize it. Example: Image height: 600 pixels Image width: 100 pixels Requested height: 120 pixels Requested width: 120 pixels Now it need to be resized to: height: 120 pixels width: 20 pixels At the moment it doesn't resized it and shows the 600 x 100 pixel image.
  2. Line 232 of includes/classes/oscthumb.php is setting the wrong directory link: if ($image_watermark) { $params .= "&fltr[]=wmi|watermarks/".WATERMARK_IMAGE."|".WATERMARK_IMAGE_POSITION."|".WATERMARK_IMAGE_OPACITY."|".WATERMARK_IMAGE_MARGIN; } For default directory it should be: if ($image_watermark) { $params .= "&fltr[]=wmi|phpThumb/watermarks/".WATERMARK_IMAGE."|".WATERMARK_IMAGE_POSITION."|".WATERMARK_IMAGE_OPACITY."|".WATERMARK_IMAGE_MARGIN; } For the next version a watermark directory definition (adjustable from the admin or defined in the config.php) would better.
  3. Sorry that I left the sort option on ON.... The sort option now works. Although that there are still problems in this module. I'm working on an update....
  4. Someone should really really update all varnames. Options_id and option_id, options_values_id and options_value_id etc etc etc are easy to look over problems and where mostly the problems in V2.3 beta!!!
  5. Take the one from Berkendam. Thats the last & the best one!
  6. Regarding the file permissions: Is there some kind of way to change all files to 777 before installing CI and CIPs and when you're done installing modules then change the file permissions back to the original rights?
  7. This is a very nice contrib but the shipment selection doesn't work in all casus. The old version V1.5 does. I my case the Ship2Pay doesn't show TPG Post (dutch shipment methode). This problem has been noted by others on the dutch forums of osCommerce so it's not something I did wrong. This code who responceble for this is: admin/includes/classes/shipping // class constructor function shipping_s2p() { global $shipping_classes, $quotes; for ($i=0, $n=sizeof($quotes); $i<$n; $i++) { for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) { $this->modules[] = array('class' => $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], 'file' => $quotes[$i]['id'] . '.php'); } } } I hope you can resolve the problem with this info.
  8. Anybody have a template working with a € sign?
  9. Thanks allot Amanda, you saved my weekend!! I hope I can help you (and others on this forum) someday....
  10. I'm lost :blink: I really don't understand it anymore..... The following 3 pieces of code should contain the problem: product_info.php: buy (single product) <tr><td width="6"></td><td class=ps2 align=right><?php echo $products_price; ?></td><td align=right width=135><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_BUY_NOW); ?></td><td width="10"></td></tr> 2gether.php: buy now button (2 gether special) echo tep_draw_hidden_field('products_id', $product_a['products_id']) . tep_draw_hidden_field('buy_tinn_add', $product_b['products_id']) . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_BUY2GETHER); application_top.php: add product to cart case 'add_product' : if (isset($_POST['products_id']) && is_numeric($_POST['products_id'])) { if (tep_get_products_stock($_POST['products_id']) > 0) { $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $_POST['id']))+1, $_POST['id']); } } if (isset($_POST['buy_tinn_add']) && is_numeric($_POST['buy_tinn_add'])) { if (tep_get_products_stock($_POST['buy_tinn_add']) > 0) { $cart->add_cart($_POST['buy_tinn_add'], $cart->get_quantity(tep_get_uprid($_POST['buy_tinn_add'], $_POST['id']))+1, $_POST['id']); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; If I disable or the button in the 2gether.php file or the second if (buy_tinn_add) the add to cart from a single product works. If I don't disable any of these code then it adds allways the 2gether special offer (2 products) to the cart....
  11. Thanks for the trust in my programming skills. ;) I've been looking at it for 4 hours now. I really don't know why this occurs, hoped someone had solved the same problem... I'll go try again tonight.
  12. Most of the problems are solved now. Its almost working but I have one problem left: The 2gether discount works but if I now order the (single) product on the page I get the 2gether products in my cart..... What could be wrong? Where should I look?
  13. Does somebody have a working version of this contrib with all the problems mentioned (and solved) in this topic solved??
  14. This is an error I get: http://sklep.vico.pl/prduct_list.php?row=0...=0&currency=PLN Event thread: click Error: name: ReferenceError message: Security error: attempted to read protected variable This should be in this code I think (line 120 & 121 of prductlist.php): document.write ("<tr onclick=\"parent.add_product('"+pnum+"','"+pdesc+"','"+pprice+"','"+precid+"','"+row+"');\" onmouseover=\"this.style.backgroundColor='#86A5D2';\" onmouseout=\"this.style.backgroundColor='';\">" +"<td>"+pdesc2+"</td><td align='right' width=80> "+currency_left+" "+pprice+" "+currency_right+"</td></tr>"); Only can't find the solution.... Any javascript specialist in da house?
×
×
  • Create New...