Cannot understand this
Editing Invoice > order > taxes > [0..N] > o.taxes creates this
{{ o.taxes.[0..N].rate_value }}
but putting it to invoice code or snippet gives
Error Expected name or number at line 8
What is [0..N]
Cannot understand this
Editing Invoice > order > taxes > [0..N] > o.taxes creates this
{{ o.taxes.[0..N].rate_value }}
but putting it to invoice code or snippet gives
Error Expected name or number at line 8
What is [0..N]
I think it is symbolism for array index from zero to the last index. I.e. tax[0] = 0.24, tax[1] = 1.23
0..N would sum index 0 and index 1 together for a total of 1.47.
This is a guess. I have not investigated the code. I believe it is TWIG syntax for summing an array.
Please note that it can be name or number! Real nice from the developer side not to include any documentation at all for this..
How it is for consumer to understand all this
Ilya
just was looking to implement from Social Buttons the Facebook page url ($addson.social_buttons.facebook_href) in the footer in place of hardcoded facebook page address.
I have tried a few methods like
but no luck.
Is it possible to implement a field from an Addon xml at all?
Fotis
Fotis, when this was all under development I asked that they incorporate an import/export mechanism so that one could use exported data as addon data during installation. I was essentially told that it wasn't necessary. I pushed back, but to no avail. Maybe you have more influence because without it, providing support for addon templates in the new email designer is almost impossible. There's no real process.
One should be able to export/import data based on the object so for instance I could export the order_info object, add a new field that was added to the DB and then re-import to have this variable show up. This would also serve as a model for other new variables/objects based on the addon's needs.
Fotis, when this was all under development I asked that they incorporate an import/export mechanism so that one could use exported data as addon data during installation. I was essentially told that it wasn't necessary. I pushed back, but to no avail. Maybe you have more influence because without it, providing support for addon templates in the new email designer is almost impossible. There's no real process.
One should be able to export/import data based on the object so for instance I could export the order_info object, add a new field that was added to the DB and then re-import to have this variable show up. This would also serve as a model for other new variables/objects based on the addon's needs.
Well after all it was a t hing of investigating. We have found the way to let info from addons XMl file to appear in Email Docs
The correct format for the case I mentioned above is
Can anyone explain to me how I get the user title (as in Mr. Ms. Dr., etc...) into an order notification email? The field name for this data is "b_title1" I had hoped I could insert this into the body of an email as in, " {{ __("dear") }} {{ order_info.b_title1 }}{{ order_info.firstname }}," I would definitely love to see some in depth documentation for email template editing.
Thanks in advance, Robb
Can anyone explain to me how I get the user title (as in Mr. Ms. Dr., etc...) into an order notification email? The field name for this data is "b_title1" I had hoped I could insert this into the body of an email as in, " {{ __("dear") }} {{ order_info.b_title1 }}{{ order_info.firstname }}," I would definitely love to see some in depth documentation for email template editing.
Thanks in advance, Robb
Agreed, on seeing some documentation... Being able to add more customer details like reward points sure would be nice.
Ask your friendly helpdesk.
How to change that Demo Store logo to my own logo? please help me out
How to change that Demo Store logo to my own logo? please help me out
Please refer to the following article:
http://docs.cs-cart.com/4.5.x/user_guide/look_and_feel/changing_attributes/change_logo.html
not here man, i want to change it on mail invoice,when a customer register or buy something on my site a default mail he get.and in that demo store is the default logo so i want to change it?
not here man, i want to change it on mail invoice,when a customer register or buy something on my site a default mail he get.and in that demo store is the default logo so i want to change it?
Please refer to the same article. You should change the mail logo
i already change the logo of my home page but cant change the demo store logo of invoice page
i already change the logo of my home page but cant change the demo store logo of invoice page
Thanks Man. and sry fr nt understanding...thank you once again
Hy there,
There is a way to add the category name in front of name of the product... i was trying to make on invoice template, but without success.
Like if category parent of product is TV... on invoice and packing slip entire name will be:
TV | Sounay Bravio....
Female Shoe | Brase Charc...
Hello,
Unfortunately there is no easy way to do it. Theoretically it should look like this http://prntscr.com/f8scz3but practically it is require to extend ProductVariable class. So, this task require some custom development modification. Please contact us if you are interested in it.
Thank you.
Hello,
Unfortunately there is no easy way to do it. Theoretically it should look like this http://prntscr.com/f8scz3but practically it is require to extend ProductVariable class. So, this task require some custom development modification. Please contact us if you are interested in it.
Thank you.
Already i try like this and other similar directly on .tpl
Without succes