| 开发者 | mattstack |
|---|---|
| 更新时间 | 2026年10月26日 19:08 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
?model=<product-slug> switches model, a link to ?option=<option-name> (or ?<step>=<option-name>) applies that finish, without reloading. The current link is marked with aria-current and the selection ring. This is how a configurator can be composed from ordinary Elementor buttons.[tdcfw-customizer] and [tdcfw-viewer]do_action( 'tdcfw_display_customizer', $product_id );finishes-3d-configurator-for-woocommerce folder to /wp-content/plugins/, and activate it..glb model, click Scan Model to read the names of its parts, then add steps and options and assign a material to each option.Yes, one .glb (or .gltf) file per product, with the parts that change colour as separate, named meshes (for example "Top" and "Legs"). You can export it from any 3D or CAD program, commission it, or generate it.
Use the four widgets in the "3D Configurator" category. In a single product template they use the current product; on any other page choose the products in the 3D Viewer widget. You can also use the [tdcfw-customizer] shortcode in a Shortcode widget.
Choose several products in the 3D Viewer widget, or use [tdcfw-customizer ids="12,34,56" label="Model" param="model" option_param="option"]. Add switcher="no" to hide the built-in model buttons and drive the configurator with your own links instead.
Yes. Each option can have a surcharge. The price updates live and the surcharge is checked again on the server when the product is added to the cart.
Each step and its chosen option are stored as order line meta ("Top finish: Sage green"), visible in the cart, at checkout, on the order and in the order emails.
The scripts load only on pages that contain the configurator. The model file is the main cost: keep it light.
The files in dist/ are built with webpack. The human-readable sources are in js/ and admin/js/, with webpack.config.js and package.json: run npm install and npm run build.