-
Posts
160 -
Joined
-
Last visited
About Bigredman74
- Birthday 01/29/1974
Profile Information
-
Real Name
Tim
-
Gender
Male
-
Location
Alabama, USA
- Website
Bigredman74's Achievements
-
[CONTRIBUTION] Authorize Net AIM module
Bigredman74 replied to Vger's topic in General Add-Ons Support
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. -
[CONTRIBUTION] Authorize Net AIM module
Bigredman74 replied to Vger's topic in General Add-Ons Support
I'm getting the same thing after installing the 14 Aug 2008 version. Also, transaction details are not be written to the database. -
Option Type Feature v1.6 (for osc 2.2 MS2)
Bigredman74 replied to a topic in General Add-Ons Support
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 -
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.
-
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
Glad to help. Best of luck with your store. Tim -
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
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 -
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
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"? -
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
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 -
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
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 -
[Contribution] - Search Box Anywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
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 -
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
James, Are you using osCommerces MS2, or an osC variant (i.e. CRE, Zen, etc.)? Tim -
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
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 -
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
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. -
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
Also, don't forget that the default buttons that IE displays will change as the system's theme and color scheme changes. -
[Contribution] CSS Buttons Everywhere
Bigredman74 replied to Bigredman74's topic in General Add-Ons Support
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