View Single Post
  #28  
Old 03-31-2014, 12:04 PM
 
bitNine bitNine is offline
 

Newbie
  
Join Date: Mar 2014
Posts: 8
 

Default Re: PO Numbers on Invoices, Searchable in Orders.

Quote:
Originally Posted by kcmastrpc
Having an issue with getting this to work.

I can insert a table entry for po_number manually, and it'll show up just fine in searches, etc. but as soon as I go to create a new order through xcart I get an error.

Warning
403
Access denied !

You are not allowed to access that resource!

Id: 79

This error no longer occurs if I remove:

'po_number' => addslashes(getPONum($order_details)),

from func.order.php

I've tried changing the dbtype to text from varchar, but that didn't help.

I hate bumping old threads, but I ran across this thread while trying to determine the reason for an almost identical error while modifying a module, and wanted to provide my solution.

Clear the x-cart cache. It's that easy. I made a change to code that involves inserting data into a modified db table using the array2insert function built into x-cart. Apparently x-cart caches information about that table, and would throw this error when I'd provide 2 extra columns in the array. Clearing the cache solved it.
__________________
X-Cart 4.6
X-Banners MOdule
Reply With Quote