Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

LiquidGfx

Members
  • Content count

    12
  • Joined

  • Last visited

1 Follower

About LiquidGfx

  • Birthday 03/22/1977

Profile Information

  1. To make Ultimate SEO URLS and RMA Returns work together in harmony :D Here is a quick fix to make it display the RMA number on the confirmation page. in /catalog/includes/functions/html_output.php Below this: return $link; } } Add this: (you can see it has _org appended to the function with will make it act as a new function) // The HTML href link wrapper function function tep_href_link_org($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('<br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('<br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . $_sid; } return $link; } Then in /catalog/return_product.php Find and replace all tep_href_link with tep_href_link_org BACK UP FILES BEFORE EDITING! THATS A #1 RULE! If anyone knows why Refund Method: will not change when updating it in the admin of RMA Returns please let me know, it's driving me nuts I have installed the contrib 3 times freshly and I have read this WHOLE! thread and only see one mention with NO answer
  2. LiquidGfx

    [Contribution]Paypal IPN - Devosc

    Hello, (Yes I searched) I have installed the PAYPAL_Shopping_Cart_IPN and it works great, But when I get the emails they are all jumbled up together. No matter if I have Plain Text Turned on or HTML in osCommerce. It seems most emails I get are fine, but the ones from IPN (anything to do with orders) are all jumbled up and you simple can't make. It looks like the formatting is ignored when the email is sent. Example: Hello--------this---------What---amount------are---- ----------you-----doing-------this---is-----fun----- $123.00------Dollar----Paypal------ This is from the Debug file (one of the emails that looks terrible) function info($html = false) { $debug_string = ''; $lf = "\r\n"; $debug = $this->info; reset($debug); $nMsgs = count($debug); for ($i=0; $i<$nMsgs; $i++) { $debug_string .= EMAIL_SEPARATOR.$lf.$debug[$i]['subject'].$lf.EMAIL_SEPARATOR.$lf.$debug[$i]['msg'].$lf.$lf; } return ($html === true) ? str_replace("\n", "\n<br />", $debug_string) : $debug_string; } function sendEmail() { if(count($this->info) > 0) { $to_name = ''; $to_address = $this->email_address; $subject = IPN_PAYMENT_MODULE_NAME; $this->add(IPN_EMAIL,IPN_EMAIL_MSG); $msg = strip_tags(nl2br($this->info())); $from_name = IPN_PAYMENT_MODULE_NAME; $from_address = strtolower(trim($this->email_address)); tep_mail($to_name, $to_address, $subject, $msg, $from_name, $from_address); } } }//end class Thanks!!! If there is a quick fix already posted that I missed please link me to it :D
  3. YAY! Problem: Cannot redeclare tep_db_connect() Blah Blah Blah in database.php on Line 13 Fix: Open sitemaps.index.php and comment out require_once(DIR_WS_FUNCTIONS . 'database.php'); require_once(DIR_WS_FUNCTIONS . 'general.php'); include_once(DIR_WS_CLASSES . 'language.php'); Also in googlesitemap.php change what is after $url = to urlencode((HTTP_CATALOG_SERVER) . '/sitemapindex.xml'); So that you can ping Google and not get a BAD 400 Request Then login and create you a XML Site amp and ping Google to let it know it's ready
  4. LiquidGfx

    [Contribution] Pollbooth v2.0

    Don't know if anyone knows this but here....very easy to fix!!!!! Find this snippet of code in pollbooth.php........... ------------------------------------------------------------------------------- } while ($comments = tep_db_fetch_array($comments_query)) { if ($comments['customer_id'] != '0') { $name_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '". $comments['customer_id'] . "'"); $name = tep_db_fetch_array($name_query); $comment_name = $name['customers_firstname'] . " " . $name['customers_lastname']; } else { $comment_name = $comments['name']; } $post_details = _COMMENTS_BY . $comment_name . '['. $comments['host_name'] . ']' . _COMMENTS_ON . $comments['date']; ?> <tr><td class="main" colspan="2"><b><?php echo $post_details; ?></b></td></tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5'); ?></td> <tr><td class="main" colspan="2"><?php echo htmlspecialchars($comments['comment']); ?></td></tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5'); ?></td> <?php } --------------------------------------------------------- and change this line <?php echo htmlspecialchars($comments['comment']); ?> to: <?php echo htmlspecialchars($comments['COMMENT']); ?> and it works....this fix worked great for me! DJ :twisted:
  5. LiquidGfx

    Event Calendar - MS1 Release

    FIX! For the Event Calendar ADD: catalog/includes/application_top.php For it to get the information on the front page! define('FILENAME_EVENTS_CALENDAR', 'events_calendar.php'); define('FILENAME_EVENTS_CALENDAR_CONTENT', 'calendar_content.php'); define('FILENAME_EVENTS_MANAGER', 'events_manager.php'); define('TABLE_EVENTS_CALENDAR', 'events_calendar'); Liquidgfx :twisted:
  6. Make sure you have installed the other software correctly...You should only get errors with loginbox nothing else should be affected......Installing Autologon is kind of teadious. Wasn't easy for me to install either. this software is for 2.2 ms1
  7. That is what it does...check a box when you log in and it will log you in automatically next time you visit
  8. My first contribution! :shock: :D I added the AutoLogon feature to linda Mcgraths Login Box. Thought people would be interested have the feature if the have autologon installed. go here to get it http://www.oscommerce.com/community/contributions,1391 You must have: AutoLogon 1.03 Loginbox v5.2 They are in the contributions section.
×