Jump to content

insert date and number in delivery (or invoice) PDF manualy


Suroiu

Recommended Posts

Hi there, I want when i press the button to view delivery slip PDF to insert the date and the number manually.

 

For that to happen I think a small popup windows with 2 input text area must appear (1 for date and 1 for number) where I put the date and number manually and after I press "OK" the delivery slip PDF to be generated.

 

I'm a beginner in programming but I think to do that I must modify the next area from "HTMLTemplateDeliverySlip.php":

 

// header informations
        $this->date = Tools::displayDate($order_invoice->date_add);
        $prefix = Configuration::get('PS_DELIVERY_PREFIX', Context::getContext()->language->id);
        $this->title = sprintf(HTMLTemplateDeliverySlip::l('%1$s%2$06d'), $prefix, $this->order_invoice->delivery_number);
 
Please help me and many other (I see i'm not the only one who what to do this) to make this modification.
Thank you in advance.
Edited by Suroiu (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...