delboy01 Posted March 1, 2015 Share Posted March 1, 2015 hi people would like to know how to remove the phone number on the delivery slip please been at it far to long now and getting no where apart from moving there phone number down to the left side i just don't want delivery company and think the buyer wouldn't like there phone number on show i just don't know what to do i tried some html but nothing phone numbers showing on there address please help Link to comment Share on other sites More sharing options...
delboy01 Posted March 2, 2015 Author Share Posted March 2, 2015 anyone please? Link to comment Share on other sites More sharing options...
delboy01 Posted March 2, 2015 Author Share Posted March 2, 2015 No one want to share the love ? Link to comment Share on other sites More sharing options...
delboy01 Posted March 6, 2015 Author Share Posted March 6, 2015 still looking for the answer if someone would like to share thanks Link to comment Share on other sites More sharing options...
delboy01 Posted March 9, 2015 Author Share Posted March 9, 2015 need to edit this to stop the phone number going onto the deliver label please anyone ? lass HTMLTemplateDeliverySlipCore extends HTMLTemplate { public $order; public function __construct(OrderInvoice $order_invoice, $smarty) { $this->order_invoice = $order_invoice; $this->order = new Order($this->order_invoice->id_order); $this->smarty = $smarty; // header informations $this->date = Tools::displayDate($this->order->invoice_date); $prefix = Configuration::get('PS_DELIVERY_PREFIX', Context::getContext()->language->id); $this->title = sprintf(HTMLTemplateDeliverySlip::l('Delivery #%1$s%2$06d'), $prefix, $this->order_invoice->delivery_number); // footer informations $this->shop = new Shop((int)$this->order->id_shop); } /** * Returns the template's HTML content * @return string HTML content */ public function getContent() { $delivery_address = new Address((int)$this->order->id_address_delivery); $formatted_delivery_address = AddressFormat::generateAddress($delivery_address, array(), '<br />', ' '); $formatted_invoice_address = ''; if ($this->order->id_address_delivery != $this->order->id_address_invoice) { $invoice_address = new Address((int)$this->order->id_address_invoice); $formatted_invoice_address = AddressFormat::generateAddress($invoice_address, array(), '<br />', ' '); } $carrier = new Carrier($this->order->id_carrier); $carrier->name = ($carrier->name == '0' ? Configuration::get('PS_SHOP_NAME') : $carrier->name); $this->smarty->assign(array( 'order' => $this->order, 'order_details' => $this->order_invoice->getProducts(), 'delivery_address' => $formatted_delivery_address, 'invoice_address' => $formatted_invoice_address, 'order_invoice' => $this->order_invoice, 'carrier' => $carrier, 'delivery_phone' => (!empty($delivery_address->phone) ? $delivery_address->phone : $delivery_address->phone_mobile) )); return $this->smarty->fetch($this->getTemplate('delivery-slip')); } /** * Returns the template filename when using bulk rendering * @return string filename */ public function getBulkFilename() { return 'deliveries.pdf'; } /** * Returns the template filename * @return string filename */ public function getFilename() { return Configuration::get('PS_DELIVERY_PREFIX', Context::getContext()->language->id, null, $this->order->id_shop).sprintf('%06d', $this->order->delivery_number).'.pdf'; } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now