Re: Encrypted Master Password support
this is what i have in that file in that location
Code:
<?php for ($i=0, $n=sizeof($output); $i<$n; $i++) { ?>
<?php
$msg_pera='';
if(strpos($output[$i]['params'],'messageStackError')>0){
$msg_pera=str_replace('messageStackError','alert alert-danger alert-dismissable',$output[$i]['params']);
}else if(strpos($output[$i]['params'],'messageStackWarning')>0){
$msg_pera=str_replace('messageStackWarning','alert alert-warning alert-dismissable',$output[$i]['params']);
}else if(strpos($output[$i]['params'],'messageStackSuccess')>0){
$msg_pera=str_replace('messageStackSuccess','alert alert-success alert-dismissable',$output[$i]['params']);
}else if(strpos($output[$i]['params'],'messageStackCaution')>0){
$msg_pera=str_replace('messageStackCaution','alert alert-warning alert-dismissable',$output[$i]['params']);
}else{
$msg_pera=str_replace('messageStackCaution','alert alert-info alert-dismissable',$output[$i]['params']);
}
?>
<div <?php echo $msg_pera; ?>><?php echo $output[$i]['text']; ?><button class="close" aria-hidden="true" data-dismiss="alert" type="button">×</button></div>
<?php } ?>
Re: Encrypted Master Password support
use:
PHP Code:
<?php
for ($i = 0, $n = sizeof($output); $i < $n; $i++) {
if (!str_contains($output[$i]['text'], 'Currently shopping for')) {
$msg_pera = '';
if (strpos($output[$i]['params'], 'messageStackError') > 0) {
$msg_pera = str_replace('messageStackError', 'alert alert-danger alert-dismissable', $output[$i]['params']);
} elseif (strpos($output[$i]['params'], 'messageStackWarning') > 0) {
$msg_pera = str_replace('messageStackWarning', 'alert alert-warning alert-dismissable', $output[$i]['params']);
} elseif (strpos($output[$i]['params'], 'messageStackSuccess') > 0) {
$msg_pera = str_replace('messageStackSuccess', 'alert alert-success alert-dismissable', $output[$i]['params']);
} elseif (strpos($output[$i]['params'], 'messageStackCaution') > 0) {
$msg_pera = str_replace('messageStackCaution', 'alert alert-warning alert-dismissable', $output[$i]['params']);
} else {
$msg_pera = str_replace('messageStackCaution', 'alert alert-info alert-dismissable', $output[$i]['params']);
}
?>
<div <?= $msg_pera; ?>><?= $output[$i]['text']; ?>
<button class="close" aria-hidden="true" data-dismiss="alert" type="button">×</button>
</div>
<?php
}
}
Re: Encrypted Master Password support
Call to undefined function str_contains() zen 1.56c
Re: Encrypted Master Password support
Quote:
Originally Posted by
jimmie
Call to undefined function str_contains() zen 1.56c
no good deed goes...
v1.5.7 added some polyfill functions.
try:
PHP Code:
<?php
for ($i = 0, $n = sizeof($output); $i < $n; $i++) {
if ( false === strpos($output[$i]['text'], 'urrently shopping for')) {
$msg_pera = '';
if (strpos($output[$i]['params'], 'messageStackError') > 0) {
$msg_pera = str_replace('messageStackError', 'alert alert-danger alert-dismissable', $output[$i]['params']);
} elseif (strpos($output[$i]['params'], 'messageStackWarning') > 0) {
$msg_pera = str_replace('messageStackWarning', 'alert alert-warning alert-dismissable', $output[$i]['params']);
} elseif (strpos($output[$i]['params'], 'messageStackSuccess') > 0) {
$msg_pera = str_replace('messageStackSuccess', 'alert alert-success alert-dismissable', $output[$i]['params']);
} elseif (strpos($output[$i]['params'], 'messageStackCaution') > 0) {
$msg_pera = str_replace('messageStackCaution', 'alert alert-warning alert-dismissable', $output[$i]['params']);
} else {
$msg_pera = str_replace('messageStackCaution', 'alert alert-info alert-dismissable', $output[$i]['params']);
}
?>
<div <?= $msg_pera; ?>><?= $output[$i]['text']; ?>
<button class="close" aria-hidden="true" data-dismiss="alert" type="button">×</button>
</div>
<?php
}
}
best.
Re: Encrypted Master Password support
didnt work, i still have to click it off, on every page
Re: Encrypted Master Password support
im sorry it did work, didnt finish uploading file.
Re: Encrypted Master Password support
Quote:
Originally Posted by
jimmie
im sorry it did work, didnt finish uploading file.
you are welcome.
Re: Encrypted Master Password support
Re: Encrypted Master Password support
Using 1.5.8a: When we "place order" as a customer, the "updated by" field of the order_status_history always shows the same, specific admin's name. It does show/ store the name of the admin that actually placed the order from their own admin login.
Not a big deal, but it would be nice to have the admin listed that actually placed the order on behalf of the customer.
Matt
Re: Encrypted Master Password support
Quote:
Originally Posted by
apollowilcox
Using 1.5.8a: When we "place order" as a customer, the "updated by" field of the order_status_history always shows the same, specific admin's name. It does show/ store the name of the admin that actually placed the order from their own admin login.
Not a big deal, but it would be nice to have the admin listed that actually placed the order on behalf of the customer.
Matt
Since this feature is now "in core", I'll ask that you post in one of the Zen Cart base threads so that your issue has more visibility.