Find Jobs
Hire Freelancers

edit prestashop hook

$10-30 CAD

취소됨
게시됨 6개월 전

$10-30 CAD

제출할때 지불됩니다
this prestashop hook give me only the first result even if the customer buy 2 items, public function hookDisplayAdminOrder($params) { $id_order = (int) Tools::getValue('id_order'); // Get all products associated with the order $sql = 'SELECT product_id FROM '._DB_PREFIX_.'order_detail WHERE id_order = '.(int) $id_order; $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql); $product_ids = array(); foreach ($result as $row) { $product_ids[] = $row['product_id']; } // Iterate over all products foreach ($product_ids as $product_id) { // Obter informações do produto $sql_product = 'SELECT url FROM '._DB_PREFIX_.'scrape_ali_info WHERE id_product='.(int) $product_id; $product_data = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($sql_product); // Do something with product information $this->context->smarty->assign(array( 'id_produto' => $product_id, 'ali_url' => $product_data['url'], 'id_order' => $id_order )); // Here you can make decisions about what to do with the data, or just display it echo $this->display(__FILE__, 'views/templates/admin/[login to view URL]'); } } when I try to do echo inside, its not working. someone can only edit this code to make it work.
프로젝트 ID: 37418774

프로젝트 정보

원격근무 프로젝트
활동 중 6개월 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다

고객에 대한 정보

국기 (CANADA)
Longueuil, Canada
4.0
16
결제 수단 확인
12월 22, 2007부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.