Erwin1
(Erwin)
1
I am trying to display the generated pdf in another web browser window, I am using :
<%= button_link_to t(“#{button}_print”), spree.admin_order_path(@order, :pdf, :template => button, :target => ‘_blank’) %>
but it’s always displayed in the same current web window , where am I wrong ?
thanks for feedback
Erwin1
(Erwin)
2
sorry I guess wrong group, should be Spree group
I guess you should put the :target param outside the helper admin_order_path. This way:
<%= button_link_to t(“#{button}_print”), spree.admin_order_path(@order, :pdf, :template => button), :target => ‘_blank’ %>