Sidebar Cart – how to translate second warning message when deleting item?

Dear Sherlock,

When I try to remove some Item from sidebar Cart then the warning message "Are you sure you would like to remove this item from the shopping cart?" is coming 2 times.

First message has been successfully translated over translation.csv, but a second is coming from jmquickview.js.
I found this second message there, but I dont know how to translate it ( i need it in two languages) !?

Thank you

4 answers

Profile photo of Sherlock 0.00 $tone January 6, 2014
Public

You can try the following workaround:
1) Open the file app\design\frontend\default\jm_craftstemplate\jmq uickview\quickviewhead.phtml and find the following syntax:

HTML Code:

 <script type="text/javascript" src="<?php echo $this->getSkinUrl('joomlart/jmquickview/js/jmquickview.js') ?>"></script>

Add the followings beneath the snippets mentioned above:

HTML Code:

   jQuery(document).ready(function($) {
    $("ul.products-grid").jmquickview({quickviewtext:"<?php echo $this->__("quickview"); ?>",currenttext:"<?php echo $this->__("Product {current} of {total}"); ?>",removetext:"<?php echo $this->__("Are you sure you would like to remove this item from the shopping cart?") ?>"});
    $("ol.products-list").jmquickview({quickviewtext:"<?php echo $this->__("quickview"); ?>",currenttext:"<?php echo $this->__("Product {current} of {total}"); ?>",removetext:"<?php echo $this->__("Are you sure you would like to remove this item from the shopping cart?") ?>"});
 });

2) Replace the file skin\frontend\default\jm_crafts\joomlart\jmquickvi ew\js\jmquickview.js with the file attached herewith.

Let me know how it goes.

#1
Profile photo of Sherlock 0.00 $tone January 7, 2014
Public

@ asavano, I have the issue fixed on your site for you. I did make change to the mentioned file:

From:

HTML Code:

options= {
		quickviewtext: "<?php echo $this->__("quickview"); ?>",
		currenttext: "<?php echo $this->__("Product {current} of {total}"); ?>",
		previoustext: "<?php echo $this->__("previous"); ?>",
		nexttext: "<?php echo $this->__("next"); ?>",

}

To

HTML Code:

  options= {
		quickviewtext: "<?php echo $this->__("quickview"); ?>",
		currenttext: "<?php echo $this->__("Product {current} of {total}"); ?>",
		previoustext: "<?php echo $this->__("previous"); ?>",
		nexttext: "<?php echo $this->__("next"); ?>",
		removetext:"<?php echo $this->__("Are you sure you would like to remove this item from the shopping cart?") ?>",
}

Please help to check again.

#3

This question is now closed

Written By

Comments