Jump to content

[Solved]ReferenceError: currencyFormat is not defined


Recommended Posts

hi all,

 

when i going to delete products in cart block it removed and work as fine...

 

but if i delete a product from cart summary page, it removes product from summary list but not update cart block it give error 

 

ReferenceError: currencyFormat is not defined in /cart-summary.js.

 

please help...

 

mysite link :http://kumudhamstore.com/index.php?

post-762647-0-38302400-1394542095_thumb.png

Edited by mohamedali (see edit history)
Link to comment
Share on other sites

hi all,

 

when i going to delete products in cart block it removed and work as fine...

 

but if i delete a product from cart summary page, it removes product from summary list but not update cart block it give error 

 

ReferenceError: currencyFormat is not defined in /cart-summary.js.

 

please help...

 

mysite link :http://kumudhamstore.com/index.php?

 

.

I think that your problem is that you have variables assign in one line like this (you can find it in /themes/onlinestore/shopping-cart.tpl, around line: 45):

<script type="text/javascript">	// <![CDATA[	var currencySign = 'Rs. ';	var currencyRate = '1';	var currencyFormat = '1';	var currencyBlank = '1';	var txtProduct = "product";	var txtProducts = "products";	// ]]>	</script>

It should to be like this:

<script type="text/javascript">	
// <![CDATA[	
var currencySign = 'Rs. ';	
var currencyRate = '1';	
var currencyFormat = '1';	
var currencyBlank = '1';	
var txtProduct = "product";	
var txtProducts = "products";
// ]]>	
</script>
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...