Total Pageviews

Wednesday, October 10, 2012

Follow kvn_krishna on Twitter

Opencart issue . user multiple address not able to delete - bug fixed






Opencart version 1.5.3 and above...


we need to edit the code in catalog/controlles/account/address 
find this line " $this->model_account_address->getTotalAddresses()"

existing code : 

if ($this->model_account_address->getTotalAddresses()) {
 $this->error['warning'] = $this->language->get('error_delete');
}

New Code :
(replace the above "existing code" to "New code" )
if ($this->model_account_address->getTotalAddresses() < 1) {
 $this->error['warning'] = $this->language->get('error_delete');
}

Thanks to :

http://code.google.com/p/opencart/issues/detail?can=2&start=0&num=100&q=&colspec=ID Type Status Priority Milestone Owner Summary Reporter&groupby=&sort=&id=995

No comments:

Post a Comment