Jump to content

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

Invoice, Invoice Editor Changes Rate Topic   - - - - -

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

Posted 11 July 2018 - 07:35 AM #1

If someone did not notice this yet please check it as you may be in trouble..

 

452 -> 481 cs-cart changed how invoices are shown.

 

 

Say you got many currencies in store just so customers would easier understand the price, but you operate in your national currency, write invoice and add products in that currency.

 

CS-cart decided if you got this currency say UK pound and customer placed order while navigating in this currency, invoice will be only in that currency does not even matter if your payment methods does not even support it or your accountant is not able to process this either!

 

In 452 if I were using currency selector in backend this was changing currency for invoice aswell, but not it is not possible to change invoice currency in tweak invoice editor..

 

 

If there is anyone who can help me revert this crazy change please let me know



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

Posted 11 July 2018 - 12:51 PM #2

I have tried to print invoices in different currencies on the demo and it works correctly.


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
  • 3157 posts

Posted 11 July 2018 - 02:03 PM #3

I mean tweak and send invoice editor not print function.

 

- you can print invoice in any currency but without it being edited

- if you tweak and send invoice to customer you cannot change currency only in one customer viewed.

 

Who and why changed this? What the logic behind this? I still have my old 452 on subdomain and it does not work like this.

 

How do I revert this stupid logic?


What php file is responsible for invoice generation ?

Attached Thumbnails

  • editor.jpg


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

Posted 12 July 2018 - 05:54 AM #4

Try to add currency parameter to app/controllers/backend/orders.php

 

replace

$view->assign('invoice', $document_type->renderById($order_id, 'invoice', CART_LANGUAGE));

with

$view->assign('invoice', $document_type->renderById($order_id, 'invoice', CART_LANGUAGE, CART_SECONDARY_CURRENCY));

(!) Not tested


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
  • 3157 posts

Posted 12 July 2018 - 08:08 AM #5

it works perfect! Thanks a lot :)



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

Posted 12 July 2018 - 12:40 PM #6

Thank you for keeping me updated!


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