biorgamix Posted October 21, 2008 Share Posted October 21, 2008 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. Thanks. Quote Link to comment Share on other sites More sharing options...
germ Posted October 21, 2008 Share Posted October 21, 2008 if ( (ACCOUNT_COMPANY == 'true') && (tep_not_null($company)) ) { $address = $company . $cr . $rfc . $cr . $address; } else { $address = $rfc . $cr . $address; } Quote 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 More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.