Jump to content

Tak Bisa Hapus Countries


alchazin

Recommended Posts

Kepada master presta mohon bantuannya lagi boleh ya...
kenapa pada back office >> shipping >> countries tidak ada kolom cheklist untuk menghapus countries ya?
tombol deletnya juga gak ada.
padahal di states dan zones ada tuh kolom cheklist dan deletnya.
saya coba buka file php nya emang sih tulisannya deleted = false

$this->table = 'country';
        $this->className = 'Country';
        $this->lang = true;
        $this->edit = true;
        $this->deleted = false;
        $this->_select = 'z.`name` AS zone';
        $this->_join = 'LEFT JOIN `'._DB_PREFIX_.'zone` z ON (z.`id_zone` = a.`id_zone`)';


saya coba rubah jadi true tapi palah jadinya error pas dibuka di back officenya.
maaf, coz belum paham php.
atau ada cara lain untuk menghapus country?
saya lampirkan screnshootnya
trims

22301_p7vCfB15KvBeBIHPhxHv_t

Link to comment
Share on other sites

kalau masih mau nyoba, bisa ditambahin kode berikut di file prestashop/admin/tabs/AdminCountries.php

$this->delete = true;


dan hapus bagian ini

public function postProcess()
   {
       if (isset($_GET['delete'.$this->table]) OR Tools::getValue('submitDel'.$this->table))
           $this->_errors[] = Tools::displayError('You cannot delete a country. If you do not want it available for customers, please disable it.');
       else
           return parent::postProcess();
   }


tapi ga tahu efek yg lain akibat ini.

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...