Home › Forums › General Questions › add value as price
- This topic has 9 replies, 4 voices, and was last updated 5 years, 1 month ago by
farzinkhodadadi.
-
AuthorPosts
-
2020-10-30 at 8:00 am #34751
farzinkhodadadi
Participanthow can i add value as price for each object in my configurator, add if its show or hide. the price come and go.
thank you
2020-10-30 at 8:52 am #34755
Mikhail LuzyaninStaffYou can use html elements to show price or use text object (only for Blender) to put price in it.
Co-founder and lead graphics specialist at Soft8Soft.
2020-10-30 at 9:15 am #34758farzinkhodadadi
Participantactually. now i did the puzzles like this. to show my component and add price.
but problem is . when click on drawer but, after 4 time the component is finish. but if you click more. it will add more price. how can i stop it?
and please is there any way i can make this puzzle more smaller with same functions?thank you so much
Attachments:
2020-10-31 at 6:49 am #34807
Yuri KovelenovStaff2020-11-01 at 11:37 am #34833farzinkhodadadi
Participantcan you please tell me another way to do this function. and if its possible make the puzzle smaller?
and also dont have the problem that every time adding price more and more by clicks.
that would be great2020-11-03 at 7:19 am #34898farzinkhodadadi
Participantcan you please help me, about that click. thta you mention its a bad idea. how can i make it better?
2020-11-03 at 12:14 pm #34954
Yuri KovelenovStaffThe problem is that in your current setup, once the user performs a click, new JavaScript click event listeners are created. This means that on the second click there will be additional events fired which may behave unpredictably. Therefore you should not use nested event puzzles. Try to reorganize your puzzles to avoid this situation.
2020-11-03 at 12:41 pm #34959farzinkhodadadi
Participantwhat do you mean by reorganize my puzzle? can you give me any sample or help please?
thank you so much for your time2020-11-05 at 9:31 am #35058
Ivan LyubovnikovStaffwhat do you mean by reorganize my puzzle? can you give me any sample or help please?
thank you so much for your timeHi, it seems that you want to progressively show some objects after each click. If that’s the case then it can be done by counting the amount of clicks (by saving it in some variable) and testing if it’s the first time the object was clicked, the second, the third, etc… All of that inside a single “on event of” puzzle.
Like this, for example:

Attachments:
Co-founder and lead developer at Soft8Soft.
2020-11-05 at 12:58 pm #35062farzinkhodadadi
Participantthank you so much
i will do it -
AuthorPosts
- You must be logged in to reply to this topic.


