Jump to content

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

Easy Editing Of Invoices And Email Notifications Rate Topic   * * * * * 1 votes

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

Posted 04 September 2017 - 02:07 PM #181

I am almost sure that the following templates should be corrected

 

design/themes/THEME/mail/templates/common/options_info.tpl

design/backend/mail/templates/common/options_info.tpl

 

Try to add <br /> after comma


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


 
  • remoteone
  • Member
  • Members
  • Join Date: 06-Oct 09
  • 688 posts

Posted 05 September 2017 - 01:11 AM #182

Ok, thanks,
I thought that /mail/templates/common/options_info.tpl might only apply to the old method,

I will try mod'ing via my_changes.

I guess the design/themes/THEME/mail/templates/common/options_info.tpl file applies just when customer is viewing orders.
I wish CSC didnt need so many  changes to fix obvious user-friendly issues!



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

Posted 05 September 2017 - 07:37 AM #183

I thought that /mail/templates/common/options_info.tpl might only apply to the old method,

 

 

As far as I can see, some variables still use old templates. E.g. please check the getOptions function in the app/Tygh/Template/Snippet/Table/ProductVariable.php file


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


 
  • imac
  • CTO
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2040 posts

Posted 14 September 2017 - 06:43 AM #184

What is the point in tweaking and sending invoice here

demo.cs-cart.com/stores/admin.php?dispatch=orders.details&order_id=95

 

If customer here

demo.cs-cart.com/stores/index.php?dispatch=orders.details&order_id=95

can download print not edited version?

 

 

 

The point is to send modified invoice that should be paid.

We discussed this question a year ago: http://forum.cs-cart...ndpost&p=257433

 

 

In

app/Tygh/Template/Document/Order/Variables
 
you are using __('invoice', array()
        $this->data['invoice_header'] = __('invoice', array(), $this->context->getLangCode());
        $this->data['invoice_id_text'] = __('order', array(), $this->context->getLangCode()) . '&nbsp;#' . $this->context->getOrder()->getId();
now if I change __('invoice', array() in ?dispatch=languages.translations
 
to something how it should be in my language, it would look like "PVM SASKAITA FAKTURA", and this would be seen everywhere __('invoice', array() is used. You should of used something additional like __('invoice_title', array() that would fix the problem..

Sounds fair. We will look into adding a new language variable.


Ilya Makarov,
CS-Cart Architect Team
Suggest and vote for new features | Report a bug

 
  • Web
  • Member
  • Members
  • Join Date: 13-Jul 15
  • 24 posts

Posted 26 November 2017 - 06:10 PM #185

Is this easy editor still available ? I can't find it anymore.

 

http://blog.cs-cart....he-admin-panel/

 

I have the latest version of cs-cart.



 
  • oleg.gorshkov
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3020 posts

Posted 27 November 2017 - 05:40 AM #186

Is this easy editor still available ? I can't find it anymore.

 

http://blog.cs-cart....he-admin-panel/

 

I have the latest version of cs-cart.

 

Hello!

 

Yes, please check the "Email templates mode" setting in Settings->Appearance. It should be set to "New".


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Mega SEO Package - All you need for your SEO


 
  • deepxtz
  • Advanced Member
  • Trial users
  • Join Date: 18-Feb 15
  • 51 posts

Posted 05 December 2017 - 11:46 AM #187

{{ p.counter }}

 

it's not working.



 
  • deepxtz
  • Advanced Member
  • Trial users
  • Join Date: 18-Feb 15
  • 51 posts

Posted 06 December 2017 - 11:21 AM #188

1.  - as answered above - use language variable.

2.a - we will add a new variable called {{counter}} I suppose it can be useful for many others.

2.b - can be done using language variable or 3rd part add-on if you have different measurements of you products.

2.c, 2.d, 2.e see Darius respond: http://forum.cs-cart...ndpost&p=245835

 

1. - on serial but on the number ?  the serial can be the same,  but the number is uniq. and when u reach the maximum number of 10k, u change the serial. 

2. - a not working

2.b - working

2.c, 2.d, 2.e -  Darius respond:  already works this way, but you have to enter product price without tax.

                      i don't want to show the product price without tax, more than that i can't, all online shops in our country show product price with tax, i cant be the one to change this to be different and confuse customers.



 
  • Web
  • Member
  • Members
  • Join Date: 13-Jul 15
  • 24 posts

Posted 08 December 2017 - 01:47 AM #189

Hello!

 

Yes, please check the "Email templates mode" setting in Settings->Appearance. It should be set to "New".

Thanks, it works



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

Posted 08 December 2017 - 06:44 AM #190

Invoice is a general word but what according to you does it actually mean and how is it treated in business?

 

I cannot speak for all but

 

To invoice someone - means to issue some sort of document where quantities and total are confirmed. In Europe in most cases it would be called a proforma invoice or something like advance invoice for payment to be made. In most cases proforma has no legal power, it does not confirm payment receipt or anything else.

 

Commercial invoice - means acknowledgment that funds where received. In most cases commercial invoice from buyers point would be combined and saved with bank transfer receipt, paypal receipt, cash register receipt if its a cash payment.

 

Business forms like sole priotorship invoice itself is a receipt for payment! This is why it is critically important how it is titled!!!

 

In some cases where there is a trust between seller and buyer commercial invoice can be issued without prior payment. In such cases even taxes for purchase is paid by seller even no actual payment is received yet!!!

 

 

The point is to send modified invoice that should be paid.

We discussed this question a year ago: http://forum.cs-cart...ndpost&p=257433

 



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

Posted 08 December 2017 - 06:56 AM #191

Here is how I have modified my invoice, it is made to multilingual, meaning prints in two languages

 

/public_html/app/Tygh/Template/Document/Order/Variables/OrderVariable.php

 

where

 

invoice_title_serija - means nr, ex INVOICE nr 100 (optional for most)

proforma_title_en - proforma invoice, not paid invoice

invoice_title_en - paid invoice

 /**
     * Initialize header for invoice.
     */
    protected function initInvoiceHeaderText()
    {
        $status_data = $this->context->getOrder()->getStatusData($this->context->getLangCode());

        $this->data['invoice_header'] = __('proforma_title', array(), $this->context->getLangCode());
        $this->data['invoice_id_text'] =  '<br />' . __('proforma_title_en', array(), $this->context->getLangCode());

        if (!empty($status_data['params']['appearance_type'])) {
            if ($status_data['params']['appearance_type'] == 'O') {
                $this->data['invoice_header'] = __('order_details', array(), $this->context->getLangCode());
                $this->data['invoice_id_text'] = '<br/>' . __('proforma_title_en', array(), $this->context->getLangCode());
            } elseif (!empty($this->data['doc_ids'][$status_data['params']['appearance_type']])) {
                $doc_id = $this->data['doc_ids'][$status_data['params']['appearance_type']];
                if ($status_data['params']['appearance_type'] == 'I') {
                    $this->data['invoice_id_text'] = '<br/>' . __('invoice_title_en', array(), $this->context->getLangCode());
                    $this->data['invoice_header'] = __('invoice_title', array(), $this->context->getLangCode()) . __('invoice_title_serija', array(), $this->context->getLangCode()) . $doc_id;
                } elseif ($status_data['params']['appearance_type'] == 'C') {
                    $this->data['invoice_id_text'] =  '<br/>' . __('credit_memo', array(), $this->context->getLangCode());
                    $this->data['invoice_header'] = __('credit_memo_title', array(), $this->context->getLangCode()) . __('invoice_title_serija', array(), $this->context->getLangCode()) . $doc_id;
                }
            }
        }
    }



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

Posted 08 December 2017 - 07:05 AM #192

Any invoice modification does not make sense if customer can print unchanged version from his order details page. Personally I have blocked print invoice feature via hooks but it is a question of logic and it is not just logical but can even cause business problem where for same order can be two or more not identical invoices become available. Invoice is one document and everywhere should be same identical.

 

Also I think invoice should be available only in pdf format!!!

 

- there should be save changes feature in tweak and send invoice.

- save as pdf  ---> download as pdf in customer order details page. Something like order attachments addon from simtechdev..