WooCommerce & WordPress Hook Integration
Camerino Virtuale con IA per Negozi WooCommerce
Aggiungi il camerino virtuale al tuo negozio WooCommerce senza sovraccaricare il server.
Zero overhead PHP
Nessun consumo di CPU o memoria sul tuo server WordPress. Tutta l’inferenza su GPU gira sull’infrastruttura Anddress.
Hook nativi di WooCommerce
Si aggancia nativamente a punti standard come woocommerce_after_add_to_cart_button, senza toccare i template core.
Pronto per i page builder
Funziona senza attriti nei template Single Product di Elementor Pro, in Divi Builder o nei blocchi prodotto di Gutenberg, con Shadow DOM isolato.
Plugin Ufficiale per WordPress e WooCommerce
Installazione in 1 clic dalla bacheca di WordPress
Scarica il file ZIP e installalo da Plugin > Aggiungi nuovo > Carica plugin. Inserisci la tua chiave pubblica per attivarlo.
functions.php
Aggiungi questo snippet al tuo child theme
wp-content/themes/child-theme/functions.php:// 1. Anddress loader (~5 KB)
add_action('wp_footer', function() {
echo '<script src="https://app.anddress.com/widget/anddress-loader.js" data-brand-key="pk_live_..." async></script>';
});
// 2. Try-on button on the WooCommerce product page
add_action('woocommerce_after_add_to_cart_button', function() {
global $product;
if (!$product) return;
$img_id = $product->get_image_id();
$img_url = wp_get_attachment_image_url($img_id, 'full');
?>
<div style="margin-top: 14px;">
<anddress-tryon-button
data-garment-image="<?php echo esc_url($img_url); ?>"
data-garment-category="tops"
data-garment-id="<?php echo esc_attr($product->get_sku() ?: $product->get_id()); ?>"
data-garment-name="<?php echo esc_attr($product->get_name()); ?>">
</anddress-tryon-button>
</div>
<?php
});
// 3. Sales attribution on the order-received page
add_action('woocommerce_thankyou', function($order_id) {
if (!$order_id) return;
$order = wc_get_order($order_id);
if (!$order) return;
?>
<script>
window.Anddress?.trackPurchase({
orderId: '<?php echo esc_js($order_id); ?>',
value: <?php echo esc_js($order->get_total()); ?>,
currency: '<?php echo esc_js($order->get_currency()); ?>'
});
</script>
<?php
});