How to change product price

  • Posts: 45
  • Thank you received: 0
13 years 2 weeks ago #29951

Can I do that, for certain products (product categories), the buyer could change the cost of the goods?
I'm trying to do this in different ways (eg, via an options), but it is not very good.
Ideally, I need the editable field as the quantity of goods, but also with the ability to enter non-integer numbers.
Is it possible to create a similar function of quantity?

Last edit: 13 years 2 weeks ago by slydog.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #29969

Hi,

It's indeed not possible by default, but you can do it if you have some php knowledge.
For that, you would have to create a custom field of the table "item" via the menu Display->Custom fields in the Business edition.
Then, you could create a price quantity calculation override as explained there and so you could use the value of that field instead of the value of the normal quantity input: www.hikashop.com/en/support/documentatio...tation.html#override

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

  • Posts: 45
  • Thank you received: 0
13 years 1 week ago #30086

My knowledge of php is not as strong as I would like to
I will try, but most likely I will need your help :)
One of the options to make a custom field named "product_price", but still do not understand how to do so its value was fixed in order for this product (if this possible)
Another is to make product quantity calculation, as you advise.
Thanks for tips, anyway.

P.S. Sorry for grammar mistakes, English is not my native language.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30098

What is the problem with the custom field creation ?

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

  • Posts: 45
  • Thank you received: 0
13 years 1 week ago #30367

To create a custom field is not a problem.
I do not know how to get value of this custom field and write it to a price of this certain product.

Last edit: 13 years 1 week ago by slydog.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30390

Here is an example of how to create such override plugin :
www.hikashop.com/en/support/forum/2-gene...w-feature.html#24390

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

  • Posts: 45
  • Thank you received: 0
13 years 1 week ago #30477

Ideally suited, thanks a lot!

A little more left to deal with the filtration in that field (replacement "," by ".").

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

Time to create page: 0.064 seconds
Powered by Kunena Forum