0

my problem is currently I'm in English store and want to set counter to default store counter but every time English store counter is updated.

enter image description here

below image is deafult store.

enter image description here

update counter value using following query:

Mage::getConfig()->saveConfig(self::ORDER_COUNTER,$counter,'stores',$order->getData('store_id'));
0

Try this below code,

$storeId =Mage::getModel('core/store')->load($storeCode, 'code')->getId();    
Mage::getConfig()->saveConfig(self::ORDER_COUNTER,$counter,'stores',$storeId);
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.