Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Flow chart, code analysis, psuedo code for oscomerce


satish

Recommended Posts

I searched the forum and the net.

Was trying to build some developer support code so as to be helpful for code analysis and fixing bugs ot creating contributions faster.

 

Any inputs or links related to

1)oscommerce flow chart.

2)Code analysis.

3)Psuedo code.

 

Do comment.

 

Thanks in advance.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

  • 2 weeks later...

explanation of How a spider is detected.

 

if (tep_not_null($user_agent)) {

$spiders = file(DIR_WS_INCLUDES . 'spiders.txt');

 

for ($i=0, $n=sizeof($spiders); $i<$n; $i++) {

if (tep_not_null($spiders[$i])) {

if (is_integer(strpos($user_agent, trim($spiders[$i])))) {

$spider_flag = true;

break;

}

}

}

}

 

1)The code collects $user_agent. This is the browser or spider user agent name.

2)It get the spiders.txt'

3)Compares if the user agent name is in the spiders.txt.

4)If name is found considers it as a spider.

5)Will set spider flag to true.

6)if flag is set to true and kill spider session ID is true then oscid is not concatenated.See html_output.php file href function for this.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

  • 2 months later...

Zero Price SOlution :

 

look in catalog\includes\languages\english.php and make

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'USD');

 

this

 

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'AUD');

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...