Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Payment Method Description To Admin Order Details Page Rate Topic   - - - - -

 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3190 posts

Posted 21 June 2018 - 07:58 AM #1

is there an easy way to display besides payment method title also description, in admin order details page?

 

Dont want to put explanation to make title too long.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18009 posts

Posted 21 June 2018 - 01:24 PM #2

design/backend/templates/views/orders/details.tpl

 

add 

{$order_info.payment_method.instructions nofilter}

before

{if $order_info.payment_info}

Note: instructions are stored in database with order data. So if you change instruction, old value will be displayed for orders which were placed before this date


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3190 posts

Posted 21 June 2018 - 02:40 PM #3

I think it is for payment instructions, originally I have asked for description field.

 

What should I use for description field instead of $order_info.payment_method.instructions

 

as I understand I could use $order_info.payment_method.description

 

but this gives me nothing

 

Thanks



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18009 posts

Posted 22 June 2018 - 06:54 AM #4

In this case try

{$p_data = $order_info.payment_id|fn_get_payment_method_data}
{if $p_data.description}
    {$p_data.description nofilter}
{/if}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3190 posts

Posted 22 June 2018 - 08:24 AM #5

Added your code as this

 

 

{$p_data = $order_info.payment_id|fn_get_payment_method_data}
{if $p_data.description}
    {$p_data.description nofilter}
{/if}

                    {if $order_info.payment_info}
                        {foreach from=$order_info.payment_info item=item key=key}
                        <div class="control-group">

 

deleted

 

var/cache/backend

 

but no change in admin order details page



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18009 posts

Posted 22 June 2018 - 12:57 PM #6

Try to add the following to check what information is returned by the function

{$p_data|fn_print_r}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.