[Skip to main content](#vessel-content)

#   Some customization questions

##

- **[zekim](/forum/user/7680-zekim "View zekim's Profile")**
- [![zekim's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7680-zekim "View zekim's Profile") Topic Author
- [ Offline](/forum/user/7680-zekim)

Less More

- Posts: 2
- Thank you received: 0
-
-

14 years 5 months ago [\#52363](#52363) by [zekim](/forum/user/7680-zekim "View zekim's Profile")  *[Some customization questions](/forum/2-general-talk-about-hikashop/52363-some-customization-questions#52363 "I have been trying out the demo site with the Custom Fields for Images and Files and have a few questions:  1) When a customer selects a image(custom field), can the cart immediately upload the file or does the customer have to add the item to the cart?  2) If yes, can the server return information about the image (such as width). I plan on writing a custom PHP script to validate the file and provide the information that I need on the backend. I just need to make sure that the front end can receive an update to the product.  3) Is it easy to add in custom code for price determination? For example, calculating the price based on the material selected and the size of the item uploaded.  4) Can the user go back and update an item with customizations? Right now, if I add a product in the demo store that has options, I can not go back an make changes once I add it to the cart.  Thanks.")* was created by *[zekim](/forum/user/7680-zekim "View zekim's Profile")*

I have been trying out the demo site with the Custom Fields for Images and Files and have a few questions:

1) When a customer selects a image(custom field), can the cart immediately upload the file or does the customer have to add the item to the cart?

2) If yes, can the server return information about the image (such as width). I plan on writing a custom PHP script to validate the file and provide the information that I need on the backend. I just need to make sure that the front end can receive an update to the product.

3) Is it easy to add in custom code for price determination? For example, calculating the price based on the material selected and the size of the item uploaded.

4) Can the user go back and update an item with customizations? Right now, if I add a product in the demo store that has options, I can not go back an make changes once I add it to the cart.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMzYzLXNvbWUtY3VzdG9taXphdGlvbi1xdWVzdGlvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

14 years 5 months ago [\#52420](#52420) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Some customization questions](/forum/2-general-talk-about-hikashop/52363-some-customization-questions#52420 "I have been trying out the demo site with the Custom Fields for Images and Files and have a few questions:  1) When a customer selects a image(custom field), can the cart immediately upload the file or does the customer have to add the item to the cart?  2) If yes, can the server return information about the image (such as width). I plan on writing a custom PHP script to validate the file and provide the information that I need on the backend. I just need to make sure that the front end can receive an update to the product.  3) Is it easy to add in custom code for price determination? For example, calculating the price based on the material selected and the size of the item uploaded.  4) Can the user go back and update an item with customizations? Right now, if I add a product in the demo store that has options, I can not go back an make changes once I add it to the cart.  Thanks.")*

1. The image is added together with the product when the form on the page is submitted when the user clicks on the add to cart button. There is no option to do that differently.

2. You can always do it with code customization... You would have to use a file uploader (flash or html5 based) which would upload the file and then it would trigger a callback in javascript where you could display error messages if necessary, image info and attach the image name to a hidden custom field so that the image would then be linked to the product in the cart.

3. Yes, that's quite easy. We have an API especially for that:
[ www.hikashop.com/en/support/documentatio...tation.html#override](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html#override)
And some examples of plugins using it that we posted here and there on the forum:
[ www.hikashop.com/en/forum/4-how-to/49861...ing-donate-item.html](http://www.hikashop.com/en/forum/4-how-to/49861-creating-donate-item.html)
[ www.hikashop.com/forum/4-how-to/26113-us...art=20&amp;lang=en#46304](http://www.hikashop.com/forum/4-how-to/26113-us-based-site-having-tax-problems.html?limit=20&start=20&lang=en#46304)

4. There is no option for that. Once the product is added to the cart, there is no interface to update the custom fields value. It's kind of tricky to handle well because if the same product is added with different values, you will have different lines, but if the user change one to match another, both lines should merge in the cart. And you would have to add an interface to edit that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMzYzLXNvbWUtY3VzdG9taXphdGlvbi1xdWVzdGlvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
