#81 closed Bug/Fehler (fixed)
Typo in /inc/xtc_collect_posts.inc.php
| Reported by: | Owned by: | Ronald Parcinski | |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.0.0 |
| Component: | Shop | Version: | 1.06 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Hallo,
in o.g. Datei scheint mir Zeile 80 etwas ungesund zu sein:
xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART, 'info=1info_message=' . urlencode(REDEEMED_AMOUNT. $xtPrice->xtcFormat($gv_amount,true,0,true)), 'NONSSL')); web28 - 2011-04-13 New class distinction error / info web28 - 2011-04-14 - change SSL -> NONSSL
Kann es sein, dass an der fett markierten Stelle ein "&" fehlt oder sie raus sollte?
Viele Grüße
Marcus
Attachments (0)
Change History (6)
comment:1 by , 12 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 12 years ago
xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART, 'info=1&info_message=' . urlencode(REDEEMED_AMOUNT. $xtPrice->xtcFormat($gv_amount,true,0,true)), 'NONSSL'));
Damit ist es möglich die Couponmeldungen mit einer eigenen CSS Klasse zu versehen
In der html Datei kann man mit {$smarty.get.info} auf den Url Parameter zugreifen
comment:4 by , 12 years ago
in /inc/xtc_collect_posts.inc.php auch REDEEMED_COUPON mit info=1 ergänzen
xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART, 'info=1&info_message=' . urlencode(REDEEMED_COUPON), 'NONSSL'));
Code für shopping_cart.html
{if $info_message!=''}<div class="{if $smarty.get.info && $smarty.get.info=='1'}infomessage{else}errormessage{/if}">{$info_message}</div>{/if}
Diese CSS Klasse in stylesheets.css hinzufügen:
/* INFO MESSAGES */
.infomessage {
border: 2px solid green;
padding: 15px;
background-color: #e5ffe8;
margin-bottom: 10px;
}
comment:5 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |

@web28: kannst du dir das mal ansehen.
Im Trunk fehlt das "info1" - ist das (noch?) notwendig?