Feature Request for Confirming Product Removal from Cart

15.07.2011 17:28
#1
BoardBoss
Joomshopping forum user no avatar
Name: Jay
14.07.2011
Posts: 17
Quote
Feature Request for Confirming Product Removal from Cart

I just started using JoomShopping, and I must say it seems to be a really nice product overall. Like many new users I am experiencing a bit of a learning curve, but will try to minimize the questions until I have searched for answers.

I found something that I could easily fix, but if I do that, it may be overwritten during an update. I would rather submit it as a feature request and, since it is a very easy change, hope that the developers will consider including it in the core code.

In the cart there is a column labeled 'Remove', which has an icon in it that, when clicked, will delete the item in the corresponding row of the cart. That is fine. When you click that icon, there is a pop-up that uses the same label as the column in the cart.

What I propose is to add this line:
define('_JSHOP_CONFIRM_REMOVE', 'Really remove?');
immediately following this line:
define('_JSHOP_REMOVE', 'Remove');
in the file /components/com_jshopping/lang/en-GB.php (and other language files).

And make this change as well:
In the file /components/com_jshopping/templates/default/cart/cart.php on line 69, change:
<a href = "<?php print $prod['href_delete'] ?>" onclick="return confirm('<?php print _JSHOP_REMOVE?>')"><img src = "<?php print $this->image_path ?>images/remove.png" alt = "<?php print _JSHOP_DELETE?>" title = "<?php print _JSHOP_DELETE?>" /></a>
to this:
<a href = "<?php print $prod['href_delete'] ?>" onclick="return confirm('<?php print _JSHOP_CONFIRM_REMOVE?>')"><img src = "<?php print $this->image_path ?>images/remove.png" alt = "<?php print _JSHOP_DELETE?>" title = "<?php print _JSHOP_DELETE?>" /></a>

Thanks for your consideration!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.