Seite 2 von 2

Re: Aufgefallene Fehler

Verfasst: 07.03.2018, 08:06
von maennchen1.de
In Version 4.0.5 ist es in der Tat so, dass kein Löschenbutton angezeigt wird, obwohl er da ist.
Ihr könnt den Fehler beheben, indem Ihr die angehangenen Dateien in die entsprechenden Ordner ladet:
/views/css/frontend.css
/views/warenkorb/basket.phtml

Code: Alles auswählen

Modified: /views/css/frontend.css
==============================================================================
--- /views/css/frontend.css (original)
+++ /views/css/frontend.css Wed Mar  7 07:36:58 2018
@@ -31,7 +31,8 @@
.basket_product_wrap .basket_product_row .productimage { max-width:150px; padding-right:0.75em; }
.basket_product_wrap .basket_product_row .product_content { width:100%; display:flex; flex-direction:column; justify-content:space-between; }
.basket_product_wrap .basket_product_row .product_action { display:flex; width:100%; justify-content:space-between; align-items:center; }
-.basket_product_wrap .basket_product_row .product_action .amount { width:80px; margin-top:0.5em; margin-bottom:0.5em; text-align:center;}
+.basket_product_wrap .basket_product_row .product_action .amount { width:100px; padding-right:40px; position:relative; margin-top:0.5em; margin-bottom:0.5em; text-align:center;}
+.basket_product_wrap .basket_product_row .product_action .amount .wpsg_basket_removelink { -webkit-box-shadow:none; box-shadow:none; text-decoration:none; border:0px !important; position:absolute; right:5px; top:50%; margin-top:-8px; }
.basket_product_wrap .basket_product_row .product_action .title { width: 60%; display:inline-block; margin-top:0.3em; margin-bottom:0.3em; }
.basket_product_wrap .basket_product_row .product_action .price { width: 39%; display:inline-block; text-align:right; }
.basket_product_wrap .basket_product_row .product_action .price_total { width: 39%; display:inline-block; font-weight:bold; text-align:right; }
@@ -64,7 +65,6 @@
.basket_sum_wrap .wpsg_gutschein_add {padding:0.75em 1em;}
/* .glyphicon {width:20px !important; text-decoration:none; position:relative; display:inline-block; font-family:'Glyphicons Halflings'; line-height:1rem;} */
-.wpsg_basket .wpsg_basket_removelink { float:right; -webkit-box-shadow:none; box-shadow:none; text-decoration:none; border:0px !important; }
.wpsg_basket .wpsg_checkoutbutton { float:right; padding:0.75em 1em; }
.wpsg_basket .wpsg_cell_gesamtsumme_value { font-weight:bold; }
.wpsg_basket .wpsg_refreshbutton, .wpsg_basketbutton { float:left; padding:0.75em 1em; }

Modified: /views/warenkorb/basket.phtml
==============================================================================
--- /views/warenkorb/basket.phtml (original)
+++ /views/warenkorb/basket.phtml Wed Mar  7 07:36:58 2018
@@ -76,11 +76,6 @@
						<div class="product_shortdesc"><?php echo $product_data['shortdesc']; ?></div>
						<?php } ?>
-						<a class="wpsg_basket_removelink" href="<?php echo $this->getRemoveLinkURL($product_data['product_index']); ?>" title="<?php echo __('Produkt aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie das Produkt aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');">
-							<!-- <img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" /> -->
-							<span class="glyphicon glyphicon-trash"></span>
-						</a>
-
					</div>
					<div class="product_action">
@@ -90,6 +85,11 @@
						<div class="amount">
							<input class="wpsg_form_submit_return" type="text" name="wpsg[menge][<?php echo $product_data['product_index']; ?>]" <?php echo ((wpsg_isTrue($product_data['oneOnly']) || wpsg_isSizedInt($product_data['basket_multiple'], 4))?'readonly="readonly"':''); ?> value="<?php echo wpsg_hspc($product_data['menge']); ?>" size="3" />
+
+							<a class="wpsg_basket_removelink" href="<?php echo $this->getRemoveLinkURL($product_data['product_index']); ?>" title="<?php echo __('Produkt aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie das Produkt aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');">
+								<img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" />
+							</a>
+							
						</div>
					</div>
					<div class="product_action">


Re: Aufgefallene Fehler

Verfasst: 07.03.2018, 14:19
von Michi82
Hallo,
super, vielen Dank.
Jetzt wird ein X zum löschen angezeigt.
Viele Grüße

Re: Aufgefallene Fehler

Verfasst: 07.03.2018, 19:05
von maennchen1.de
Prima!
Mit dem nächsten Update (Termin ist noch nicht bekannt) kommt die Anpassung für alle.

Re: Aufgefallene Fehler

Verfasst: 09.03.2018, 13:33
von Gitta
danke, das wäre super. Dann warte ich mal ab und mache gar nichts. Mit den derzeitigen Einstellungen kann man zumindest auch Download-Artikel löschen - die Kunden werden sicher darauf kommen, wenn kein visueller Button vorhanden ist. Ziel ist es aber, ein sichtbares Zeichen zu haben, über das man Artikel per Klick aus dem Warenkorb entfernen kann.