looking for a specific use of custom content

  • Posts: 27
  • Thank you received: 0
11 years 1 month ago #128057

Hi,

I just installed the free version of Hikashop, it seems great to me, and I'm looking for information on a specific use :

- I need to developp a website on Joomla 2.5 to sell a single printing product : the customer has to fill a form with about ten different options (number of black pages, nb of color pages, type of cover....etc), then he gets the price for this personnalized product, he uploads his pdf file, and we're back to the standard shop, coordonates, recap, payment...etc.
Is this something I could do with either the free or "Essential" or "Business" Hikashop products ?

Thank you in advance !

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #128110

Hi,

You'll be able to do it by using custom fields through "Hikashop->Display->Custom fields", note that if you want your customers to be able to upload files through the product page, you'll have to set the "field type" option to file (this option is only available through the business version of Hiakshop).

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
11 years 1 month ago #128425

Hi,

and thank you for your message. So, i just bought this afternoon the business version, but i'm still a bit confused about the use of custom fields for my website :
- I understand how to create multiple "item" custom fields to add to my product for customer input, it works fine.
- The main process for order, cart or payment is also ok

But I still have an issue, and I have to ask first, because I don't want to go the wrong way :
I don't want to have a price for my printing product at first, I want it blank, and when the customer uses the form fields, it updates the price, and then when all mandatory information is filled, he can go through the normal ordering process with "add to cart" button. And I can't use only the options, because it's not something like "+10 € for this option", it's some relatively complicated formula based on numbers and choices the customer needs to do. Ajax would be better, but even simple javascript with a calculate button would be ok.

For now, the choices the client made is displayed in cart, but it doesn't update the global price, and I need to display it before he goes to that step, on the product page.

Sorry if it's not comprehensive, english isn't my native language. Any clue how I should do this ?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 1 month ago #128472

Hi,

You can edit the file "show_block_custom_item" via the menu Display->Views and change the line:

echo $this->fieldsClass->display($oneExtraField,$itemData,'data[item]['.$oneExtraField->field_namekey.']',false,' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\'item\',0);"');
you add a call you your JS before the call to our JS hikashopToggleFields function.
That way you can display the price where you want based on your requirements.
Then, for the price of the product in the cart/order the best is to create a system plugin and implement the hikashop_product_price_for_quantity_in_cart function in order to set the price of the product based on the values entered in the custom fields that you can access in the $product passed to the function.
You can read more about it in our developer documentation:
www.hikashop.com/support/documentation/6...r-documentation.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.119 seconds
Powered by Kunena Forum