Jump to content

ishtek

Members
  • Content count

    8
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    J
  1. ishtek

    [contribution] Total B2B

    Nevermind. I tried it and it worked. Thanks! This was a HUGE help.
  2. ishtek

    [contribution] Total B2B

    Thanks for the info. This should help. Would I make the change in all files or just the product_info.php file?
  3. ishtek

    [contribution] Total B2B

    Hi. I need some help sorting out a problem integrating "Bundled Products" with TotalB2B. I have TotalB2B working fine. After adding the code to display the bundle price I get the following error when viewing a bundle in the store. Single products appear to work fine. >>>>>>>>>>>>>>>> Warning: Missing argument 3 for display_price() in /home2/public_html/catalog/includes/classes/currencies.php on line 72 Warning: Missing argument 3 for display_price() in /home2/public_html/catalog/includes/classes/currencies.php on line 72 This Bundle contains the following items: Individual part prices: $0.00 You save $0.00 >>>>>>>>>>>>>> I have 2 products that make up this bundle. It is erroring trying to display the line items. I know there is a problem and it is in the catalog/product_info.php. I suspect it is not passing parameters to currrency.php properly. (argument 3 which I think is $products_tax) Not being a php programmer, I can't seem to figure out what is broken or missing. The code from the section in product_info.php was modified as follows. I copied into this post an excerpt from the installation document that described what to change and where: >>>>>>>>>>>> --In catalog/product_info.php 120 <p><?php echo stripslashes($product_info['products_description']); ?></p> --after line 120 insert: <!-- start bundle At the beginning of Bundle Mod Addition 21.01.2005--> <?php if (tep_not_null($product_info['products_bundle'])) { ?> <table border="0" width="65%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" colspan="3"> <?php if ($product_info['products_bundle'] == "yes") { $products_bundle = $product_info['products_bundle']; echo TEXT_PRODUCTS_BY_BUNDLE . "</td></tr>"; $bundle_query = tep_db_query(" SELECT pd.products_name, pb.*, p.products_bundle, p.products_id, p.products_price, p.products_image FROM products p INNER JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd ON p.products_id=pd.products_id INNER JOIN " . TABLE_PRODUCTS_BUNDLES . " pb ON pb.subproduct_id=pd.products_id WHERE pb.bundle_id = " . $HTTP_GET_VARS['products_id'] . " and language_id = '" . (int)$languages_id . "'"); while ($bundle_data = tep_db_fetch_array($bundle_query)) { if ($bundle_data['products_bundle'] == "yes") { // uncomment the following line to display subproduct qty echo "<br>» <b>" . $bundle_data['subproduct_qty'] . " x " . $bundle_data['products_name'] . "</b>"; echo "<br>» <b> " . $bundle_data['products_name'] . "</b>"; $bundle_query_nested = tep_db_query(" SELECT pd.products_name, pb.*, p.products_bundle, p.products_id, p.products_price FROM products p INNER JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd ON p.products_id=pd.products_id INNER JOIN " . TABLE_PRODUCTS_BUNDLES . " pb ON pb.subproduct_id=pd.products_id WHERE pb.bundle_id = " . $bundle_data['products_id'] . " and language_id = '" . (int)$languages_id . "'"); /* $bundle_query_nested = tep_db_query("select pb.subproduct_id, pb.subproduct_qty, p.products_model, p.products_quantity, p.products_bundle, p.products_price, p.products_tax_class_id from " . TABLE_PRODUCTS_BUNDLES . " pb LEFT JOIN " . TABLE_PRODUCTS . " p ON p.products_id=pb.subproduct_id where pb.bundle_id = '" . $bundle_data['subproduct_id'] . "'"); */ while ($bundle_data_nested = tep_db_fetch_array($bundle_query_nested)) { // uncomment the following line to display subproduct qty echo "<br><i> " . $bundle_data_nested['subproduct_qty'] . " x " . $bundle_data_nested['products_name'] . "</i>"; echo "<br><i> " . $bundle_data_nested['products_name'] . "</i>"; $bundle_sum += $bundle_data_nested['products_price']*$bundle_data_nested['subproduct_qty']; } } else { // uncomment the following line to display subproduct qty echo "<tr><td class=main valign=top>" ; echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $bundle_data['products_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $bundle_data['products_image'], $bundle_data['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '</a>' ; echo "</td><td class=main >» <b>" . $bundle_data['subproduct_qty'] . " x " . $bundle_data['products_name'] . '</b> </td><td align = right class=main><b> ' . $currencies->display_price($bundle_data['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . "</b></td></tr>"; // echo "<br>» <b> " . $bundle_data['products_name'] . "</b>"; $bundle_sum += $bundle_data['products_price']*$bundle_data['subproduct_qty']; } } $bundle_saving = $bundle_sum - $product_info['products_price']; $bundle_sum = $currencies->display_price($bundle_sum, tep_get_tax_rate($product_info['products_tax_class_id'])); $bundle_saving = $currencies->display_price($bundle_saving, tep_get_tax_rate($product_info['products_tax_class_id'])); // comment out the following line to hide the "saving" text echo "<tr><td colspan=3 class=main><p><b>" . TEXT_RATE_COSTS . ' ' . $bundle_sum . '</b></td></tr><tr><td class=main colspan=3><font color="red"><b>' . TEXT_IT_SAVE . ' ' . $bundle_saving . '</font></b>'; } ?> </td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table> <?php } ?> <!-- end bundle End of Bundle Mod Addition 21.01.2005--> ---------------------------------------------- 72 $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); --replace line 72 with: $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, p.products_bundle from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); ****************************************************** Any help would surely be appreciated.
  4. ishtek

    Automated FedEx Labels

    I just finished installing and debugging 1.07 I already have a working fedex realtime quotes install. I currently do labels online from fedex.com so that part works. However, when I try and generate a label from the contrib I get the following: >>This transaction could not be completed. Please note the error message below. >>ERROR: FedEx Return Error 0911 : Resources are unavailable to service your >>request. Anyone have any ideas on this? Seems like a fed ex problem.
  5. Nope no apostrophies. I had a problem with those that stopped things from importing but that was for other products that seem to be fine now. What flags the products as new vs updates?
  6. What would cause Easypopulate to continue adding existing products as new products? I have about 300 products. All products but about 15 will update properly. The 15 in question always get added as a new products which creates duplicate entries. The 15 are from the same manufacturer so there must be a common element for them that caused this but I can't seem to figure out what triggers a new product to track it down. Thanks for the help and for a great contribution!
  7. Just installed into my working OSC site. I can export fine and open files in excel but when I try and import I get a ********************** Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@<mydomain>.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. *********************** I have tried just adding a few things on one line... same problem. Tried different delimiters and checked my temp dir permissions. They are fine. Server error log only shows that I made a request. I don't have access to the mysql logs but OSC works fine as does the rest of my site. This isn't difficult, I'm just stumped as to what may be causing the error.
  8. ishtek

    Linkpoint / Cardservice

    I installed the latest OSCommerce and it seems to work fine. The next step was to install support for Linkpoint/cardservice (my processor), using the contribution for said proocessor. all seems to work until I try and update and an address or checkout. then I get the following: Warning: Cannot modify header information - headers already sent by (output started at /home2/public_html/store/includes/application_top.php:512) in /home2/public_html/store/includes/functions/general.php on line 29 I can't seem to find a reference to this particular issue anywhere. i have seen similar that say to reinstall and I have and the same error occurs. Not sure exactly where to look or what info I should post to help in troubleshooting. Any help sure would be appreciated. Thanks Ish
×