How To Add Self Hosted Send Order Email Scipts

By default BlogrCart Closet Blogger store theme comes with a built-in send order e-mail checkout & this service is made available for free, UNLIMITED sends e-mail orders & can be accessed 24/7. This service is maintained & updated to allow sending of emails on the "fly" without using any database or keeping any data.

This will allow almost to instant sending of orders from any BlogrCart powered theme checkout form. Later, Blogger store owners can follow up with the sent orders via e-mail to their users or customers. In addition, various customization can be included for blog store owner e-mail settings to enhance user's checkout experience.

The plug-in installed with BlogrCart Closet can also allow Blogger store users to use alternate send order scripts, pointing to where the scripts are hosted to. Find below, the easy set-ups to include a plug-in scipt to host your own send order mail functions for BlogrCart Closet Blogger theme:-   


Back-up your Blogger template (if required), at template editor, Jump to Widget HTML99 & find <b:includable id='cart-email-settings'> expand the code to view the details. Below is an example:-

  simpleCart({
    checkout:{ type:"SendForm", method:"POST", extra_data: {
      firstname:document.getElementById("first_name").value,
      lastname:document.getElementById("last_name").value,
      email:document.getElementById("email").value,
      phone:document.getElementById("phone").value,
      address:document.getElementById("address").value,
      postcode:document.getElementById("postcode").value,
      comments:document.getElementById("message").value,
      }
    }
  });

Now, to use your own send order script with BlogrCart Closet Blogger store theme, change the codes as follows:-

  simpleCart({
    checkout:{
      type:"SendForm",
      method:"POST",
      myCheckout: true,
      url: "http://YOUR-URL-TO-SELF-HOSTED-SEND-ORDER-SCRIPT.php",
      extra_data: {
      firstname:document.getElementById("first_name").value,
      lastname:document.getElementById("last_name").value,
      email:document.getElementById("email").value,
      phone:document.getElementById("phone").value,
      address:document.getElementById("address").value,
      postcode:document.getElementById("postcode").value,
      comments:document.getElementById("message").value,
      }
    }
  });

The highlighted codes above are the additional functions to tell the plug-in that you want to send the checkout data to your own self hosted send order script.

At myCheckout: true will tell the shopping cart plug-in to activate a custom checkout to point to a custom URL.

At url: "http://YOUR-URL-TO-SELF-HOSTED-SEND-ORDER-SCRIPT.php" is telling the shopping cart plug-in to point to the new hosted script for further processing.
How To Add Self Hosted Send Order Email Scipts How To Add Self Hosted Send Order Email Scipts

Không có nhận xét nào

Đăng nhận xét

Subscribe Our Newsletter

Get the latest OFFERS right to your mail.