Memor-X
Memor-X

Reputation: 2970

where in Magento is the function that "Update Shopping Cart" button uses

i thought it was the updatePostAction() in app\code\core\Mage\Checkout\controllers\CartController.php but i put in a Mage::log call but the log file it was supposed to create never appeared (logging is on cause i've created a bunch of new logging files)

i did a text search in all of magento looking for other declarations of updatePostAction() just incase if a local/community module was overriding the one in app/code/core but it only found the 1 instance of it so obviously i don't have the right function

i'm trying to add some new functionality to the button (and to the cart) but i need to see the code for it first to see what needs to be add/changed for i get to work

EDIT 1: i know the function i'm looking for edits the sales_flat_quote tables when you chnage the quantity of an item in the cart, how it does i don't know (why i need to see the code before i add my functionality)

Upvotes: 0

Views: 1903

Answers (2)

Kenny
Kenny

Reputation: 5410

Are you using some j2tajaxcheckout module or some other AJAX cart-related module? I ran into the same issue as you yesterday and found out that the javascript of the module changed the URL of the update button on the cart overview.

Upvotes: 1

PHP Bugs
PHP Bugs

Reputation: 1183

You do have to enable the log settings from the Admin interface. The settings for this can be seen from the System -> Configuration -> Developer -> Log Settings Enabled to Yes.

Upvotes: 0

Related Questions