Jump to content



Member Since 12 Feb 2018
Offline Last Active Aug 09 2021 02:32 PM

#307848 How To Remove Print Invoice Options From Orders?

Posted by discodud on 19 October 2018 - 07:57 AM

&ctpl worked perfectly, thank you.

#298804 How To Include Variables In Email Snippets

Posted by discodud on 23 March 2018 - 06:19 PM

Reading is the easy part, understanding it is something else.

Much of the fault in my inability to proceed lies with my lack of a basic understanding of website development.


When I initially evaluated CSC it was with 4.3.9, and I thought "hey, I can do this", but when I eventually bought the package it was at 4.4.2. Everything has progressed fine till I got to producing documents and emails for customers etc, and the brick wall jumped out in front of me. 


I will probably have to do as most others have done and revert to the old version of invoices, although this is less than ideal as I suspect that at some stage in the future this will disappear from CSC and then I will be back where I am now.


It would be really great if someone (anyone!), perhaps the guys from CSC, could provide a "layman/noob" instructional on how to add variables etc, even if on only one example that we can use as a guide, I am sure it would not only help a great number of people but also allow CSC to show their support of their clientelle. I can fiddle and in time maybe even get the Barcode variable to work, but then when I look at the Supplier Variable I find that there isn't anything named SupplierVariable anywhere, yet the variable pops up in the Supplier Invoice like magic. Puzzling. 


What really scares me going forward is that, I believe, the majority of people that purchase CSC are not developers, many are at a similar level as me trying to establish a web presence for their business and eventually, as CSC continue to include more complexity (to the extent where knowledgeable people such as yourself have challenges with the documents), we will no longer be able to work on the platform and will have to move on to something more usable, which will be a pity because I believe that CSC is a great package in most respects. 

Thank you for your time and input, it is really good to know that there are people out there willing to assist.


#298756 How To Include Variables In Email Snippets

Posted by discodud on 23 March 2018 - 09:33 AM

Hi tbirnseth


I fiddled and found that I can add a variable into a email snippet, provided that variable is included in the email templates. Kind of puzzled as to why one would want to add a variable as a snippet when you can just add it as a variable, but there must be a reason. Either way, that doesn't help me, I want to add a variable that does not exist in the email templates, so I guess I need to add the variable to the Email Templates first.

Remember I said I know nothing about coding...seems I'm proving it. 

In reading the developer documentation, there are three sections, one for Email templates, Documents and then Snippets. In the Email templates section there is no mention of how to add a variable, so I am guessing I should be following the guidelines for adding a variable to documents? The example they use is for adding the Barcode variable. Should I therefore be implementing a class for Barcode to appear as a variable in Email Templates, as indicated by

"Let’s extend the variable schema for the documents of the order type. To do that, add a file /app/addons/barcode/schemas/documents/order.post.php:"?

If so, how do I get that to appear in Email Templates as this clearly intended for Documents.

Yes, I too wonder how I have managed to put together a website, I will be amazed if it works properly when finished. I thought this was going to be easy, like building lego...a monster learning curve for me