Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity Controller 5.1


Farrukh

Recommended Posts

I have installed the contribution on Milestone

 

its works fine but when I go to Admin => Modules => Payment

 

i get this error:

 

Fatal error: Call to undefined function: tep_get_free_charger() in e:inetpubwwwrootmilestoneincludesmodulespaymentauthorizenet.php on line 22

 

The error can be removed by commenting the line in all the payment modules.

 

// BOF: WebMakers.com Added: Free Payments and Shipping

if ( tep_get_free_charger($this->code) ) {

    $this->enabled = ((MODULE_PAYMENT_AUTHORIZENET_STATUS == 'True') ? true : false);

}

 

 

I have to comment the above to remove the error.

 

=====

 

Also, the same sort of error arises when I go to Admin => Modules => Shipping

 

Fatal error: Call to undefined function: tep_get_free_shipper() in e:inetpubwwwrootmilestoneincludesmodulesshippingflat.php on line 23

 

 

=====

 

Another error at Admin => Catalog => Categories/Products

 

Fatal error: Call to undefined function: tep_get_categories_name() in e:inetpubwwwrootmilestoneadmincategories.php on line 1266

 

 

===

 

Another error I get in in the Main Catalog Page, at the bottom:

 

Error!

Unable to determine connection method on a link!

Known methods: NONSSL SSL

 

In the milestone release the NonSSL has been removed from the files. guess this is what creating this error.

Link to comment
Share on other sites

You might want the other functions in there as well.

 

If you already have this file, then update the new functions into it:

 

CHANGES TO /admin/includes/application_top.php



Add to the bottom of the file just before the ?> :



// BOF: WebMakers.com Added: Functions Library

   include(DIR_WS_FUNCTIONS . 'webmakers_added_functions.php');

// EOF: WebMakers.com Added: Functions Library





This will add additional functions and additional filename definitions

Link to comment
Share on other sites

I made the above changes to the application_top.php

 

 

This is the error i got :

Parse error: parse error, unexpected T_STRING in e:inetpubwwwrootmilestoneadminincludesapplication_top.php on line 257

Fatal error: Call to undefined function: tep_href_link() in e:inetpubwwwrootmilestoneadminindex.php on line 17

Link to comment
Share on other sites

Somewhere your function files might be mixed up.

 

tep_href_link is a function that has been a part of osC forever

 

Sounds like you have a typo. Did you add the code *before* the ?> in application_top.php or after it?

Link to comment
Share on other sites

This is where I added the code :

 

// check if a default language is set

 if (!defined('DEFAULT_LANGUAGE')) {

   $messageStack->add(ERROR_NO_DEFAULT_LANGUAGE_DEFINED, 'error');

 }

 

 // BOF: WebMakers.com Added: Functions Library 

? ? include(DIR_WS_FUNCTIONS . 'webmakers_added_functions.php'); 

// EOF: WebMakers.com Added: Functions Library 

?>

Link to comment
Share on other sites

The changes related to Quantity Controller you want in there.

 

The others are due to version differences and you do not want them.

 

I mark my code so you can see where I touch things. This should help you decide what to include/exclude/update.

Link to comment
Share on other sites

The changes related to Quantity Controller you want in there.

 

The others are due to version differences and you do not want them.

 

I mark my code so you can see where I touch things. This should help you decide what to include/exclude/update.

 

I could be wrong but you don't mark everything correct?

Link to comment
Share on other sites

Based on the README.txt file I wrote, where I said:

Database Changes:

NOTE: There is a database changes text file with the Alter Table commands included for the products and products_attributes tables ...

 

So you might go through that Database Changes file and see what fields you are missing from your tables.

 

It contains the alter commands, just find the missing field(s), paste it into your phpMySQL and it should fix it.

Link to comment
Share on other sites

I did make the changes through phpomyadmin and followed the instructions as you had written in readme file.

 

I tried to add these lines to database :

 

ALTER TABLE products ADD products_price_list decimal(15,4) NOT NULL Default "0.0000" AFTER products_quantity_order_units;



ALTER TABLE products ADD products_price_rebate decimal(15,4) NOT NULL Default "0.0000" AFTER products_price_list;

 

and this is what i got

 

Error

SQL-query?:? 

ALTER TABLE products ADD products_price_list decimal( 15, 4 ) NOT NULL Default "0.0000" AFTER products_quantity_order_units 

MySQL said: 





Unknown column 'products_quantity_order_units' in 'products'

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...