Added cart items should be sent to the mail of the user

  • 1
  • Question
  • Updated 3 years ago
  • Answered
 

Iam using this script in my checkout.html page to display the cart items of the user. But when he clicks "confirm order" then mail should be sent containing information of the cart items and details. How i should write php code to sent an email containing details of the cart with this code. Pls help me and give me suggestions

<script>
        // Mini Cart
        paypal.minicart.render({
            action: ''
        });

        if (~window.location.search.indexOf('reset=true')) {
            paypal.minicart.reset();
        }
    </script>
Photo of Aswini RS

Aswini RS

  • 1 Post
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
php coding is not supported by the Yola sitebuilder for site owners use. You would need to develop or find a js script or some HTML to do this.

You could try:
 // Mini Cart
        paypal.minicart.render({
            action: (your_checkout
        });

where your_checkout directs to a form and actions a submit command. (?)
(Edited)