Zolko78 Posted April 18, 2010 Share Posted April 18, 2010 Salutare tuturorSunt 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. <?phprequire ('../../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');?> download-label.php Link to comment Share on other sites More sharing options...
costi43 Posted April 19, 2010 Share Posted April 19, 2010 ai introdus judetele romane?? la state??? Link to comment Share on other sites More sharing options...
Zolko78 Posted April 19, 2010 Author Share Posted April 19, 2010 Da, am introdus judetele, dar nu am reusit decat sa apare id-ul judetului. Nu stiu cum sa fac referinta la denumirea judetului. (Am incercat cu state, states, dar nu merge) Are cineva vreo idee? Link to comment Share on other sites More sharing options...
costi43 Posted April 19, 2010 Share Posted April 19, 2010 la "id_states" nu "name" ar trebui???? Link to comment Share on other sites More sharing options...
Zolko78 Posted April 19, 2010 Author Share Posted April 19, 2010 Am incercat si cu "name", dar nici asta nu functioneaza. Ce mi se pare interesant ca pentru tara accepta "country" Link to comment Share on other sites More sharing options...
Zolko78 Posted April 19, 2010 Author Share Posted April 19, 2010 Am reusit sa identific problema inspirand de la un topic italianLa denumirea judetului se poate face referinta cu: " $deliverystate = $ad->id_state ? new State($ad->id_state) : false; "Am atasat modulul modificat. Personalizarea se face prin editarea download-label.php, si schimbarea X-urilor. printlabel modificat.zip Link to comment Share on other sites More sharing options...
Recommended Posts