We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

add value as price

Home Forums General Questions add value as price

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #34751
    farzinkhodadadi
    Participant

    how 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

    #34755

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

    #34758
    farzinkhodadadi
    Participant

    actually. 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:
    You must be logged in to view attached files.
    #34807

    Having nested click events is a bad idea – each time the user performs click new event listeners are created.

    Chief 3D Verger | LinkedIn | Twitter

    #34833
    farzinkhodadadi
    Participant

    can 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 great

    #34898
    farzinkhodadadi
    Participant

    can you please help me, about that click. thta you mention its a bad idea. how can i make it better?

    #34954

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

    Chief 3D Verger | LinkedIn | Twitter

    #34959
    farzinkhodadadi
    Participant

    what do you mean by reorganize my puzzle? can you give me any sample or help please?
    thank you so much for your time

    #35058

    what do you mean by reorganize my puzzle? can you give me any sample or help please?
    thank you so much for your time

    Hi, 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:
    timesClicked.png

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

    #35062
    farzinkhodadadi
    Participant

    thank you so much
    i will do it

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.