Shapediver model inside an iFrame.

API documentation here: https://viewer.shapediver.com/v2/2.22.0/doc/index.html

Checkout Cart with "Name Your Price" / "Pay What You Want".

Objective:

  1. Take the price value from the shapediver model and insert into the Checkout Cart. 

Eg. use the "Name Your Price" field for the ShapeDiver price input and simply hiding it so the customer cannot see it.

Following calls return a list of all data outputs:

api=SDVReflector.get('api')
api.scene.getDataAsync().then(function(response){console.log(response.data)})

You can then access the price value by using:

api.scene.getDataAsync('SDPrice').then(function(response){console.log(response.data[0].data)})

 

2. Trigger the Shapediver export function and send data (txt or pdf or DWG file ) to email or server.