Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

royalfunk

Archived
  • Posts

    289
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by royalfunk

  1. I just downloaded the 3.1 version of this Contribution to install on a store. I was disappointed when there were only install instructions for virgin osCommerce stores. Does anyone have step by step changes for the install of this Contribution? The PHP files included in the download were not even commented properly so you could tell where to make changes in the files. I have been going through and just trying to compare the fiels side by side, but as we all know this can easily lead to mistakes. I would hate for others to have to go through this. Thanks... -Aaron
  2. I was able to answer my own post.... I checked this with our server tech and sure enough several PHP modules were missing from the latest security update to the web server. Once re-configured everything went back to normal. If you have this problem, try contacting your host and making sure they enable cURL. -Aaron
  3. All of a sudden I am getting the following error when entering the checkout_shipping.php page. I have not edited the fedex1.php shipping module file, so I don't know why all of a sudden the error is being generated. Any help would be greatly appreciated. Thanks! Fatal error: Call to undefined function: curl_init() in /home/username/public_html/store/includes/modules/shipping/fedex1.php on line 231 -Aaron
  4. How can you make the three new fields in the Purchase Order Contribution required? This is desperately needed. We appreciate your help, thanks.
  5. In the page files in question, and their language file counterparts. This has nothing to do with Contributions though. You may be better off posting this question elsewhere, although I know this has been addressed many times in the forums. Just do a search. Aaron
  6. Just installed the Wishlist 2.2 Contribution that supports product attributes. The previous Wishlist mod worked perfectly, but I am having a coding problem with the infobox on this one. I had fairly heavily modified the original infobox design, so this code is not standard. Could someone take a look and tell me why I am getting the following error message? Thanks! ERROR MESSAGE: Parse error: parse error, unexpected T_STRING in /home/username/public_html/store/includes/boxes/wishlist.php on line 46 <?php /* $Id: wishlist.php,v 1.1 2002/07/01 13:52:20 mattice Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce */ // retreive the wishlist // $wishlist_query = tep_db_query("select * from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id"); $wishlist_query_raw = "select * from " . TABLE_WISHLIST . " WHERE customers_id = $customer_id order by products_name"; $wishlist_query = tep_db_query($wishlist_query_raw); ?> <!-- wishlist //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CUSTOMER_WISHLIST ); new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_WISHLIST, '','NONSSL')); $info_box_contents = array(); if (tep_db_num_rows($wishlist_query)) { if (tep_db_num_rows($wishlist_query) < MAX_DISPLAY_WISHLIST_BOX) { $product_ids = ''; while ($wishlist = tep_db_fetch_array($wishlist_query)) { $product_ids .= $wishlist['products_id'] . ','; } $product_ids = substr($product_ids, 0, -1); $customer_wishlist_string = '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . "\n"; $products_query = tep_db_query("select products_id, products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id in (" . $product_ids . ") and language_id = '" . $languages_id . "' order by products_name"); while ($products = tep_db_fetch_array($products_query)) { $customer_wishlist_string .= ' <tr>' . "\n" . ' <td class="smallText" valign="middle"><span class="menulinkleft"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . tep_get_product_path($products['products_id']) . '&products_id=' . $products['products_id'], 'NONSSL') . '">' . $products['products_name'] . '</a></span></td>' . "\n" . // BoF Modification by: R. Siebert (VINI & VITA) ' <td class="infoBoxContents" align="right" valign="middle" width="24"><a href="' . tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $products['products_id'] . '&rfw=1', 'NONSSL') . '">' . tep_image(DIR_WS_ICONS . 'cart.gif', ICON_CART) . '</a>' . "\n" . '<a href="' . tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=remove_wishlist&pid=' . $products['products_id'], 'NONSSL') . '">' . tep_image(DIR_WS_ICONS . 'nocart.gif', ICON_NO_CART) . '</a></td>' . "\n" . // Begin Wish List Code w/Attributes '<tr><td>' tep_draw_form('product_' . $products['products_id'], tep_href_link(FILENAME_WISHLIST)) . tep_draw_hidden_field('products_id', $products['products_id']) . tep_draw_hidden_field('wishlist_action', 'wishlist_add_cart'); if ($customer_id > 0) { $wishlist_products_attributes_query = tep_db_query("select products_options_id as po, products_options_value_id as pov from " . TABLE_WISHLIST_ATTRIBUTES . " where customers_id='" . $customer_id . "' and products_id = '" . $products['products_id'] . "'"); while ($wishlist_products_attributes = tep_db_fetch_array($wishlist_products_attributes_query)) { // We now populate $id[] with products $customer_wishlist_string .= tep_draw_hidden_field('id[' . $wishlist_products_attributes['po'] . ']', $wishlist_products_attributes['pov']); } } '</a></form>' . tep_draw_separator('pixel_black.gif', '100%', '1') . '</td>' . "\n"; // EoF Modification by: R. Siebert (VINI & VITA) } } else { $customer_wishlist_string = '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . "\n"; $customer_wishlist_string .= '<tr><td class="infoBoxContents">' . sprintf(TEXT_WISHLIST_COUNT, tep_db_num_rows($wishlist_query)) . '</td></tr>' . "\n"; } } else { $customer_wishlist_string = '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . "\n"; $customer_wishlist_string .= '<tr><td class="infoBoxContents">' . BOX_WISHLIST_EMPTY . '</td></tr>' . "\n"; } $customer_wishlist_string .= '<tr><td colspan="3" align="left" class="smallText"><br><a href="' . tep_href_link(FILENAME_WISHLIST, '','NONSSL') . '">' . BOX_LINK_WISHLIST . '</a></td></tr>' . "\n"; // $customer_wishlist_string .= '<tr><td colspan="3" align="right" class="smallText"><a href="javascript:popupWindowWishlist(\'' . tep_href_link('popup_' . FILENAME_WISHLIST_HELP, '','NONSSL') . '\')"><u>'. BOX_HEADING_CUSTOMER_WISHLIST . ' Help</u> [?]</a></td></tr>' . "\n"; // Popup link $customer_wishlist_string .= '<tr><td colspan="3" align="left" class="smallText"><a href="' . tep_href_link(FILENAME_WISHLIST_HELP, '','NONSSL') . '">' . BOX_HEADING_CUSTOMER_WISHLIST_HELP . '</a></td></tr>' . "\n"; // Normal link $customer_wishlist_string .= '</table>'; $info_box_contents[] = array('align' => 'left', 'text' => $customer_wishlist_string); new infoBox($info_box_contents); ?> </td> </tr> <!-- wishlist_eof //-->
  7. Can anyone take a quick look at my catalog/admin/orders.php file? The install instructions result in an error when I make the required code changes. This is the error I am getting when I make the exact code changes that the install file requires... Parse error: parse error, unexpected T_STRING, expecting T_CASE or T_DEFAULT or '}' in /home/username/public_html/store/admin/orders.php on line 46 I have been banging my head on this for about 2 weeks now and cannot figure out what is wrong. Thanks! -Aaron
  8. I found that what happened in my case was the database table "configuration" had dropped the variable for product descriptions. I added it back in again and all went back to normal. Try checking in to that. Aaron
  9. Wondering if anyone else has run across this problem...and if you have an answer PLEASE let me know. This is the only thing holding up a site from going live. THANKS! When installing the PayPal IPN step on checkout.success.php I get this error: Here is the code change I am making, and this is based exactly on what it says in the install file.... Change: // if the customer is not logged on, redirect them to the shopping cart page if (!tep_session_is_registered('customer_id')) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) { $notify_string = 'action=notify&'; $notify = $HTTP_POST_VARS['notify']; if (!is_array($notify)) $notify = array($notify); for ($i=0, $n=sizeof($notify); $i<$n; $i++) { $notify_string .= 'notify[]=' . $notify[$i] . '&'; } if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1); ?????tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); ???} To: // if the customer is not logged on, redirect them to the shopping cart page if (!tep_session_is_registered('customer_id')) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) { $notify_string = 'action=notify&'; $notify = $HTTP_POST_VARS['notify']; if (!is_array($notify)) $notify = array($notify); for ($i=0, $n=sizeof($notify); $i<$n; $i++) { $notify_string .= 'notify[]=' . $notify[$i] . '&'; } if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1); //begin PayPal_Shopping_Cart_IPN ?????tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); ???} else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { ?????PayPal_osC::reset_checkout_cart_session(); ???} //end PayPal_Shopping_Cart_IPN
  10. The Poll Booth Contribution did not have the standard osCommerce on/off toggle (red light - green light) for two columns in Admin where there should be a toggle. There is a column for Public (Private or Public) and another column for Open (Open or Closed). I have modified the code so that the columns now show the Active / Inactive images, and clicking the images correctly modifies the database. The only problem is that the status images displayed on screen do not change to correctly display the status of the poll. Below is the code from the page for one of the columns. Any help? <?php if ($polls['poll_type'] == '0') { echo tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', 'Active', 10, 10) . ' <a href="' . tep_href_link(FILENAME_POLLS, tep_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=poll_type&info=' . $polls['pollID'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', 'Set Inactive', 10, 10) . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_POLLS, tep_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=poll_type&info=' . $polls['pollID'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', 'Set Active', 10, 10) . '</a> ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', 'Inactive', 10, 10); } ?>
  11. The Poll Booth Contribution did not have the standard osCommerce on/off toggle (red light - green light) for two columns where there should be a toggle. There is a column for poll_type (Private or Public) and another column for poll_open (Open or Closed). I have modified the code so that the columns now show the Active / Inactive images, and clicking the images correctl modifies the database. The only problem is that the status images displayed on screen do not change to correctly display the status of the poll. Below is the code from the page for one of the columns. Any help? <?php if ($polls['poll_type'] == '0') { echo tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', 'Active', 10, 10) . ' <a href="' . tep_href_link(FILENAME_POLLS, tep_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=poll_type&info=' . $polls['pollID'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', 'Set Inactive', 10, 10) . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_POLLS, tep_get_all_get_params(array('info', 'action', 'x', 'y')) . 'action=poll_type&info=' . $polls['pollID'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', 'Set Active', 10, 10) . '</a> ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', 'Inactive', 10, 10); } ?>
  12. Just installed the PayPal IPN 2.8 Contribution and I am getting the following error: Fatal error: Call to undefined function: ??require() in /home/username/public_html/catalog/includes/application_top.php on line 111 The code appears to be OK and it is entered exactly as it says from the install file. Any help? Thanks, Aaron
  13. Look at the post right before the one you just submitted.
  14. Is there a Contribution in which you could set up your site to not necessarily sell products, but rather, sell memberships. I.E. it would cost to create an account? -Aaron
  15. Thanks, I was planning on installing that Contribution but have not actually done it yet. Hopefully you are right and this problem will be solved. Thanks again. -Aaron
  16. Did anyone ever come up with a solution for this? -Aaron
  17. Thanks Pharkie! For the record, yes your solution worked. If I would have focused on editing xsell_products.php instead of product_info.php I may have found that myself, but regardless, thanks!! For anyone else looking for the answer to this question simply change: if ($num_products_xsell >= MIN_DISPLAY_ALSO_PURCHASED) { to: if ($num_products_xsell >= 1) { Aaron
  18. The default way osCOmmerce is setup, when you opt to pay wit PayPal, you get redirected to the PayPal site to fill in your info such as name, address, etc. Is there a way to get osCommerce to carry the info from your store account to PayPal when you are placing an order? This would eliminate the need for the customer to re-enter all that information. Thanks! -Aaron
  19. Anyone know how I can add some kind of "if" clause into the product_info.php page so the XSell table does not show up unless there are items specified in the database for the particular product being viewed? As it is now, every product has the XSell table on it, even if there are no products in the XSell database table. It just displays the header and an empty content area. Thanks in advance!! -Aaron
  20. Quite some time back I installed this Contribution for displaying the product description in the product listing module / page. It has worked perfectly fine for almost a year now, and all of a sudden it is not displaying. The row where it used to be is still there, but it's empty. The products description is still present in the database and all of the configurations are in place correctly. Anyone have an idea of why it would not be loaded into the product listing anymore? Thanks, Aaron
  21. I still have two questions that I've never seen addressed.... 1) Is there a way to have all of the available customer pricing levels show up at the bottm in the Admin Edit Account page other than having to create a fake customer that has each level? In other words, if I want "Wholesale" to show up in the customer price levels list at the bottom of this page, I have to create a fake customer with "Wholesale" pricing. I don't like that at all. 2) Has anyone figured out yet how to make this list of price levels a pull down menu instead of just a text list that you have to exactly copy and paste from? -Aaron
  22. Thanks for the heads up. I wasn't able to find a support thread for this COntribution. Could you possibly link me to the page that has the answer to my question? Thanks! -Aaron
  23. I have installed the Batch Order Center in Admin for making PDF reports of orders. The Contribution is excellent! The only thing is that when I first go to that page, I get an SQL error at the bottom of the screen: It doesn't appear to keep anything from working, but as we all know - error messages are not a good thing to repeatedly see, especially for customers. Any help would be greatly appreciated. Thanks! -Aaron
  24. I just installed this Contrib and it's nice. I have noticed though that it is not compatible with the Separate Pricing Contribution. I know not everyone uses the Separate Pricing, but many people do (including me). In turn, this makes the prices shown in the Recover Cart Tool incorrect because it is getting pricing from the PRODUCTS table rather than PRODUCTS_GROUPS. This means that the price shown for that customer's cart is at each product's List Price, and not their actual cost. Could someone make an attempt at rewriting some of the code for this Contribution so it is compatible with the Separate Pricing Contribution? It would be a big help. Thanks -Aaron
×
×
  • Create New...