View Issue Details

IDProjectCategoryView StatusLast Update
0004032OXID eShop (all versions)1. ----- eShop frontend -----public2012-12-21 11:16
Reporteralbert0346 
PriorityhighSeveritytextReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.6.0 revision 44406 
Target VersionFixed in Version4.8.0_5.1.0_beta1 
Summary0004032: In customer email is download message even when NO downloads are available
DescriptionThis belongs to the file order_cust.tpl. I translate the message from German to English: "Download your ordered files here."
Steps To ReproduceDon't activate downloads in Admin. Then make a test order. Look at the customer email.
Additional InformationI have not tested theme Basic.
TagsNo tags attached.
ThemeAzure
BrowserFireFox 6.x
PHP Versionany
Database Versionany

Relationships

has duplicate 0004748 resolvedsvetlana text for download function still in email 

Activities

nickname

2012-05-14 21:42

reporter   ~0006600

Change the code for the download-article in the order.cust.tpl (Azure, Basic Analog):


[{block name = "email_html_order_cust_download_link"}]
[{If $ oOrderFileList}]

[{foreach from = $ item = oOrderFileList "oOrderFile"}]

<h3 style = "font-weight: bold; margin: 20px 0 7px; padding: 0; line-height: 35px; font-size: 12px; font-family: Arial, Helvetica, sans-serif; text-transform: uppercase ; border-bottom: 4px solid # ddd ">
[{Ident = oxmultilang "MY_DOWNLOADS_DESC"}]
</ h3>

<p style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">
[{if $ order-> oxorder__oxpaid-> value | |! $ oOrderFile-> oxorderfiles__oxpurchasedonly-> value}]
<a href="[{ oxgetseourl ident=$oViewConf-> getSelfLink () | cat: "cl = download" params = "sorderfileid =" | cat: $ oOrderFile-> getId ()}] "rel =" nofollow "> [{$ oOrderFile-> oxorderfiles__oxfilename-> value}] </ a> [{$ oOrderFile-> getFileSize () | oxfilesize}]
[{else}]
<span> [{$ oOrderFile-> oxorderfiles__oxfilename-> value}] </ span>
[oxmultilang {ident = "DOWNLOADS_PAYMENT_PENDING"}] </ p>
[{/ if}]
</ p>
[{/ foreach}]
[{/ if}]
[{/ block}]

Thus, the text: "Download your ordered files from here." Only displayed when actually download items were ordered.

andrius.silgalis

2012-12-21 11:16

reporter   ~0008197

To fix this issue manually will have to change 4 templates (in azure/tpl/email/):
html/order_cust.tpl
html/senddownloadlinks.tpl
plain/order_cust.tpl
plain/senddownloadlinks.tpl

Code changed from:
        [{ if $oOrderFileList }]
to:
        [{ if $oOrderFileList and $oOrderFileList|count }]