Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Bigredman74

Pioneers
  • Posts

    160
  • Joined

  • Last visited

Everything posted by Bigredman74

  1. I got it to work by changing: 'x_delim_char' => '|', to 'x_delim_char' => '\,', and $this->response = explode('|', $response); to $this->response = explode('\,', $response); Cards are processed correctly and transaction details are in the database.
  2. I'm getting the same thing after installing the 14 Aug 2008 version. Also, transaction details are not be written to the database.
  3. Hello all! I am using the package: Product Attributes - Option Type Feature v. 2.0 (manual install) by jsruok dated 2 Jul 2007 In the instructions for the file catalog/includes/functions/general.php it calls to make the change listed below. However, this change results in a MySQL error, "1064 - You have an error in your SQL syntax", whenever a comma is used in the textarea box and the product is added to the cart. I changed the code back to the original and the product is successfully added to the cart with the comma. My questions are this: Why doesn't the new function work with a comma in the textarea box and what kind of problems will occur using the original code with this contribution? Thanks in advance for your thoughts and comments. Tim FIND: (around line 970) //// // Return a product ID with attributes function tep_get_uprid($prid, $params) { if (is_numeric($prid)) { $uprid = $prid; if (is_array($params) && (sizeof($params) > 0)) { $attributes_check = true; $attributes_ids = ''; reset($params); while (list($option, $value) = each($params)) { if (is_numeric($option) && is_numeric($value)) { $attributes_ids .= '{' . (int)$option . '}' . (int)$value; } else { $attributes_check = false; break; } } if ($attributes_check == true) { $uprid .= $attributes_ids; } } } else { $uprid = tep_get_prid($prid); if (is_numeric($uprid)) { if (strpos($prid, '{') !== false) { $attributes_check = true; $attributes_ids = ''; // strpos()+1 to remove up to and including the first { which would create an empty array element in explode() $attributes = explode('{', substr($prid, strpos($prid, '{')+1)); for ($i=0, $n=sizeof($attributes); $i<$n; $i++) { $pair = explode('}', $attributes[$i]); if (is_numeric($pair[0]) && is_numeric($pair[1])) { $attributes_ids .= '{' . (int)$pair[0] . '}' . (int)$pair[1]; } else { $attributes_check = false; break; } } if ($attributes_check == true) { $uprid .= $attributes_ids; } } } else { return false; } } return $uprid; } REPLACE with // OTF contrib begins //// // Return a product ID with attributes //function tep_get_uprid($prid, $params) { // if (is_numeric($prid)) { // $uprid = $prid; // // if (is_array($params) && (sizeof($params) > 0)) { // $attributes_check = true; // $attributes_ids = ''; // // reset($params); // while (list($option, $value) = each($params)) { // if (is_numeric($option) && is_numeric($value)) { // $attributes_ids .= '{' . (int)$option . '}' . (int)$value; // } else { // $attributes_check = false; // break; // } // } // // if ($attributes_check == true) { // $uprid .= $attributes_ids; // } // } // } else { // $uprid = tep_get_prid($prid); // // if (is_numeric($uprid)) { // if (strpos($prid, '{') !== false) { // $attributes_check = true; // $attributes_ids = ''; // // // strpos()+1 to remove up to and including the first { which would create an empty array element in explode() // $attributes = explode('{', substr($prid, strpos($prid, '{')+1)); // // for ($i=0, $n=sizeof($attributes); $i<$n; $i++) { // $pair = explode('}', $attributes[$i]); // // if (is_numeric($pair[0]) && is_numeric($pair[1])) { // $attributes_ids .= '{' . (int)$pair[0] . '}' . (int)$pair[1]; // } else { // $attributes_check = false; // break; // } // } // // if ($attributes_check == true) { // $uprid .= $attributes_ids; // } // } // } else { // return false; // } // } // // return $uprid; //} //// // Return a product ID with attributes function tep_get_uprid($prid, $params) { $uprid = $prid; if ( (is_array($params)) && (!strstr($prid, '{')) ) { while (list($option, $value) = each($params)) { //CLR 030714 Add processing around $value. This is needed for text attributes. $uprid = $uprid . '{' . $option . '}' . htmlspecialchars(stripslashes(trim($value)), ENT_QUOTES); } //CLR 030228 Add else stmt to process product ids passed in by other routines. } else { $uprid = htmlspecialchars(stripslashes($uprid), ENT_QUOTES); } return $uprid; } // OTF contrib ends
  4. This comes from the contribution Administration Access Level Accounts 2.0 (http://www.oscommerce.com/community/contributions,1359). You will need to go the File Access page to assign newly added admin pages to a group (category box) which will allow them to be viewable.
  5. Glad to help. Best of luck with your store. Tim
  6. In your code above, change "tep_image_button" to "tep_image_button_nocss" In the file /catalog/includes/functions/html_output.php add the following before the closing ?> function tep_image_button_nocss($image, $alt = '', $parameters = '') { global $language; return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters); } It's just the original function renamed so you can use it whenever you want the image to appear. I haven't tried this myself, so let me know how it works. Best Regards, Tim
  7. On the product_info.php page, the default is text, "Click to enlarge", not an image or button. Is this the page in reference, and if so, have you modified this page to display an image button for "Click to enlarge"?
  8. Hi James, Sorry for the delay in responding. In your stylesheet.css the closing } for a.textbox:hover is missing. Add the closing and let me know if it works or not. Best of luck, Tim
  9. Hi James, I've seen this before. First, make sure you are using Update 3. Then recheck the install for html_output.php and the stylesheet. If you think it is installed correctly and it's still not working, either post or email your catalog/includes/functions/html_output.php and catalog/stylesheet.css files. All the best, Tim
  10. Hi Simone, Open the file /catalog/includes/header.php and find the following around line 64: <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> You can insert the Search Box Anywhere code after <td align="right" class="headerNavigation"> from above and it should give you the effect you desire. Let me know if you have any problems. Tim
  11. James, Are you using osCommerces MS2, or an osC variant (i.e. CRE, Zen, etc.)? Tim
  12. Hi James, It sounds like you need to check the file "catalog/includes/functions/html_output.php" for proper installation. Look closely at Steps 2 & 3; these are the functions that will create the CSS Buttons. Let me know how it works out. All the best, Tim
  13. Hmm, no it means it's the weekend! Your original post is less than 24 hours old. You sound very impatient and rude for someone who is asking for assistance.
  14. Also, don't forget that the default buttons that IE displays will change as the system's theme and color scheme changes.
  15. Hi Paul, osCommerce uses a combination of system buttons and images. When you comment out the .cssbutton part of the style sheet you will see the alt text for the images or the un-styled system buttons that the CSS Buttons Everywhere replaces. To achieve the look you desire you will need to either change the way the buttons looks via the style sheet or go with image based buttons. Good luck. All the best, Tim
  16. I have been using the Spaw Editor, http://www.oscommerce.com/community/contributions,2963 ( http://www.solmetra.com/en/disp.php/en_pro.../en_spaw_about/ ), with no problems. The only problem is that it turns every text area field into an HTML editor. This can be fixed with some mods to the html_output.php file. Good luck.
  17. Yes they are losing the contents of their carts too. I think it has do the with the ? in the URL, i.e. /info_pages?page_id=20. Info pages that are referenced this way are causing my customers to lose cart contents and get logged out at the same time. However, I can take the file info_pages.php, rename it to say shipping.php, and set p.pages_id = $infopageid around line 32 to p.pages_id = 20 and all is fine. Anyway, I'm looking forward to the next release. Maybe the SEO URLs will fix this. Thanks for taking charge on this project. All the best, Tim.
  18. SEO, great. I'm looking forward to the next release. I'm having a problem with this contrib and wondering if anyone else is experencing it. If a customer is logged in and then clicks a link to an info page, they are then logged out. Does anyone else have this issue?
  19. Search Box Anywhere - Update 3 This package fixes a problem with the code: a customer with items in their cart could lose the contents of their cart after performing a search and adding items to their cart. Download the update at http://www.oscommerce.com/community/contributions,3295.
  20. There are several ways to do this. The easiest way would be to display the Search Box Everywhere code after your desired text. For example, "Search<br>(Search Box code)". This would display "Search" on top of the search box. You could also use tables. Good luck and let me know if you need more help.
  21. Hi Ian, The following will display the search box with the drop down categories and search button under it. You can change the width of the search box by changing BOX_WIDTH+10. <?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH+10) . 'px"') . '<br>' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => BOX_ALL_CATEGORIES)))) . ' ' . '<input type="submit" name="Submit" value="Search">' . '</form>'; ?> Good luck and let me know if need anything else. Tim
  22. Hi Michelle, This, http://www.pisosenmalaga.com.es/, looks like the Advanced Search feature that is stock in osCommerce. It's found in advanced_search.php. It looks as though they just took code from advanced_search.php and put it on their index.php page. Give it a try and let me know how it works out for you. All the best, Tim Hi Brett, I'm glad that you found Search Box Anywhere useful and thanks for letting me know. Tim
  23. In catalog/includes/languages/english.php (and any other languages you have) change: define('TEXT_CALL_FOR_PRICE', 'Call for Price!');// EASY CALL FOR PRICE v1.0 to: define ('TEXT_CALL_FOR_PRICE', '<a href="contact_us.php">Call for Price!');// EASY CALL FOR PRICE v1.0 All the best, Tim
  24. Thanks for the suggestion, but when I change the <div> tag to a <span> in the function, the buttons do not display correctly in Firefox and Opera, IE looks the same as before. I tried it on both a stock site and a modded site, same problem. What other changes did you make to make the <span> tag work for all browers?
  25. Compatibility Hack for the Credit Class & Gift Voucher contribution. In the file catalog/includes/modules/order_total/ot_coupon.php and ot_gv.php. FIND: $image_submit = '<input type="image" name="submit_redeem" onClick="submitFunction()" src="' . DIR_WS_LANGUAGES . $language . '/images/buttons/button_redeem.gif" border="0" alt="' . IMAGE_REDEEM_VOUCHER . '" title = "' . IMAGE_REDEEM_VOUCHER . '">'; REPLACE WITH: // BEGIN: CSS Buttons Everywhere Compatibility Hack $image_submit = '<input type="submit" class="cssButton" value="' . tep_output_string(TEXT_REDEEM_VOUCHER) . '" onClick="submitFunction()">'; // END: CSS Buttons Everywhere Compatibility Hack In the file catalog/includes/languages/english.php before the ?> at the end of the file, ADD: define('TEXT_REDEEM_VOUCHER', 'Redeem'); This hack was tested on a heavily modded site with Firefox, IE, and Opera. Let me know how it works on your site.
×
×
  • Create New...