Jamaz Posted May 6, 2005 Share Posted May 6, 2005 Hi, Ever since I installed the PayPal IPN module (which is great) the website doesn't seem to be able to record best sellers. If the customer pays via another payment cheque or postal order then, the item is recorded in the best sellers. Why do you suppose this feature is disabled for PayPal IPN? Hope you can help. Thanks, James Link to comment Share on other sites More sharing options...
Jamaz Posted May 13, 2005 Author Share Posted May 13, 2005 Anyone know the answer? Or even where to start looking? :thumbsup: Link to comment Share on other sites More sharing options...
Jamaz Posted May 18, 2005 Author Share Posted May 18, 2005 Hi, Gents, really need help with this one. Stock is being bought from my shop, but isn't being recorded on my bestsellers since I installed PayPal IPN. Whats gone wrong? :'( Jamaz Link to comment Share on other sites More sharing options...
FalseDawn Posted May 18, 2005 Share Posted May 18, 2005 A quick scan through the ipn code reveals this in the before_process() function: // Update products_ordered (for bestsellers list) tep_db_query("update " . TABLE_PRODUCTS . " set products_ordered = products_ordered + " . sprintf('%d', $order->products[$i]['qty']) . " where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); So the only reason that your bestsellers would not be updated is if this code is missing/incorrect, or the before_process() function in the ipn_module is not being called (unlikely as it would not work) Have you actually checked in the database to make sure it is not updating this table. Did you test with the sandbox first? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.