Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Need little help with a contribution


Recommended Posts

Hi, i installed a contribution which adds an entry for User and is located here http://addons.oscommerce.com/info/4816 , the entry name is RFC which is a key for the Mexican Taxes System that you are identified with. Is needed to make bills. In this contribution some files are modified and so far is good, but it has a little problem, for making RFC(new entry, field) to appear in Checkout address, user has to have Company field filled or Company has to be active as a value, which is not always that way, cause in Mexico any person can have an RFC, even when not part of a Company.

So in the file catalog/includes/functions/general.php

line 489 find:

if ( (ACCOUNT_COMPANY == 'true') && (tep_not_null($company)) ) {

$address = $company . $cr . $address;


change it to:

if ( (ACCOUNT_COMPANY == 'true') && (tep_not_null($company)) ) {

$address = $company . $cr . $rfc . $cr . $address;


So i was wondering how can i change it, for making RFC to appear, even when Company field is empty(null) or Company is disabled.

Any help will be apreciatted.


Link to comment
Share on other sites

if ( (ACCOUNT_COMPANY == 'true') && (tep_not_null($company)) ) {
 $address = $company . $cr . $rfc . $cr . $address;
} else {
 $address = $rfc . $cr . $address;

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.


"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -


"Headers already sent" - The definitive help


"Cannot redeclare ..." - How to find/fix it


SSL Implementation Help


Like this post? "Like" it again over there >

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...