How to edit the email order template of OpenCart 1.5.6.1? - email

I would like to ask, how I can edit the following email order template of Opencart version 1.5.6.1?
Subject: Gifts - Order 804
You have received an order.
Order ID: 804
Date Added: 22/04/2014
Order Status: Pending
Products
1x Mother of Pearl Rosary (RO-21) $26.00 1x Holy Water & Oil From Holy Land (HWC-01) $15.00 1x Rosary with holy earth (RO-12) $15.00 1x Box with Jerusalem Cross (BO-08) $14.00
Order Totals
Sub-Total: $70.00
UPS Ground: $12.67
Total: $82.67
The comments for your order are:
sacramental gifts for first communion
Now I want to add the name of the recipient at the top of the message, above the sentence "You have received an order", what I can do? What is the code I should add, and which files?
Please help me, I searched all Google and didn't find a solution !!

/catalog/model/checkout/order.php
but all the texts are translates, then you need to change on this file:
/catalog/language/english/mail/order.php

Related

iab.taxonome.org error code -5

i'm trying to use iab.taxonome.org service to classify texts, and get error response -5 (text too short)
Here is what i'm sending to the service:
https://rest.taxonome.org/v1/taxono?me=A college basketball game at Allen Fieldhouse, in Lawrence, Kansas, the home of the Kansas Jayhawks
The history of basketball is traced back to a YMCA International Training School, known today as Springfield College, located in Springfield, Massachusetts&token=[...MyKey...]&ver=1
Indeed I had the same issue. After clearing this with taxonome support team I figure out there is a requirement for at least 500 words per classification.
I have asked to add it to the API reference page.
Double checking and editing my answer: It is depends which framework is being used to send this data. In case you are implementing the client and not encoding the URL string it won't work for you (e.g. space = %20).
Check the API example here:
https://iab.taxonome.org/api

How can I extract the text from inside multiple sets of HTML tags?

I have a batch of text files from which I am trying to remove HTML tags. The text that I want preserved in each file is between <TEXT> and </TEXT>. In some of these files, there is a second instance of <TEXT> and </TEXT> in the bottom half of the document that I want preserved as well.
HTML::Restrict works great for preserving all relevant text in the first instance, but it doesn't seem to preserve the text between the second instance of <TEXT> and </TEXT>.
My code is:
$hr = HTML::Restrict->new() ;
$processed = $hr->process($doc) ;
I can't discern any options within the HTML::Restrict module that I can tweak to ensure that the second part of the text file is preserved. Do such options exist, or is there a better way to accomplish this task? I've tried some regex, but so far I've run into a similar problem with that as well.
Below is the original file. The resulting output is everything the first instance of <TEXT> (immediately above "UNITED STATES") and the first instance of </TEXT> in the third grey box from the bottom.
-----BEGIN PRIVACY-ENHANCED MESSAGE-----
Proc-Type: 2001,MIC-CLEAR
Originator-Name: webmaster#www.sec.gov
Originator-Key-Asymmetric:
MFgwCgYEVQgBAQICAf8DSgAwRwJAW2sNKK9AVtBzYZmr6aGjlWyK3XmZv3dTINen
TWSM7vrzLADbmYQaionwg5sDW3P6oaM5D3tdezXMm7z1T+B+twIDAQAB
MIC-Info: RSA-MD5,RSA,
VlTZCBM7TRNLONv/I0OgPsjKD23uR2Zn9/jJ4XrBQY8DlPxfH2+iX+W5TZjhZEQY
shGRyuAw29phAaxb1IPhgQ==
<SEC-DOCUMENT>0001157523-06-001366.txt : 20060209
<SEC-HEADER>0001157523-06-001366.hdr.sgml : 20060209
<ACCEPTANCE-DATETIME>20060209161745
ACCESSION NUMBER: 0001157523-06-001366
CONFORMED SUBMISSION TYPE: 8-K
PUBLIC DOCUMENT COUNT: 2
CONFORMED PERIOD OF REPORT: 20060209
ITEM INFORMATION: Results of Operations and Financial Condition
ITEM INFORMATION: Financial Statements and Exhibits
FILED AS OF DATE: 20060209
DATE AS OF CHANGE: 20060209
FILER:
COMPANY DATA:
COMPANY CONFORMED NAME: ANALOG DEVICES INC
CENTRAL INDEX KEY: 0000006281
STANDARD INDUSTRIAL CLASSIFICATION: SEMICONDUCTORS & RELATED DEVICES [3674]
IRS NUMBER: 042348234
STATE OF INCORPORATION: MA
FISCAL YEAR END: 1205
FILING VALUES:
FORM TYPE: 8-K
SEC ACT: 1934 Act"
SEC FILE NUMBER: 001-07819
FILM NUMBER: 06593279
BUSINESS ADDRESS:
STREET 1: ONE TECHNOLOGY WAY
CITY: NORWOOD
STATE: MA
ZIP: 02062
BUSINESS PHONE: 7813294700
MAIL ADDRESS:
STREET 1: ONE TECHNOLOGY WAY
CITY: NORWOOD
STATE: MA
ZIP: 02062
</SEC-HEADER>
<DOCUMENT>
<TYPE>8-K
<SEQUENCE>1
<FILENAME>a5077045.txt
<DESCRIPTION>ANALOG DEVICES, INC., 8-K
<TEXT>
UNITED STATES
SECURITIES AND EXCHANGE COMMISSION
Washington, D.C. 20549
FORM 8-K
CURRENT REPORT
Pursuant to Section 13 OR 15(d) of The Securities Exchange Act of 1934
Date of Report (Date of earliest event reported): February 9, 2006
Analog Devices, Inc.
- --------------------------------------------------------------------------------
(Exact name of registrant as specified in its charter)
Massachusetts 1-7819 04-2348234
- --------------------------------------------------------------------------------
(State or other juris- (Commission (IRS Employer
diction of incorporation File Number) Identification No.)
One Technology Way, Norwood, MA 02062
- --------------------------------------------------------------------------------
(Address of principal executive offices) (Zip Code)
Registrant's telephone number, including area code: (781) 329-4700
- --------------------------------------------------------------------------------
(Former name or former address, if changed since last report)
Check the appropriate box below if the Form 8-K filing is intended to
simultaneously satisfy the filing obligation of the registrant under any of the
following provisions (see General Instruction A.2. below):
|_| Written communications pursuant to Rule 425 under the Securities Act (17
CFR 230.425)
|_| Soliciting material pursuant to Rule 14a-12 under the Exchange Act (17 CFR
240.14a-12)
|_| Pre-commencement communications pursuant to Rule 14d-2(b) under the
Exchange Act (17 CFR 240.14d-2(b))
|_| Pre-commencement communications pursuant to Rule 13e-4(c) under the
Exchange Act (17 CFR 240.13e-4(c))
<PAGE>
Item 2.02. Results of Operations and Financial Condition
On February 9, 2006, Analog Devices, Inc. announced its financial results
for the quarter ended January 28, 2006. The full text of the press release
issued in connection with the announcement is attached as Exhibit 99.1 to this
Current Report on Form 8-K.
The information in this Form 8-K and the exhibit attached hereto shall not
be deemed "filed" for purposes of Section 18 of the Securities Exchange Act of
1934 (the "Exchange Act") or otherwise subject to the liabilities of that
section, nor shall it be deemed incorporated by reference in any filing under
the Securities Act of 1933 or the Exchange Act, except as expressly set forth by
specific reference in such a filing.
EXHIBIT INDEX
Exhibit No. Description
- ----------- -----------
99.1 Press release dated February 9, 2006 issued by Analog
Devices, Inc.
</TEXT>
</DOCUMENT>
<DOCUMENT>
<TYPE>EX-99.1
<SEQUENCE>2
<FILENAME>a5077045ex99_1.txt
<DESCRIPTION>EXHIBIT 99.1
<TEXT>
Exhibit 99.1
Analog Devices Reports Results for the
First Quarter of Fiscal Year 2006
NORWOOD, Mass.--(BUSINESS WIRE)--Feb. 9, 2006--Analog Devices,
Inc. (NYSE: ADI):
-- Board of Directors declares dividend of $0.12 per share for
the quarter.
-- Financial results for the first quarter and guidance for the
second quarter to be discussed on conference call today at
4:30 pm.
Analog Devices, Inc. (NYSE: ADI), a global leader in
high-performance semiconductors for signal processing applications,
today announced revenue of $621.3 million for the first quarter of
fiscal 2006, an increase of 7% compared to the same period one year
ago and approximately even with the immediately prior quarter's $622.1
million in revenue.
CONTACT: Analog Devices, Inc.
Maria Tagliaferro,781-461-3282
Director of Corporate Communications,
781-461-3491 (fax)
investor.relations#analog.com
</TEXT>
</DOCUMENT>
</SEC-DOCUMENT>
-----END PRIVACY-ENHANCED MESSAGE-----
Since you don't really have an HTML document, you want a parser that is not thrown off by various crap thrown at it.
In the example below, I put the sample text above in the __DATA__ section of my script for convenience. In the real world, you should open the file with the appropriate encoding.
#!/usr/bin/env perl
use strict;
use warnings;
use HTML::TokeParser::Simple;
my $parser = HTML::TokeParser::Simple->new(handle => \*DATA);
my #text;
while (my $token = $parser->get_token) {
if ($token->is_start_tag('text')) {
push #text, $parser->get_text('/text');
}
}
print "[[[>>>$_<<<]]]\n\n" for #text;
__DATA__
This should give you all matches (tested myself):
my #text = $doc =~ /<TEXT>(.*?)<\/TEXT>/gs

Can't find instructions to get rid of HTML_TITLE_SUBJ_DIFF

Outlook 2013 tests my newsletter with a few tests, and gives the newsletter a Spam-Score of 3.9 (5 is required). I wan't to have the score as low as possible, but I can't find what to do at the "HTML_TITLE_SUBJ_DIFF"-Test, and nowhere is written what's that for a test is.
Do you have some experience with that?
Thanks in advance.
Regards, john
After digging configuration and sources of spamassassin-3.3.2:
Length of title in html seems to be 3.5 times longer than length of email subject.
Make html title shorter or email subject longer.
John -
You can always rescore the rule manually. In your local.cf file you can have a line like this:
score HTML_TITLE_SUBJ_DIFF 0.0
The scores in the local.cf override all scores elsewhere.

stored long description in Sqlite database manager in iphone

I want to store long description in sqlite database manager in iphone like this data.
"The Golden Temple: The Golden Temple, popular as Sri Harmandir Sahib or Sri Darbar Sahib, is the sacred seat of Sikhism. Bathed in a quintessential golden hue that dazzles in the serene waters of the Amrit Sarovar that lace around it, the swarn mandir (Golden temple) is one that internalizes in the mindscape of its visitors, no matter what religion or creed, as one of the most magnificent House of Worship. On a jewel-studded platform is the Adi Grantha or the sacred scripture of Sikhs wherein are enshrined holy inscriptions by the ten Sikh gurus and various Hindu and Moslem saints. While visiting the Golden Temple you need to cover your head. Street sellers sell bandanas outside the temple at cheap prices."
I am trying to take as description (VARCHAR(5000)) but when i execute query it is showing half text with dotted (....) like that http://i.stack.imgur.com/gyMqi.png
Thanks
The ... surely indicate that the full text is present in the database. It also indicates that "Sqlite database browser" truncates past a certain length:
m_textWidthMarkSize = s.value("prefs/sqleditor/textWidthMarkSpinBox", 60).toInt();
Is there a way to change the settings?
Edit
You can verify that the text is fully saved with the following query (replace theTable with the correct table name):
select length(description) from theTable;

find the customer type and direct to relevent information

I am developing a site to sell some beverages to retail customers and wholesale customers.
I want to keep a log in form in landing page which help both customers to access site according their customer type (retail or wholesale)
I used member:log in_form and check my member_group. It is “1” because I already log in into my system.
Is this possible in EE: Create a Button for retail and button for wholesale. Then when a customer click a button system pick customer choice and give access to relevant member group using code snippet below.
{if member_group == 7}
Access to Retail group
{/if: elseif member_group == 8}
Access to wholesale group
{if:else}
Welcome to our site.
{/if}
If it is not possible can you please guide me to the right track. I am new to EE.
What your suggesting is exactly the way to do it, with just a little change in the code:
{if member_group == 7}
Access to Retail group
{if:elseif member_group == 8}
Access to wholesale group
{if:else}
Welcome to our site.
{/if}
Note the change in line 3 - just a few typos.
Advanced conditionals are notoriously slow though, so look into Mark Croxton's Switchee for speed. You can more easily create entire blocks and case-test them en-masse with Switchee, and it's far faster overall than working on a per-component basis.