Ok , i want to build a store that sale a various of products one of these is
courses training, every student choose one of a training courses as product and checkout after,in the order email we will find all the student's details with training courses detail(date ,place and trainer)the name of products that is buy and each order has a unique QR code that will be scanned and verify if the student has a order(exist or not) plz help me ?
Asked
Active
Viewed 2,072 times
-4

elmgadmini sabrine
- 29
- 8
-
Please flesh out the information with an example scenario to get a grasp of what you want to achieve in a more concise manner. Maybe even doing that leads you to the answer you need. It seems this is not a simple and concise question. Probably you'll need multiple parts working together to make this work. Once you define more clearly your problem and design a possible solution, stackoverflow could help you with problems you encounter along the way – ElMesa Nov 02 '18 at 16:41
-
ok ,ELMesa i had add all the informations that you need to help me – elmgadmini sabrine Nov 03 '18 at 20:00
1 Answers
2
Without knowing anything of WooCommerce or Wordpress I would suggest:
- Adding a 'Custom order metadata item' with a unique ID:
- Check:'Add custom order item meta data'
- Maybe this is unnecessary and you can reuse the plain ID from the order
- Then 'Dynamically generating a QR code with PHP' to render the QR

ElMesa
- 928
- 8
- 19
-
but how to add this 'Dynamically generating a QR code with PHP' in my woocommerce ? – elmgadmini sabrine Nov 09 '18 at 16:21
-
thanks , your solution is very helpful, first i want to ask you about the setting of {hookr.io/actions/woocommerce_add_order_item_meta} and where include it. ,actually i had integrate this "
" and put it in order-details.php into the table the QR is shown in order_received and in order email also but in pdf invoice the QR code not shown !!! can you help me plz. – elmgadmini sabrine Nov 12 '18 at 15:23
-
Sorry mate, I don't know much about PHP and anything about Woocomerce. Just thought of a generic solution and googled a pair of links to StackOverflow. I hope you manage to get that working. Good luck, mate. – ElMesa Nov 12 '18 at 22:47