views:

263

answers:

1

Hi,

I would like to retrieve the 'Minimum order amount' value for free shipping in the 'CartController.php' class.

How can I get this value ? Is Mage::getStoreConfig() will do the job ? But witch path?

Thanks a lot for any suggestion!

A: 

the values are stored in the core_config_data table, and a search WHERE path like '%minimum%' should result in few enough rows for you to spot which one. Alternatively, the 'name' of the input-field in the admin area will be the path with _s in place of /s.

Greg
Thanks so much I managed to get the value thanks to your tip. I found also a good way to find the path by doing a print_r(Mage::getStoreConfig('carriers')). If anybody need the Minimum order amount value for free shipping here is the path 'carriers/freeshipping/free_shipping_subtotal'.
Wickramben