Engraving Add On. V1.22. For Actinic V9.0.2. This patch adds a number of text entry fields to the website products. The number of characters in these fields will be counted and used to surcharge that product. The Field Length, optional Description, Free Characters, Pence per Additional Character, Maximum Displayed Width and Extra Width can all be set via Variables. INSTALLATION This patch contains modified Perl files for Actinic V9.0.2 only. Don't install these Perl files on other versions. The other files should work with Actinic version V9.0.0 onwards. It would be a good idea to make a Snapshot and to copy all of Site1 somewhere safe before doing anything below. The following files are replaced or modified so back them up first: ActinicOrder.pm Cart.pm OrderScript.pl ShoppingCart.pl Unzip this Zipfile into your Site folder. (1) Run Actinic and do File / Snapshot / Import Site Choose the file EngravingAddOn.acd (from your Site folder) and proceed with the import. The import should have a description: Engraving Add On. Partial Site Design. Safe to import into an existing site. (c) 2007, 2008 Drillpine Ltd - www.drillpine.biz Close down Actinic and Re start it. (2) In the Actinic Content Tree, click on any Product Section. Then select the Design Tab, then the Design Tree (bottom right). Click the top of the Design Tree (on default site - "Works Best with Reflective"). In the Layout Code window look for the line (about line 65 - NOT the
line near the top): Paste the following above it. (3) Look in your Overall Layout for the fragment (it's in the line): onload=" amend it to read (leave the rest of the line intact) onload="refreshcounts(); Click Apply. (4) Go to Design / Library / Layouts / Products / ProductLayout / Values In the Available Layout Names, select Standard Layout Using CSS with Engraving and click the [>] arrow to move it to Layouts Offered By This Selector. OK out. That's installation finished. INITIAL SETUP In Settings / Site Options / Engraving Charge, set the variable EngravingVatFactor as below If your site uses product prices entered Excluding tax and you show: VAT Inclusive Product Prices Vat Exclusive Product Prices 1.175 1 (enter engraving charges INCLUDING VAT) (enter engraving charges excluding VAT) If your site uses product prices entered Including tax and you show: VAT Inclusive Product Prices Vat Exclusive Product Prices** 1 0.8511 (enter engraving charges including VAT) (enter engraving charges EXCLUDING VAT) **The informative engraving pricing in the Cart will be displayed excluding VAT. OPERATION Just use layout Standard Layout Using CSS With Engraving for the products you want an engraving applied to. You can change Variables Line1Length the number of charcters allowed Line2Length " Line3Length " Line4Length " Line5Length " FreeChars the number of free characters (use 0 if all are chargeable) PencePerChar pence per additional character EngravingCharge price in pounds for setup (use 0 if no charge) MaxSize maximum width (characters)to show any field at Overlap extra character space (allows for wide characters - leave at 10) to different values if required. You can do this at the Site, Section or Product level. If you use small values for PencePerChar or EngravingCharge then always us a leading zero; e.g. 0.50, 0.99, etc. If you want to have fewer text entry lines on a product then set the Value to empty on Line5Length, Line4Length, etc (starting from end). If you have these Properties set at the Section or Global level and you want to remove them from a particular product, enter them for that product but set the value to empty. NOTES The properties can be set on a global, per-page (Section) or per-product basis. If you are using per-page properties you MUST set them on the actual page (Section). Do not rely on them being carried through from a higher level page (Section). LAYOUT It is very easy to add the Engraving option to any other product layout. Just insert layout "Engraving Option" where you want this to appear. ADVANCED CUSTOMISATION It is possible to use a Choice to set the style for the text input boxes. You might want to do this to show the engraving text in alternative fonts. To do this simply add the style code to each Choices EngravingTextStyle field. Your first style should match the default (Arial) set in textfieldsupport.js E.g. Attribute called Font, Choices set as below:- Choice Name EngravingTextStyle Arial font-family:Arial Palatino font-family:Palatino Linotype Orbus font-family:Orbus Multiserif or using images for these fonts Choice Name HTML for Name EngravingTextStyle Arial !!<>!!Arial font-family:Arial Palatino !!<>!!Palatino font-family:Palatino Linotype Orbus !!<>!!Orbus font-family:Orbus Multiserif The styles used for the text input area are controlled by variables at the top of textfieldsupport.js. UPGRADING ACTINIC If Actinic gets updated it is very likely that the Perl scripts (ActinicOrder.pm, Cart.pm, OrderScript.pl, ShoppingCart.pl) will need to be re-patched. The patched code can be found by looking for the string "norcat" in the ones from this zipfile. Or contact me (Norman Rouxel) via rouxel@drillpine.biz UNISTALLATION Change all products that use layout "Standard Layout Using CSS With Engraving" to use another layout. Restore the following files in your Site folder to their originals ActinicOrder.pm Cart.pm OrderScript.pl ShoppingCart.pl Remove the following line from your overall layout (and any other Primary Templates that you use for products) Also in your overall layout change the fragment in the