Jump to content

Custom Field Uploading Issues - Not Saving (Reward Offered)


jfriday

Recommended Posts

EDIT/UPDATE: Reward updated to $50. FYI: This is a problem with custom text fields only, not image fields.
------------------------------------------------------------------------------------------------------------------------
Most of my products allow for personalization, however I have recently noticed that some products will allow the user to save the customized text field details and others will not. For example, on this product: http://equigifts.com/18-reiners-turn-on-a-dime-cell-phone-skins.html where both fields are required, I can save and add to cart just fine.

On this product, however: http://equigifts.com/25-zingara-cell-phone-skins.html where there are two required fields and one not-required, the information will not save.

Other info:
PS version: 1.3.1
Theme (default/customized): Custom (2Link Matrice)
Hosting: Hostgator Business Private SSL
PHP version: 5.2.14
MySQL version: 5.1.5.0

It's probably simple, but I don't have days to wrap my head around it and I have searched the forums exhaustively. So, in the hopes that it really is simple for a programmer here, I've attached some files (product.tpl and product.php) and a call for help.

Thanks so much!

product.zip

Link to comment
Share on other sites

"Fatal error: Out of memory (allocated 65273856) (tried to allocate 60000 bytes) in /home/equigift/public_html/images.inc.php on line 155" is caused during the image resize, you are probably trying to upload an image that it pretty big, and PHP runs out of memory try to resize (or just optimize it)

Link to comment
Share on other sites

I wish it were that simple, but the images I've tested with are small. I just tried one that's 27KB and got this: Fatal error: Out of memory (allocated 78118912) (tried to allocate 60000 bytes) in /home/equigift/public_html/images.inc.php on line 155

You can try it yourself by logging into test account username: [email protected] password: jolea818 and visiting this link: http://equigifts.com/eada/230-test-product.html

Link to comment
Share on other sites

Reward doubled and bumping. Another update: have compared product.tpl, product.php, init.php and config.inc.php line-by-line with the default PS files and the only differences are things that would have nothing to do with this error. Thanks again!

Link to comment
Share on other sites

Oops, I must not have been clear enough in my update - will have to edit that. Images are not a problem - I have only one product with image uploading enabled and that was "resolved" (just can't upload huge images, as I had it set to do in BO, b/c of php memory limit of 64MB).

No, the problem is with the simple text fields. If you look at the two examples (links) above, one will allow me to save the customized text and add to cart and the other product will not save the text at all. Then, since two of the fields are required, I get an error on the next page saying I need to fill in all the required fields.

I did find a thread where someone had a similar problem, but it was never resolved. Link: http://www.prestashop.com/forums/viewthread/10156/general_discussion/cannot_order_please_fill_all_required_fields

I am, of course, attempting to solve this on my own. I tried moving the whole customization code from one part of product.tpl to another (just under the price field - not that this would do any good, just wanted to move it there anyway). Interestingly enough, now when I click save on product the uploading indicator show but the page never reloads or saves the text. But if I upload the original product.tpl, I have the same problem as originally stated.

Link to comment
Share on other sites

Update on Behavior of this Error:

Just uncovered a possible indicator of why this is happening.

The information not saving only happens when the following is true:

Product has multiple attribute AND product has customization field(s)

And not when it just has the customization fields. I still have no idea how these could affect each other, however. Back to the drawing board...

I am going to try Tomer's Attribute Wizard Pro... hopefully that will work since it apparently bypasses the "save" function!

Link to comment
Share on other sites

  • 4 weeks later...

I just went for Tomer's module - and I'm very glad I did. It's much easier for the customer to upload without having to hit the "save" file afterward and thus increases conversion rates so you'll earn back the minimal investment pretty quickly. Plus, his support is exceptional - he fixed two problems I was having quickly and professionally (I actually uncovered a tiny bug in the program the second time). It's a much better solution than Prestashop's default. I highly recommend it.

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...