If the custom coding you've done directly modifies an existing function, then you have to edit the original file.
The extra_functions folder is only for NEW functions you add for your own purposes.
Printable View
If the custom coding you've done directly modifies an existing function, then you have to edit the original file.
The extra_functions folder is only for NEW functions you add for your own purposes.
OK thanks. One problem I have noticed is that these SQL query functions I added, only work when the user is logged in.
When someone estimates shipping without being logged in, my custom SQL query lookups fail.
OK I will make a correction to the above. The SQL queries are actually working OK without being logged in. The problem lies elsewhere. i.e. I'm getting a null Product ID when not logged in and this if effecting the lookup of the Manufacturers_id.
I discovered this by assigning a test data value to $ProdID without being logged in and it then looked up the manufacturers_id OK. The quesiton is why it's null when not logged in. I'ts a coding issue I think. I will sleep on it.
We would have to see what code you have now to advise on how to correct the issue you are having...
Thanks. I just worked it out. I wasn't using the session data when the user was not logged in. i.e. I was still trying to use the order data for the user account when not logged in. Using the session data seemed to fix this.