Jump to content

[Rezolvat] Modul print label (Mandat Postal)


Zolko78

Recommended Posts

Salutare tuturor

Sunt incepator in php. Am facut mici modificari la modulul printlabel. Problema mea este ca nu stiu cum sa afisez numele judetului in loc de id_state.

<?php
require ('../../tools/fpdf/fpdf.php');
//download-label.php?id_order=

//define('PS_ADMIN_DIR', getcwd());
include('../../config/config.inc.php');

if ($_GET["token"] != md5(Configuration::get('EXPINET_TOKEN')))
Tools::redirect('../..'.urldecode($_GET["adminfolder"]).'login.php');


if(intval($_GET["id_order"]) > 0) {
$order = new Order(intval($_GET["id_order"]));
$customer = new Customer($order->id_customer);
$ad = new Address(intval($order->id_address_delivery));
$products = $order->getProducts();
$entreprise=$ad->company;
$nom=$ad->firstname;
$prenom=$ad->lastname;
$champadresse1=$ad->address1;
$champadresse2=$ad->address2;
$codepostal=$ad->postcode;
$ville=$ad->city;
$mobtel=$ad->phone_mobile;
$state=$ad->id_state;
//$id_lang=$ad->id_lang;
$country=$ad->country;
$police=Configuration::get('POLICE');
?>

22186_KnpF6RaU0xRALZ164UDQ_t

download-label.php

Link to comment
Share on other sites

×
×
  • Create New...