chrometweaks.org

Help! I cannot add files using iPage.com?

Click Here To View All Answers...


My 1st question is: Help! I cannot add files using iPage.com? Looking forward for any answer or 2. My other question... I bet I can take care of that. Check back a little later..

Corbin..

Comments (28)

That's a good question. I'm not sure what is the answer to your question. I'll do some investigation and get back to you if I find an anything. You should email the people at iPage as they probably can answer it..

Comment #1

Corbin.

I ended up uploading my original account edit file. I did get the changes to work,, but it had side effects..

First,, there was no tax id number info in the account edit section,, and if you did click continue,, then go into the admin side,, the tax exempt was changed from yes to no and the id number deleted. so thats no good..

I dont see as they need access to change the yes/no or the id number once it's set up anyway,, so dont worry bout it, I have the rest of it working..

I am interested in the discount so I will take a look at that later tnight if I can..

Thanks for all the work and help..

Regards.

Tom..

Comment #2

QWIZ:.

I made the changes you are needing and posted them to this board previously (Posted: Nov 21 2003, 12:51 AM) for TheBatFreak. If you need the customers to choose their TAX Status on sign-up, you will need to apply the modifications from this reply. Otherwize you are correct, and you can ignore changes to that file..

Corbin..

Comment #3

Corbin.

Thanks dude for u'r help and time...

I dont think I am going to allow them to change the status themselves..

I dont see a need in that,, as to cover my butt I would need proof of tax status anyway..

Thanks again dude for all u'r time.

Regards.

Tom..

Comment #4

I just applied this mod. One of three that I've plugged into my catalog so far. The problem is that everything in the Admin section works fine. I can add the categories and modify tax exempt status, but when attempting to access my cart, ie. catalog/index.php, I get the following errors:.

Parse error: parse error in /www/www.m2tinc.com/htdocs/catalog/includes/classes/shopping_cart.php on line 373.

Warning: Cannot send session cookie - headers already sent by (output started at /www/www.m2tinc.com/htdocs/catalog/includes/classes/shopping_cart.php:373) in /www/www.m2tinc.com/htdocs/catalog/includes/functions/sessions.php on line 67.

Warning: Cannot send session cache limiter - headers already sent (output started at /www/www.m2tinc.com/htdocs/catalog/includes/classes/shopping_cart.php:373) in /www/www.m2tinc.com/htdocs/catalog/includes/functions/sessions.php on line 67.

Fatal error: Cannot instantiate non-existent class: shoppingcart in /www/www.m2tinc.com/htdocs/catalog/includes/application_top.php on line 253.

Any ideas? The only think I could think of is that my host has disabled register glopbals in php.ini, but not sure. Any help would be appreciated...

Comment #5

Note:.

I changed the code in classes/shopping_cart.php.

To.

// BEGIN - Tax Exempt and Organization Discounts.

// old 'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));.

'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));.

//'eligible_discounts' => $products_eligible_discounts,.

//'education_discount' => $products_education_discount,.

//'government_discount' => $products_government_discount,.

//'gsa_pricing' => $products_gsa_pricing);.

// END - Tax Exempt and Organization Discounts.

Commenting out the 3 lines enables my shopping cart again. I also contacted my host and register_globals is still enabled...

Comment #6

Ok, found out that there was just an extra ")" in the line.

'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));.

Got rid of it and everything worked fine...

Comment #7

Michael.

You will find there are 5 or 6 places that there is problems with extra symbols in the code which are causing problems..

Once you find them all, and remove them,, it seems to work fairly well.

You can find most of them listed in this forum though, so just read back..

Regards.

Tom..

Comment #8

I tried to merge the tax exempt contribution to my shop and now I can't get to admin anymore!.

If I do a fresh installation of my store and inclue the file from the contribution will it work or will I still need to merge the files?.

Also will I be able to make additional changes to my shop for example, I am based in the UK so I want to make the default UK instead of the US and add things like radio buttons..

Thanks..

Comment #9

HELP HELP HELP!!!.

I have been working on trying to this thing to work for me for quite some time now and I'm so tired of getting errors and when I try to fix them it only gets worse... Can anyone help me to get this to work. Please I'm kinda pushing it for time now....

I have used beyond compare to merge the code and have entred all the database alter's and etc... I have followed the directions to a T at least 5 times and no results it's still giving me errors!!!.

I get Parse error's and I have read all through this forum so many times trying to follow instructions to fix this but nothing that has been posted has worked for me or maybe I'm not doing it right. I see that when you get a parse error usually it's cause there's too many characters or not enough... Well I'm not sure what I should be looking for other then the () to make sure they are all closed..

I'm about to give up on this all together and just tell me client that we'll have to come up with some other way to handle this situation..

Please Please if anyone can help please I'd appreciate it very much!.

Thanks Ahead of time if anyone can give me a hand here..

Jodi Apple..

Comment #10

Anyone know of a way to get Tax Exempt set up on an MS2 cart?.

Thanks in advance.

Regards.

Tom..

Comment #11

Here's a Tax Exempt Contribution.

Http://www.oscommerc...ntributions,944.

I tried to install it, but didn't get it succesfully working. The contributor recommended comparing code using some software, which I did. It was very time consuming and still didn't work. Probably because I wasn't always sure which code to change...

Comment #12

Mleslie598.

Yea,,.

Thanks for replying.

I was aware of this mod but it was pre ms2 release and I am running ms2 and need a something for ms2..

ANYONE?.

Anyway,,Thanks again for taking time to reply.

Regards.

Tom.

ANYONE know of a ms2 tax exempt solution..

Comment #13

I was wondering if anyone has had any success with an MS2 tax exempt module?.

I too have worked on the recommended module but it is tricky to know exactly which code to change with each of the files..

Any help would rock!..

Comment #14

TheBatFreak.

So far, I have not found anything..

Seems no one has the need for tax exempt use besides yourself, Michael, and I..

If I find anything,, I'll let you know, and ask the same of you..

Regards.

Tom..

Comment #15

Thanks man! I did find a guy out at rentacoder.com who apparently has coded/installed a tax exempt module before. I posted a bid on the project so maybe we'll hear back..

I honestly don't have much problem doing the work OTHER that it's hard to tell which code to merge/change from file to file. A little bit annoying..

Thanks!..

Comment #16

How is this for a turn around.....

Version 1.2 for MS2:.

Http://www.oscommerc...ntributions,944..

Comment #17

Jason,.

Kewl beans,, thanks dude,,.

U dah Man!!!.

Regards.

Tom..

Comment #18

Jason,.

Thanks again for all the hard work to alter this,.

TheBatFreak,.

Let me know if this worked for you. I ran into error after error,, every time I would figure one out,, another 3 or 4 popped up,, and I just uninstalled..

So if you would let me know if it worked for u..

Thanks dude.

Regards.

Tom..

Comment #19

I had been waiting for this release as well. After many errors and a few hours (not 20 min.) I was able to get the whole package installed..

Most of the errors were just missing (or removing) ;), in the code..

My main concern was to flag a customer as Tax Exempt, and actually have the system compute the final charges properly. This seems to work fine now..

What I do not understand, however is where to set the amount of discount on the Education and Government groups. Is it possible to add other groups dynamically besides the Education and Government? Is there somewhere to input a percent value to apply to the discount?..

Comment #20

If you tell me what they are I will fix and re-upload. All I did was merge the code to MS2 code base..

It is not possable to add other groups "dynamically" with this package (manually yes it is possable). However there is a diffent mod that has that feature...

Comment #21

Cool! I've gotten the Admin side done but am having a little trouble fixing the various php errors from the catalog end. I'm no PHP wiz so could you document the fixes you applied to those files? You mentioned adding/removing.

Or the like. I got one of them fixed but I'm REALLY having some annoying trouble with the following files:.

/catalog/account_edit.php(line 99 parse error).

/catalog/checkout_process.php(line 43 parse error).

/catalog/create_account.php(line 410 parse error).

/catalog/shopping_cart.php(may not have an error here now).

/catalog/includes/classes/order.php(line 331 parse error).

What did you do to each of these?.

Qwiz, have you done the table alters in mySQL as noted in the database_change file? Those are critical to make this thing work..

We'll all get this baby running yet!.

Thanks!.

This post has been edited by.

TheBatFreak.

: 20 November 2003, 15:48..

Comment #22

I will post what I changed shortly..

Is there a way to assign a percentage decrease in price based off if they are Education or Government? There is nothing in the Admin side, might be in the DB or code. If this is not possible, why are these fields even there?..

Comment #23

TheBatFreak,.

Hey dude,, yea,,, I did apply the sql changes, and I picked out a bunch of the problems as well ,, till I got down to some of the ones you listed in the catalog side and one of them was giving me an sql error, so with my migrains I just removed it b4 I let it wrestle me down,, will try again another day,, lol.

Thanks though guyz.

Regards.

Tom..

Comment #24

OK. I am going to begin the list of fixes I made to get this to work on my site. It will take me a little while to remember...Here is Installment 1.

/catalog/account_edit.php.

PRE-MOD.

   if ($error == false) {.

     $sql_data_array = array('customers_firstname' => $firstname,.

                             'customers_lastname' => $lastname,.

                             'customers_email_address' => $email_address,.

                             'customers_telephone' => $telephone,.

                             'customers_fax' => $fax);.

POST-MOD & Fixed.

   if ($error == false) {.

     $sql_data_array = array('customers_firstname' => $firstname,.

                             'customers_lastname' => $lastname,.

                             'customers_email_address' => $email_address,.

                             'customers_telephone' => $telephone,.

                             'customers_fax' => $fax,.

// BEGIN - Tax Exempt and Organization Discounts.

                             'customers_tax_exempt' => $tax_exempt,.

                             'customers_tax_exempt_id' => $tax_exempt_id,.

                             'customers_org_type' => $organization_type);.

// END - Tax Exempt and Organization Discounts.

/catalog/includes/classes/shopping_cart.php.

PRE-MOD.

         $products_array[] = array('id' => $products_id,.

                                   'name' => $products['products_name'],.

                                   'model' => $products['products_model'],.

                                   'image' => $products['products_image'],.

                                   'price' => $products_price,.

                                   'quantity' => $this->contents[$products_id]['qty'],.

                                   'weight' => $products['products_weight'],.

                                   'final_price' => ($products_price + $this->attributes_price($products_id)),.

                                   'tax_class_id' => $products['products_tax_class_id'],.

                                   'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));.

       }.

POST-MOD & Fixed.

         $products_array[] = array('id' => $products_id,.

                                   'name' => $products['products_name'],.

                                   'model' => $products['products_model'],.

                                   'image' => $products['products_image'],.

                                   'price' => $products_price,.

                                   'quantity' => $this->contents[$products_id]['qty'],.

                                   'weight' => $products['products_weight'],.

                                   'final_price' => ($products_price + $this->attributes_price($products_id)),.

                                   'tax_class_id' => $products['products_tax_class_id'],.

// BEGIN - Tax Exempt and Organization Discounts.

// old                              'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));.

                                   'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''),.

       'eligible_discounts' => $products_eligible_discounts,.

       'education_discount' => $products_education_discount,.

       'government_discount' => $products_government_discount,.

       'gsa_pricing' => $products_gsa_pricing);.

// END - Tax Exempt and Organization Discounts.

       }..

Comment #25

Installment #2.

/catalog/includes/classes/order.php.

ORIGINAL MOD CODE.

   // BEGIN - Tax Exempt and Organization Discounts.

       if ($discount > 0) {.

         $this->products[$index]['attributes'][$subindex] = array('option' => "Organization Discount",.

}.

   // END - Tax Exempt and Organization Discounts.

Should READ:.

   // BEGIN - Tax Exempt and Organization Discounts.

       if ($discount > 0) {.

         $this->products[$index]['attributes'][$subindex] = array('option' => "Organization Discount");.

}.

   // END - Tax Exempt and Organization Discounts..

Comment #26

Installment #3.

/catalog/create_account.php.

BAS MOD CODE:.

// BEGIN - Tax Exempt and Organization Discounts.

             <tr>.

               <td class="main"><?php echo ENTRY_TAX_EXEMPT; ?></td>.

               <td class="main">.

   if ($account['customers_tax_exempt'] == '1') {.

     echo ENTRY_TAX_EXEMPT_YES;.

   } else {.

     echo ENTRY_TAX_EXEMPT_NO;.

   }.

   if ($process == true) {.

   echo tep_draw_hidden_field('tax_exempt');  .

 }.

?></td>.

         </tr>.

         <tr>.

           <td class="main">&nbsp;<?php echo ENTRY_TAX_EXEMPT_ID; ?></td>.

           <td class="main">&nbsp;.

<?php.

   if ($process == true) {.

     echo $tax_exempt_idtep_draw_hidden_field('tax_exempt_id');.

   } else {.

     echo tep_draw_input_field('tax_exempt_id', $account['customers_tax_exempt_id'])'&nbsp;'ENTRY_TAX_EXEMPT_ID_TEXT;.

   }.

             </tr>.

             <tr>.

               <td class="main"><?php echo ENTRY_ORG_TYPE; ?></td>.

               <td class="main">.

<?php.

   if ($process == true) {.

$organization_query = tep_db_query("select org_type_title, org_type_id from "TABLE_ORGANIZATION_TYPE" where org_type_id = "$organization_type);.

$organization_row = tep_db_fetch_array($organization_query);.

Echo $organization_row['org_type_title'];.

       echo tep_draw_hidden_field('organization_type');    .

   } else {.

     $organization_array = array();.

     $organization_query = tep_db_query("select org_type_title, org_type_id from "TABLE_ORGANIZATION_TYPE" order by org_type_title asc");.

     while ($organization_values = tep_db_fetch_array($organization_query)) {.

       $organization_array[] = array('id' => $organization_values['org_type_id'], 'text' => $organization_values['org_type_title']);.

     }.

?>.

               </td>.

             </tr>.

// END - Tax Exempt and Organization Discounts.

GOOD MOD CODE:.

<?php // BEGIN - Tax Exempt and Organization Discounts ?>.

             <tr>.

               <td class="main">.

<?php echo ENTRY_TAX_EXEMPT; ?></td>.

               <td class="main">.

<?php    if ($account['customers_tax_exempt'] == '1') {.

     echo ENTRY_TAX_EXEMPT_YES;.

   } else {.

     echo ENTRY_TAX_EXEMPT_NO;.

   }.

   if ($process == true) {.

   echo tep_draw_hidden_field('tax_exempt');  .

 }.

?>.

</td>.

         </tr>.

         <tr>.

           <td class="main">&nbsp;<?php echo ENTRY_TAX_EXEMPT_ID; ?></td>.

           <td class="main">&nbsp;.

<?php.

   if ($process == true) {.

     echo $tax_exempt_idtep_draw_hidden_field('tax_exempt_id');.

   } else {.

     echo tep_draw_input_field('tax_exempt_id', $account['customers_tax_exempt_id'])'&nbsp;'ENTRY_TAX_EXEMPT_ID_TEXT;.

   }.

?>.

             </tr>.

             <tr>.

               <td class="main"><?php echo ENTRY_ORG_TYPE; ?></td>.

               <td class="main">.

<?php.

   if ($process == true) {.

 $organization_query = tep_db_query("select org_type_title, org_type_id from "TABLE_ORGANIZATION_TYPE" where org_type_id = "$organization_type);.

 $organization_row = tep_db_fetch_array($organization_query);.

 echo $organization_row['org_type_title'];.

       echo tep_draw_hidden_field('organization_type');    .

   } else {.

     $organization_array = array();.

     $organization_query = tep_db_query("select org_type_title, org_type_id from "TABLE_ORGANIZATION_TYPE" order by org_type_title asc");.

     while ($organization_values = tep_db_fetch_array($organization_query)) {.

       $organization_array[] = array('id' => $organization_values['org_type_id'], 'text' => $organization_values['org_type_title']);.

     }.

}.

?>.

               </td>.

             </tr>.

<?php // END - Tax Exempt and Organization Discounts ?>..

Comment #27

I think that about does it for my changes. I will post an installment #4 if need be! Let me know if there are other problems. I will help you out with them..

Corbin..

Comment #28

Man, you're awesome! the only one not there, I think, is the checkout_process.php edits..

I'm working on this now so we'll see how it goes!.

Thanks much!..

Comment #29


This question was taken from a support group/message board and re-posted here so others can learn from it.