Fermé

drupal expert in Tables $rows[]=. and views_customfield php

I must to change a table; must to add a field; I know how does for a simple code;

in the $rows[] = array( ... I must insert a particular field; is a cycle (think) with some options;

for expert think is simple to solve;I cannot find the correct variable for to do the cycle;

in the uc function I must add a field that list all products of one order

while ($order = db_fetch_object($result)) {

$context['subject'] = array('order' => $order);

$link = l($order->order_id, 'user/'. $user->uid .'/order/'. $order->order_id);

if (user_access('view all orders')) {

$link .= '<span class="order-admin-icons">'. uc_order_actions($order, TRUE) .'</span>';

}

$rows[] = array(

array('data' => format_date($order->created, 'custom', variable_get('uc_date_format_default', 'm/d/Y'))),

array('data' => $link, 'nowrap' => 'nowrap'),

array('data' => check_plain($order->title)),

array('data' => (!is_null($order->products) ? $order->products : 0), 'align' => 'center'),

array('data' => uc_price($order->total, $context), 'align' => 'right'),

---> here code for list the products of the order id

);

regards views is the same solutions; but using directly the views with a custom field in php

(but at moment prior is the table )

I set $30 minimal set, not accepted $5; but this is only for this steps, I have many other steps

and work for you if are expert in php code and drupal and in this type of solutions

Compétences : Drupal, PHP

Voir plus : subject php, icons for order, total solutions, expert solutions, expert in, rows, php solve, find php expert, field steps, Data tables, Drupal View, insert variable, rows insert, php table array, custom function php, php view data, php data view, field type drupal, minimal php, drupal type, drupal minimal, drupal views custom table, view drupal, views php drupal, drupal user field

Concernant l'employeur :
( 0 commentaires ) AP, Italy

N° du projet : #1642920

6 freelance ont fait une offre moyenne de 30 $ pour ce travail

fhedayatif

Hi, Please see PMB.

30 $ USD en 1 jour
(21 Commentaires)
5.2
tyna

I did the same this for my company.

30 $ USD en 1 jour
(3 Commentaires)
3.1
antramr

Drupal is my forte. I have completed great Drupal projects. View my profile to see my websites has been completed. Choose me and your problem will be solved.

30 $ USD en 1 jour
(6 Commentaires)
3.1
Mubbshirkazmi

Hi, When Ever you Assign me project, i'll provide you the solution.

30 $ USD en 1 jour
(2 Commentaires)
2.1
harinathar

Drupal expert is here, Your problem will be solved.

30 $ USD en 2 jours
(1 Commentaire)
0.9
panchalnikul24

hello sir i can complete this task as soon as possible

30 $ USD en 1 jour
(0 Commentaires)
0.0