setProduct($product) ->setAccountId((int) Tools::getValue('id_xallegro_account')) ->renderCustomPricesForm(); die( json_encode( array( 'result' => true, 'html' => $customPricesForm, 'message' => $this->l('Poprawnie zaktualizowano') ) ) ); } public function ajaxProcessDeleteCustomPrices() { $customPriceEntity = new XAllegroCustomPrice(); $customPriceEntity->setProductId((int) (int) Tools::getValue('id_product')); $customPriceEntity->setAccountId((int) Tools::getValue('id_xallegro_account')); $customPriceEntity->deletePrices(true); die( json_encode( array( 'result' => true, 'message' => $this->l('Poprawnie skasowano ceny dedykowane'), ) ) ); } }