Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

pdavis

Archived
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Real Name
    Phil Davis
  • Location
    Nashville, TN

pdavis's Achievements

  1. I am willing to help out in any way I can. I need the payflow module up and working by early next week so it looks like I may have to write my own module. I hate reinvinting the wheel so if I can help out in any way please let me know.
  2. I've been working with osCommerce for a couple of weeks now and have installed it and added many of the great contributions in the contribution section. I've found a couple of areas that I needed to customize as well. What I don't quite understand is, do the contributions eventually get rolled into the main source tree of osCommerce? I know that not all could as they may be specific to someones needs, but many are fairly general. Is there a list that is maintained of contributions that are slated to be rolled into the main source distribution? Also, is there an "unofficial" distro that someone maintains that contains many of the high profile contributions? This would save me a lot of time and let me focus on enhancing the product rather than patching it to meet my needs. Thanks
  3. Not sure if I am using an older version (I downloaded it just a couple of weeks ago) or what but I had to modify the code a bit to get it to work. Basically the global table names didn't exist in my version. <?php if ($cPath) { if (!ereg('_', $cPath)) { $cPath_array = array($cPath); } $cPath_new = ''; for($i=0; $i<sizeof($cPath_array); $i++) { if ($cPath_new == '') { $cPath_new .= $cPath_array[$i]; } else { $cPath_new .= '_' . $cPath_array[$i]; } $categories_query = tep_db_query("select categories_name from categories where categories_id = '" . $cPath_array[$i] . "'"); $categories = tep_db_fetch_array($categories_query); echo $categories['categories_name']; } } elseif ($HTTP_GET_VARS['manufacturers_id']) { $manufacturers_query = tep_db_query("select manufacturers_name from MANUFACTURERS where manufacturers_id = '" . $HTTP_GET_VARS['manufacturers_id'] . "'"); $manufacturers = tep_db_fetch_array($manufacturers_query); echo $manufacturers['manufacturers_name']; } if ($HTTP_GET_VARS['products_id']) { $model = tep_db_query("select products_model from PRODUCTS where products_id = '" . $HTTP_GET_VARS['products_id'] . "'"); $model_values = tep_db_fetch_array($model); echo $model_values['products_model']; } if ($location) { echo $location; } ?> I also had some catgories without images specified so I did this right before the image was to be printed out... <?php // Don't show image if it doesn't exist!!! if ($image != DIR_WS_IMAGES && $image != DIR_WS_IMAGES . "none") { $image = tep_image($image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); } else { $image = ""; } ?> And replaced this... <td align="right" nowrap> <? echo tep_image($image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> </td> with this... <td align="right" nowrap> <? echo $image ?> </td>
×
×
  • Create New...