Title: Wrong number in lightbox
Last modified: December 10, 2017

---

# Wrong number in lightbox

 *  Resolved [lacike](https://wordpress.org/support/users/lacike/)
 * (@lacike)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/)
 * When I open catalog page on my webpage I see “SyntaxError: Unexpected number”
   in Google Chrome. The problem is that floating numbers are stored with comma 
   as decimal separator, e.g.: var lightbox_opacity = 0,201;

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [lacike](https://wordpress.org/support/users/lacike/)
 * (@lacike)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/#post-9768151)
 * it seems to me that the problem is catalog_front_end_view.php:
    var lightbox_opacity
   = <?php echo ($paramssld[‘light_box_opacity’]/100)+0.001;?>;
 * Easy fix is to replace it with e.g.:
    var lightbox_opacity = <?php echo number_format((
   $paramssld[‘light_box_opacity’]/100)+0.001, 2, ‘.’, ”);?>;
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/#post-9769897)
 * Dear lacike,
 * Thanks for your post.
    We will be glad to check the issue if you provide a link
   to the page where the catalog is added.
 * If the problem still exists, we would like to check it.
 * Thanks
 *  Thread Starter [lacike](https://wordpress.org/support/users/lacike/)
 * (@lacike)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/#post-9770009)
 * My page is now working fine, because I applied the modification I sent you. Please
   check the code I sent you, it’s quite obvious what the problem is. You’re relying
   on php’s native conversion of number to string, which might have different setup(
   symbols).
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/#post-9773980)
 * Dear lacike,
 * We have checked the code at our end and it is absolutely correct.
    Thank you 
   very much for your attention and observation. We will include this in our upcoming
   update.
 * This is the case when we can say thank YOU for YOUR support! 😀
    Let us know 
   if there is anything else we can help you with We will be glad to assist.
 * Thanks
 *  Thread Starter [lacike](https://wordpress.org/support/users/lacike/)
 * (@lacike)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/#post-9774058)
 * Hi,
 * I am sorry, I don’t understand whether the code at your end is correct or whether
   you’re going to include a fix in upcoming update.
 * L.
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/#post-9777694)
 * Dear lacike,
 * We are going to include the fix in our upcoming update.
    The code which you have
   used for fixing the issue is effective thus you can use that solution until we
   will release an update.
 * Let me know if you have other questions.
 * Thanks
 *  Thread Starter [lacike](https://wordpress.org/support/users/lacike/)
 * (@lacike)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/#post-9777753)
 * Thanks, it’s very much appreciated.
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/#post-9781188)
 * Dear lacike,
 * Thank you too for using our plugin.
    Let us know if you have other questions 
   We will be glad to assist.
 * Thanks

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Wrong number in lightbox’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/product-catalog_353e6a.svg)
 * [Product Catalog for WordPress](https://wordpress.org/plugins/product-catalog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/product-catalog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/product-catalog/)
 * [Active Topics](https://wordpress.org/support/plugin/product-catalog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-catalog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-catalog/reviews/)

## Tags

 * [decimal separator](https://wordpress.org/support/topic-tag/decimal-separator/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 8 replies
 * 2 participants
 * Last reply from: [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/wrong-number-in-lightbox/#post-9781188)
 * Status: resolved