Jump to content

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

New "payment Surcharge" On Invoices Rate Topic   - - - - -

 
  • Brennie369
  • Senior Member
  • Members
  • Join Date: 17-Mar 08
  • 831 posts

Posted 07 November 2017 - 03:03 PM #1

After the latest upgrade to 4.6.3, the invoices now have a Payment Surcharge item in the subtotal area. What's this from and how can I remove it from the invoice if it doesn't apply to me?


CS-Cart 4.8.2


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3639 posts

Posted 07 November 2017 - 03:44 PM #2

It looks like a bug.  An if statement is used which shouldn't add it.

 

If you don't use it, you can delete it in Design->Documents->Invoice



 
  • Brennie369
  • Senior Member
  • Members
  • Join Date: 17-Mar 08
  • 831 posts

Posted 07 November 2017 - 04:22 PM #3

Thanks!


CS-Cart 4.8.2


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3639 posts

Posted 07 November 2017 - 04:27 PM #4

Actually it looks like they should have used the order raw variable instead of just the order variable.

 

Replace:

{% if o.payment_surcharge %}

With:

{% if o.raw.payment_surcharge %}


 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 435 posts

Posted 10 May 2018 - 10:38 AM #5

I'm on 4.3.9 CS version and do not have the Design->Documents->Invoice option on my backend, is there any other way to access that file?

 

Thanks!


4.3.9  


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

Posted 10 May 2018 - 12:50 PM #6

With old document editor you should edit the files

 

design/themes/THEME/mail/templates/orders/invoice.tpl

design/backend/mail/templates/orders/invoice.tpl


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 руб.


 
  • E.Qi.Librium
  • Senior Member
  • Members
  • Join Date: 05-Sep 09
  • 435 posts

Posted 10 May 2018 - 12:56 PM #7

Thanks, I found those files, but my version parameters are "=$order_info.payment_surcharge" in 3 different lines, not "if o.payment_surcharge", so this fix is not for me.


4.3.9  


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10760 posts

Posted 11 May 2018 - 03:52 AM #8

The only difference is syntax between Smarty and Twig.  For smarty, you'd use {$order_info.payment_surcharge} and for Twig you'd use {{o.raw.product_surcharge}}.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


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

Posted 11 May 2018 - 05:58 AM #9

Thanks, I found those files, but my version parameters are "=$order_info.payment_surcharge" in 3 different lines, not "if o.payment_surcharge", so this fix is not for me.

 

You can also print the whole array with order data with the following code

{$order_info|fn_print_r}

Then print invoice to see if necessary data present there


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 руб.