Skip to content

Adds a button to the dashboard in an order to print it with a customizable template.

Notifications You must be signed in to change notification settings

sdrenth/Commerce_PrintOrder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Commerce_PrintOrder

Adds a button to the dashboard in an order to print it with a customizable template. Similar to Packing Slip, but can print the entire order.

Setup

Install the module from the modx.com provider and enable it in Commerce -> Configuration -> Modules. On 0.11.1 and below, modify admin/widgets/action-button.twig in your template to include {% if action.newWindow %} target="_blank"{% endif %}. This allows it to open the print view in a new tab. Example:

<a href="{{ action.url }}" class="ui button {% if action.modal %}commerce-ajax-modal{% endif %}"{% if action.newWindow %} target="_blank"{% endif %}>
    {% if action.icon %}<i class="icon {{ action.icon }}"></i>{% endif %}
    {{ action.title }}
</a>

The print order will now show in the order actions. You can override the template by making a printorder/print.twig file in your template.

About

Adds a button to the dashboard in an order to print it with a customizable template.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 87.4%
  • HTML 12.6%