add_action('wp_ajax_save_reference_code', function () { if (!is_user_logged_in()) { wp_send_json_error('Non autorisé'); } $user_id = get_current_user_id(); $ref = sanitize_text_field($_POST['reference'] ?? ''); if (!$ref) { wp_send_json_error('Référence manquante.'); } // 1. Save as last reference update_field('last_reference_used', $ref, 'user_' . $user_id); // 2. Append to history $history = get_field('reference_history', 'user_' . $user_id); $history = trim($history); if ($history) { $history .= "\n" . $ref; } else { $history = $ref; } update_field('reference_history', $history, 'user_' . $user_id); wp_send_json_success("✅ Référence enregistrée : $ref"); }); PROTEGE CAHIER 24*32 – Back to school

Back to school

Besoin d’aide? Contactez nous: +212 5 22 26 67 41
1000 In Stock

PROTEGE CAHIER 24*32

4.46 MAD

Disponible en stock

Paiement 100% sécurisé

PRO24322012

Reviews

There are no reviews yet.

Be the first to review “PROTEGE CAHIER 24*32”

Your email address will not be published. Required fields are marked *

Default Product Image
You're viewing: PROTEGE CAHIER 24*32 4.46 MAD
Add to cart
en_USEnglish
Panier d’achat0
Il n'y a pas d'articles dans le panier !
Continue shopping
0
Sélectionnez les champs à afficher. Les autres seront masqués.
  • Image
  • Référence
  • Évaluation
  • Prix
  • Stock
  • Disponibilité
  • Ajouter au panier
  • Description
  • Contenu
  • Poids
  • Dimensions
  • Informations complémentaires
Cliquez à l’extérieur pour masquer la barre de comparaison
Comparer