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.

Different price display depending on link

Home Forums Programming Different price display depending on link

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #79924
    Nathan Arditti
    Customer

    Hi everyone,

    I recently created a 3D viewer for a chair for a French client, which they have integrated into their website. This viewer allows the price of the product to be displayed.

    My client now has a new request:
    The price of the chair needs to vary based on the customer’s location, as the prices differ depending on the city. For example:

    Paris: €250 per chair
    Marseille (a city in the south of France): €225 per chair
    Cannes: €275 per chair

    To address this, I initially thought about duplicating my Verge3D scene and modifying the code to display the correct price for each location. This would result in three different links (one for each price).
    Before entering my client’s website, users can select their city, which would then display the corresponding link with the appropriate price.

    However, there’s a problem with this approach: if my client asks for a modification to the 3D model, I’d have to apply the same changes to all three scenes, which isn’t very efficient.

    So, my question is:
    Is there a way to keep a single 3D scene while having multiple links that display the corresponding price for each city? This would avoid duplicating the scene just to change a single line of code.

    I understand this isn’t a simple issue, and I’m not very skilled in coding, but I’d love to hear your thoughts or suggestions.

    Thanks in advance for your help!

    #79930
    xeon
    Customer

    One way would be to pass a query string to your V3D app. If you app is launched via a HTML button the query string can be apart of the html that makes this call…in the string you place the price. Your V3D app…can then read the query string, bring in the string value as text and update the 3D text or HTML text inside the V3D app.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

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