Jump to content
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

[email protected]'s Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have the same problem. Originally was version 1.4, updated to 1.5. now I want to move to 1.6, do Export imaging products and have error: Original image is missing or empty (C: xampphtdocsikeabrest-plus/img/p/1/6/6/166.jpg) in the old version in the folder IMG no subfolders 1/2/3, images in the folder(img/p) as 11626-24126-thickbox_default.jpg. Help plz! Folder 1 is empty.
  2. Hello everyone. This is the solution for version 1.5.X. It's very simple. Modify the file : \pdf\invoice.tpl <!-- PRODUCTS TAB --> <table style="width: 100%"> <tr> <td style="width: 85%; text-align: right"> <table style="width: 100%; font-size: 8pt;"> <tr style="line-height:4px;"> <td style="text-align: left; background-color: #4D4D4D; color: #FFF; padding-left: 10px; font-weight: bold; width: 15%">{l s='Image' pdf='true'}</td> . . . <!-- PRODUCTS --> {foreach $order_details as $order_detail} {cycle values='#FFF,#DDD' assign=bgcolor} <tr style="line-height:6px;background-color:{$bgcolor};"> <td style="text-align: left; width: 15%"><img src="{$order_detail.pro_img}"/></td> Next, modify the file: \classes\pdf\HTMLTemplateInvoice.php /** * Returns the template's HTML content * @return string HTML content */ public function getContent() { $prod_dtl_id = $this->order->getProducts(); foreach($prod_dtl_id as &$product) { if ($product['image'] != null) { $name = 'product_mini_'.(int)$product['product_id'].(isset($product['product_attribute_id']) ? '_'.(int)$product['product_attribute_id'] : '').'.jpg'; // generate image cache, only for back office $product['image_tag'] = ImageManager::thumbnail(_PS_IMG_DIR_.'p/'.$product['image']->getExistingImgPath().'.jpg', $name, 45, 'jpg'); if (file_exists(_PS_TMP_IMG_DIR_.$name)) $product['image_size'] = getimagesize(_PS_TMP_IMG_DIR_.$name); else $product['image_size'] = false; } $product['pro_img'] = _PS_TMP_IMG_DIR_.$name; } $country = new Country((int)$this->order->id_address_invoice); $invoice_address = new Address((int)$this->order->id_address_invoice); $formatted_invoice_address = AddressFormat::generateAddress($invoice_address, array(), '<br />', ' '); $formatted_delivery_address = ''; if ($this->order->id_address_delivery != $this->order->id_address_invoice) { $delivery_address = new Address((int)$this->order->id_address_delivery); $formatted_delivery_address = AddressFormat::generateAddress($delivery_address, array(), '<br />', ' '); } $customer = new Customer((int)$this->order->id_customer); $this->smarty->assign(array( 'order' => $this->order, 'order_details' => $this->order_invoice->getProducts(), 'cart_rules' => $this->order->getCartRules($this->order_invoice->id), 'delivery_address' => $formatted_delivery_address, 'invoice_address' => $formatted_invoice_address, 'tax_excluded_display' => Group::getPriceDisplayMethod($customer->id_default_group), 'tax_tab' => $this->getTaxTabContent(), 'customer' => $customer )); $this->smarty->assign('order_details', $prod_dtl_id); return $this->smarty->fetch($this->getTemplateByCountry($country->iso_code)); } /** * Returns the tax tab content */ That's all. works 100%. How to configure User Interface, I think the problems will not make.
×
×
  • Create New...