Jump to content

Upload/save button in Customization fields in front product pages


Recommended Posts

Hi all,

 

I am really new on this. I installed for my firts time PS 1.6.1.5 and all going quite well except in a suposed easy standard function in PS, which is add customization fields to the products , as files and text fields.

 

What I found is that when I am in the frontoffice in a product page that has customization fields, first you have to add the image or file you want to attach to the product and then push SAVE BUTTON.

 

Well, it does not works, ands shows a 404 page not found.

 

I think i knwo what the problem is, but as I am nebbie I do not know where to find the code to be modified to solve the problems.

 

Here is the code obtained from view code in chrome. I show in bold and red what the problem is:  a missing "?" in the form action filed:

 

<!--Customization -->   <section class="page-product-box">   <h3 class="page-product-heading">Personalización del producto</h3>   <!-- Customizable products -->   <form method="post" action="/index.phpid_product=8&controller=product&id_lang=3" enctype="multipart/form-data" id="customizationForm" class="clearfix">   <p class="infoCustomizable">   Después de guardar su producto personalizado, no olvide añadirlo a su carrito.   <br />   Formatos de archivo permitidos: GIF, JPG, PNG </p>   <div class="customizableProductsFile">   <h5 class="product-heading-h5">Imágenes</h5>   <ul id="uploadable_files" class="clearfix">       <li class="customizationUploadLine"> <div class="customizationUploadBrowse form-group">   <label class="customizationUploadBrowseDescription">   Foto o Logotipo a imprimir   </label>   <input type="file" name="file1" id="img0" class="form-control customization_block_input " />   </div>   </li>       </ul>   </div>   <div class="customizableProductsText">   <h5 class="product-heading-h5">Textos</h5>   <ul id="text_fields">       <li class="customizationUploadLine">   <label for ="textField0">   Texto a imprimir   </label>   <textarea name="textField2" class="form-control customization_block_input" id="textField0" rows="3" cols="20"></textarea>   </li>       </ul>   </div>   <p id="customizedDatas">   <input type="hidden" name="quantityBackup" id="quantityBackup" value="" />   <input type="hidden" name="submitCustomizedDatas" value="1" />   <button class="button btn btn-default button button-small" name="saveCustomization">   <span>Guardar</span>   </button>   <span id="ajax-loader" class="unvisible">   <img src="http://mundokraft.com/img/loader.gif" alt="loader" />   </span>   </p>   </form>   <p class="clear required"><sup>*</sup> campos obligatorios</p>   </section>   <!--end Customization -->

 

Can anyone help me and tell where I need to modify the code to save that problem, please.

 

Thank you in advance

 

Francisco

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