Jump to content

"Customizable fields" feature of product configuration, on mobile version not working


Recommended Posts

Hello,

 

I currently use Prestashop 1.5.6. I set up 2 customizable fields for my products (images and text) which are working just fine on desktop version. The problem is that on mobile version these fields doesn’t appear so I copied the section with this form from product.tpl (desktop version) to product.tpl (mobile version). I also included product.js file. Now the fields appear, but when I press save I only get a rolling gif. And if i press “Add to cart” I get an error message for not completing required fields and that means the files are not uploaded.

 

saveCustomization() function doesn’t throw any error in my console while running.

 

The only error is: product.js:555 Uncaught ReferenceError: uploading_in_progress is not defined — which shouldn’t affect the upload process, it’s just a text variable which should be append to an html tag.

 

Any idea what could be wrong?

 

Thank you!

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

The variable uploading_in_progress is a JavaScript variable defined in your theme's product.tpl, you may have missed it while adding code to your mobile theme file.

 

In order to fix the issue you need to defined the variable using the following code.

 

<script>

var uploading_in_progress = "{l s='Uploading in progress, please be patient.' js=1}";

</script>

Link to comment
Share on other sites

Hello guys, keep up the good work, thank you for your response but unfortunatelly the solution you have find it is not working for us :( 

 

we have input this script <script>

var uploading_in_progress = "{l s='Uploading in progress, please be patient.' js=1}";
</script>
 
- into product tpl before any html tag but it is not working :( it remain the same problem - still loading and nothing happens...even if the files to be uploaded are small size...few kb
 
- to see about the problem you can check the website www.minimecraft.ro and open it from a mobile device (you'll be redirected to the mobile version) - and when trying to place an order...uploading photos are required but something is breaking the process and the whole mobile version is useless for us if we can't find a solution to solve this
 
thank you!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...