Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#81 closed Bug/Fehler (fixed)

Typo in /inc/xtc_collect_posts.inc.php

Reported by: info@… 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 Simon Heinrich, 12 years ago

Owner: changed from somebody to Ronald Parcinski
Status: newassigned

@web28: kannst du dir das mal ansehen.

Im Trunk fehlt das "info1" - ist das (noch?) notwendig?

comment:2 by Ronald Parcinski, 12 years ago

Danke für den Hinweis. Da fehlt tatsächlich ein &

comment:3 by Ronald Parcinski, 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 Ronald Parcinski, 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 Simon Heinrich, 12 years ago

Resolution: fixed
Status: assignedclosed

comment:6 by Torsten Riemer, 12 years ago

fixed in r5416

Modify Ticket

Action
as closed The owner will remain Ronald Parcinski.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.