I have a website that utilizes Paypal's mini cart solution. For those who are not familiar with it, it is basically an e-commerce cart coded in js that when configured correctly retrieves data from one or multiple forms (depending on the number of products on your webpage). The cart then updates dynamically as products are added or removed from the cart.
When a customer is done shopping he can click "check out" and he will be transferred to Paypal's website, where he can then pay for the products.
For those who wants to see what I am talking about, you can look here:
I have a portion of my site set up for special customers that have their own login. When they are logged in, they see special products and prizes. I want to use the minicart here as well, however I am not able to do so at the moment because these customers, I do not want should pay directly but instead receive an invoice. What I therefore would like to have is instead of the customer being redirected to Paypal's website when checking out, there is instead initiated a piece of code that takes the content of the cart and sends it to a specified email.
This way, I will receive an email when an order is placed and I can send an invoice accordingly to the customer.
I would imagine it involves writing a piece of code that breaks the array where the products are stored and then sends it as plain text; e.g. via phpmail.
This code should then be called when the customer clicks the "Check out" button.
I have attached the minicart code
Sorry for being overly descriptive, I just want to make sure that the problem is clear.
If you need more information let me know.