Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help with Paypal minicart script

    Hi guys

    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:
    https://minicart.paypal-labs.com/



    The issue
    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.


    Cheers,
    CyRus
    Attached Files Attached Files

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,253
    Thanks
    203
    Thanked 2,557 Times in 2,535 Posts
    This forum is not a free coding service. As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for a commercial site when you ought really to pay a professional), but try to help with fixing code that doesn't work. You may perhaps get someone to write this script for you, but you'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.



    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay thanks, didn't know.
    Unfortunately I don't know how to code, so I need alot of help , but I'll take it elsewhere.

    Cheers,


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •