Hello! Is there a place where I can disable to PDF invoice? Or, I need to comment off the code. Please advice. Thank you.
You will need to comment it out. Look for the following in /skins/basic/admin/views/orders/details.tpl:
{capture name="extra_tools"}
{hook name="orders:details_tools"}
{include file="buttons/button_popup.tpl" but_text=$lang.print_invoice but_href="`$index_script`?dispatch=orders.print_invoice&order_id=`$order_info.order_id`" width="900" height="600" but_role="tool"} |
[COLOR="Red"]{include file="buttons/button.tpl" but_text=$lang.print_pdf_invoice but_href="`$index_script`?dispatch=orders.print_invoice&order_id=`$order_info.order_id`&format=pdf" but_role="tool"} | [/COLOR]
{include file="buttons/button_popup.tpl" but_text=$lang.print_packing_slip but_href="`$index_script`?dispatch=orders.print_packing_slip&order_id=`$order_info.order_id`" width="900" height="600" but_role="tool"} |
{include file="buttons/button.tpl" but_text=$lang.edit_order but_href="$index_script?dispatch=order_management.edit&order_id=`$order_info.order_id`" but_role="tool"}
{/hook}
{/capture}
There is a hook surrounding that code so you could create the hook file if you do not want to have to keep making the same change future upgrades.
Bob
[quote name=‘jobosales’]You will need to comment it out. Look for the following in /skins/basic/admin/views/orders/details.tpl:
{capture name="extra_tools"}
{hook name="orders:details_tools"}
{include file="buttons/button_popup.tpl" but_text=$lang.print_invoice but_href="`$index_script`?dispatch=orders.print_invoice&order_id=`$order_info.order_id`" width="900" height="600" but_role="tool"} |
[COLOR="Red"]{include file="buttons/button.tpl" but_text=$lang.print_pdf_invoice but_href="`$index_script`?dispatch=orders.print_invoice&order_id=`$order_info.order_id`&format=pdf" but_role="tool"} | [/COLOR]
{include file="buttons/button_popup.tpl" but_text=$lang.print_packing_slip but_href="`$index_script`?dispatch=orders.print_packing_slip&order_id=`$order_info.order_id`" width="900" height="600" but_role="tool"} |
{include file="buttons/button.tpl" but_text=$lang.edit_order but_href="$index_script?dispatch=order_management.edit&order_id=`$order_info.order_id`" but_role="tool"}
{/hook}
{/capture}
There is a hook surrounding that code so you could create the hook file if you do not want to have to keep making the same change future upgrades.
Bob[/QUOTE]
Thank you for your info. How do I create the hook file. Please advice.
Is it possible to change the default name of the PDF file. For example, mystore.com_order#1.pdf?
[quote name=‘grabbags’]Thank you for your info. How do I create the hook file. Please advice.[/QUOTE]
I probably got ahead of myself here. The Local Configuration add-on only works in the customer templates, not the add-min templates. We don’t have any documentation for CS-Cart’s included “My changes” feature which should also allow hooks for admin templates. You will need to make the change in the original template.
Bob