Wordpress Plugin for IDempiere (webservices)

428 views
Skip to first unread message

Habib Salhi

unread,
Jan 28, 2018, 7:28:39 AM1/28/18
to iDempiere
HI Guys... would like to share this contribution I hope some of you find it useful

With The increasing popularity of wordpress, I felt that many projects in iDempiere might benefit from having a little interaction with outside users, weather it be business partners logging in to view their orders or make new orders or any form of communication with the ERP organizations.

https://bitbucket.org/hsalhi77/idempiere-soap-wp/wiki/Home

please have a look and welcome any contributions / comments

Habib

Marco Longo

unread,
Feb 2, 2018, 4:57:12 AM2/2/18
to iDempiere
Hi Habib ,

add it also to wiki page   http://wiki.idempiere.org/en/Category:Available_Plugins

Marco 

Habib Salhi

unread,
Feb 2, 2018, 2:32:50 PM2/2/18
to iDempiere
Hi Marco

was never able to create a user for the wiki.. always get an "Internal Error"

maybe someone can help with this
Screenshot from 2018-02-02 23-26-46.png

Carlos Antonio Ruiz Gomez

unread,
Feb 3, 2018, 4:24:39 AM2/3/18
to idem...@googlegroups.com
Habib, sorry, known problem on wiki, Please use this link to create your user:
http://wiki.idempiere.org/wiki/Special:CreateAccount

Regards,

Carlos Ruiz

Habib Salhi

unread,
Feb 4, 2018, 7:04:17 AM2/4/18
to iDempiere
its online..
http://wiki.idempiere.org/en/Plugin:_Wordpress_Soap_integration

thank you all and hope u find it useful

Leonard Walletzký

unread,
Feb 9, 2018, 6:21:40 AM2/9/18
to iDempiere
Hi Habib,

I just tried to use your plugin - it works well :-) I would suggest a little replacement of the php code in partner-orders.php, when you are creating the table of order. I tried to make it more universal:


    $data = array();
    $i=0;
          $row_count = 1;
    foreach($valsl as $key2 => $value)
    {
    $cmn=$value['attributes']['COLUMN'];
            $ptp = $value['tag'];
    if ($cmn!='')
    {/*echo $cmn."<br>";*/
             $lt=$key2;
      $data[$i]['column'] = $value['attributes']['COLUMN'];
      $data[$i++]['column_value']=$valsl[$lt+1]['value'];
                
      }
            if (($ptp=='DATAROW')&($value['type']=='close'))
              {
               $data[$i]['column']="EOR";
               $data[$i++]['column_value'] = $row_count++;
              
              } 
      /*$vlu=$value['value'];
    if($vlu!='')
    {
      $data[$i++]['column_value'] = $value['value'];
      } */
    }
    
        $err = curl_error($soap_dol); 
        curl_close($soap_dol);
/*         echo "<pre>";

    print_r($data);
*/    
        $listingHTml='<div class="newview newview1">
   
        <table id="landlord" class="display" width="80%" cellspacing="0">
<thead> <tr><th colspan="4" style="text-align: center; padding: 35px 0px;background:#007acc; color:#fff;text-transform: uppercase;font-size: 32px;"> Partner Orders</th></tr> ';
$listingHTml.='<tr>';
        $i = 0;
        while ($data[$i]['column']!='EOR')
        {
          $listingHTml.='<th>'.$data[$i++]['column'].'</th>';       
        }
  
/*        $listingHTml.='<tr><th>Document No</th>
<th>Date Ordered</th>
<th>Description</th>
<th>Grand Total</th>';
*/
$listingHTml.='</tr></thead><tbody><tr>';

$sz=1;
$arr_size=sizeof($data);
foreach ($data as  $listvalue)
{
          if($listvalue['column']=="EOR")
            { $listingHTml.='</tr><tr>'; }
          else
            { $listingHTml.='<td>'. $listvalue['column_value'] .'</td>';}
  }
 
$listingHTml.='</tr> </tbody>
  </table></div>';
  echo $listingHTml;
}
else
{
header('Location: '.site_url().'/index.php/user-login');
}



Dne neděle 28. ledna 2018 13:28:39 UTC+1 Habib Salhi napsal(a):

Habib Salhi

unread,
Feb 11, 2018, 3:00:02 PM2/11/18
to iDempiere
HI Leonard.. nice to see confirmation that it works..

ofcourse always better to make universal code.. the EOF check is good.. appreciate it

let me know if you have time to modify it on the repo or you want me to do it

Dirk Niemeyer

unread,
Dec 18, 2018, 3:24:30 AM12/18/18
to idem...@googlegroups.com
Hi Habib,

bitbucket says "That link has no power here".
Can you please check. Thanks!

Regards,

Dirk Niemeyer


Am 28.01.18 um 13:28 schrieb Habib Salhi:

Carlos Antonio Ruiz Gomez

unread,
Dec 18, 2018, 4:59:45 AM12/18/18
to idem...@googlegroups.com
Hi Dirk, I think it changed a bit the name of the project:
https://bitbucket.org/hsalhi77/wp-idempiere-soap/wiki/Home



El 18/12/18 a las 9:24, 'Dirk Niemeyer' via iDempiere escribió:

Dirk Niemeyer

unread,
Dec 20, 2018, 3:23:45 AM12/20/18
to idem...@googlegroups.com
Hi Carlos, thanks for the hint.

Regards,
Dirk

Am 18.12.18 um 10:59 schrieb Carlos Antonio Ruiz Gomez:

AYOUB LECHKAR

unread,
Jun 28, 2021, 2:27:27 PM6/28/21
to iDempiere
  Hello habib, please I have a project in the university and I got this error
I've already packing wp-userRQ et wp-verifyuser et wp-createUpdateuser et wp-queryOrders. the five other files can not import
please help me. thank you
Screenshot from 2021-06-27 02-46-51.png
Reply all
Reply to author
Forward
0 new messages