Jump to content
xt:Commerce Community Forum

Confirm-Button ersetzen durch "normalen" Button


voehrs
 Share

Recommended Posts

Hi,

Das Cross Selling Plugin nutzt aktuell einen Button namens: $extF->_MultiButton_stm. Dieser wird verwendet um die Sortierung der CrossSelling Produkte zu verändern. Dieser nutzt außerdem intern die MsgConfirm Funktion. Mein Kunde möchte aber aktuell kein Confirm und möchte einen "normalen" Button nutzen. Wie kann ich dies simpel mit extF für CrossSelling umstellen? 

Viele Grüße

Link to comment
Share on other sites

Hallo,
wir haben eine Lösung, die wir mit kommender Pluginversion veröffentlichen werden.
Getestet mit xt 6.3 und Plg 5.2.0

Derweil:

öffne die Datei plugins/xt_cross_selling/classes/class.cross_selling_products.php
suche die Zeile

$rowActionsFunctions['sort_up'] = $extF->_MultiButton_stm(TEXT_SORT_UP, 'sort2_up');

sollte die 46 sein

ersetze diese und die folgenden 3 Zeilen mit

$rowActionsFunctions['sort2_up'] = 'sort2_up("yes")';
$rowActionsFunctions['sort2_down'] = 'sort2_down("yes")';
$rowActions[] = array('iconCls' => 'sort2_up', 'qtipIndex' => 'qtip1', 'tooltip' => TEXT_SORT_UP);
$rowActions[] = array('iconCls' => 'sort2_down', 'qtipIndex' => 'qtip1', 'tooltip' => TEXT_SORT_DOWN);

 

öffne xtAdmin/css/icons.css
suche die Zeile

.sort_up::before {

sollte die 327 sein

ersetze die beiden sort_up/sort_down-css-Regeln mit

.sort_up::before, .sort2_up::before {
  font-family: "Font Awesome 5 Free";
    font-weight: 600;
    content: "\f0de";
    font-style: normal;
}

.sort_down::before, .sort2_down::before {
  font-family: "Font Awesome 5 Free";
    font-weight: 600;
    content: "\f0dd";
    font-style: normal;
}

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
  • Create New...