zakidd Posted March 4, 2013 Share Posted March 4, 2013 agan ada yang bisa kasih clue gak ? setting harga per kg Rp. 13000, tapi ketika produk sudah lebih dari 1 kg harganya gak mau berubah ke 26000 . kenapa yah gan ?? Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted March 5, 2013 Share Posted March 5, 2013 By default Prestashop menghitung ongkos kirim berdasarkan Range-Weight yang dibuat kalau hanya mengatur range weight 0-1Kg dan setting Shipping fee utk range weight tsb maka Ongkir tidak akan otomatis dikalikan per kelipatan berat. Solusinya : Buat range weight sesuai kebutuhan, atau Cukup buat range-weight 0-1Kg tapi kamu harus memmodifikasi (override) classes file Carrier.phpfunction getDeliveryPriceByWeight 1 Link to comment Share on other sites More sharing options...
zakidd Posted March 6, 2013 Author Share Posted March 6, 2013 pak moderator bisa kasih tau caranya gak biar ongkoskirimnya bertambah setiap kelipatan 1 kg, harap maklum newbie gak tu apa2. Link to comment Share on other sites More sharing options...
zakidd Posted March 6, 2013 Author Share Posted March 6, 2013 (edited) tq mod dah sukses u ps 1.5.3 yang mo coba ini clunya sukses di ane self::$price_by_weight[$cache_key] = $this->getMaxDeliveryPriceByWeight($id_zone)* ceil($total_weight); else self::$price_by_weight[$cache_key] = $result['price']* ceil($total_weight); teamshop Edited March 6, 2013 by zakidd (see edit history) 1 Link to comment Share on other sites More sharing options...
XtreM726 Posted March 11, 2013 Share Posted March 11, 2013 tq mod dah sukses u ps 1.5.3 yang mo coba ini clunya sukses di ane self::$price_by_weight[$cache_key] = $this->getMaxDeliveryPriceByWeight($id_zone)* ceil($total_weight); else self::$price_by_weight[$cache_key] = $result['price']* ceil($total_weight); teamshop Share mas bro,..biar manfaat jg sama yg lain.. 1 Link to comment Share on other sites More sharing options...
zakidd Posted March 19, 2013 Author Share Posted March 19, 2013 share kemana gan? n gimana caranya. maaf newbie Link to comment Share on other sites More sharing options...
sairijb8 Posted June 12, 2013 Share Posted June 12, 2013 di dalam folder class ada carrier.php, edit dengan text editor cari baris 227 ada fuction getDeliveryPriceByWeight($total_weight, $id_zone), tambahkan * ceil($total_weight) di baris 243 dan 245, ni script function setelah di ubah : public function getDeliveryPriceByWeight($total_weight, $id_zone) { $cache_key = $this->id.'_'.$total_weight.'_'.$id_zone; if (!isset(self::$price_by_weight[$cache_key])) { $sql = 'SELECT d.`price` FROM `'._DB_PREFIX_.'delivery` d LEFT JOIN `'._DB_PREFIX_.'range_weight` w ON (d.`id_range_weight` = w.`id_range_weight`) WHERE d.`id_zone` = '.(int)$id_zone.' AND '.(float)$total_weight.' >= w.`delimiter1` AND '.(float)$total_weight.' < w.`delimiter2` AND d.`id_carrier` = '.(int)$this->id.' '.Carrier::sqlDeliveryRangeShop('range_weight').' ORDER BY w.`delimiter1` ASC'; $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($sql); if (!isset($result['price'])) self::$price_by_weight[$cache_key] = $this->getMaxDeliveryPriceByWeight($id_zone) * ceil($total_weight); else self::$price_by_weight[$cache_key] = $result['price'] * ceil($total_weight); } return self::$price_by_weight[$cache_key]; } utk versi 1.5.4 utk versi 1.4.xx beda Link to comment Share on other sites More sharing options...
nisfize Posted August 12, 2013 Share Posted August 12, 2013 kl untuk per 1.4 gmana yah??? Busana Muslim | Baju Muslim Link to comment Share on other sites More sharing options...
nisfize Posted January 14, 2014 Share Posted January 14, 2014 masih nunggu yang 1.4 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now