Inhalte aufrufen

Profilbild

Add PO Number to Order Print/PDF and Packingslip Print/PDF

pdf print packing slip order extend

7 Antworten zu diesem Thema

#1 profnimrod

profnimrod

    Advanced Member

  • Members
  • 32 Beiträge

Geschrieben: 27 November 2017 - 21:03

If a new order is submitted with a customer Purchase Order number I'd like that to appear in the existing info box on the top right side of the printed/PDFed order and packingslip.

 

Is there a setting for this?

 

If not, what steps do I need to go through to add this functionality?

 

Many thanks, Kurt



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3308 Beiträge

Geschrieben: 27 November 2017 - 21:14

Open \Views\Order\Details.Print.cshtml and add a new line to table "order-info" (line 92) like:
<tr>
	<td class="label">Purchase Order Number:</td>
	<td class="value">@order.PurchaseOrderNumber</td>
</tr>

The same with the view for packing slip /Administration/Views/Order/ShipmentDetails.Print.cshtml.


Schöne Grüße aus Düsseldorf,
Marcus Gesing


#3 profnimrod

profnimrod

    Advanced Member

  • Members
  • 32 Beiträge

Geschrieben: 27 November 2017 - 21:35

Many thanks for the super quick answer as always.  The change for the order print worked perfectly.

 

I think the change for the shipment print is more complicated as PurchaseOrderNumber isn't part of the ShipmentModel.

 

What do you suggest?  Add the additional field to the database model, or query the database for the full order and grab the PO number from there?



#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3308 Beiträge

Geschrieben: 28 November 2017 - 13:37

I have created an issue to include the field in ShipmentModel.


  • profnimrod gefällt das

Schöne Grüße aus Düsseldorf,
Marcus Gesing


#5 profnimrod

profnimrod

    Advanced Member

  • Members
  • 32 Beiträge

Geschrieben: 29 November 2017 - 20:31

I see that the issue you created is already closed and the admin source code already updated.  Nice!  I wonder if, rather than waiting for 3.1 to be released, could I just compile the Administration project and use the resulting SmartStore.Admin.dll with my 3.0.3 version?



#6 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3308 Beiträge

Geschrieben: 29 November 2017 - 22:36

No. That's incompatible.


Schöne Grüße aus Düsseldorf,
Marcus Gesing


#7 profnimrod

profnimrod

    Advanced Member

  • Members
  • 32 Beiträge

Geschrieben: 29 November 2017 - 23:47

Thanks for letting me know.  What's the ETA on 3.1?



#8 Wolfgang Schmerge

Wolfgang Schmerge

    SmartStore AG

  • Administrators
  • 1907 Beiträge

Geschrieben: 30 November 2017 - 09:14

Hi,

 

1st quarter of 2018.

http://community.sma...v31/?hl=roadmap

 

Regards

 

Wolfgang


  • profnimrod gefällt das

Viele zusätzliche SmartStore.NET Plugins gibt es im MARKETPLACE:
http://community.sma...dex.php?/files/

 

Die deutsche SmartStore.NET Online-Dokumentation gibt es hier:
http://docs.smartsto...display/smnetde

In dem folgenden BLOG findet man interessante Tipps & Tricks zum Thema "SmartStore.NET":

http://community.sma...t-tipps-tricks/

 




Auf dieses Thema antworten



  

Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: pdf, print, packing slip, order, extend