Can I Use The BMT Shopping Cart On My Website

⟵ Back to General

YES! If you would like to use our shopping cart buttons on your website:

If you would like the shopping cart to show up in a popup window, copy and paste the following javascript. Place this javascript between the tags at the top of any HTML page using the shopping cart buttons.

<script type="text/javascript" language="javascript" src="https://www.bmtmicro.com/resources/cart/cart.js"></script>

Popup shopping cart links will look something like this:

javascript:popUp(‘https://secure.bmtmicro.com/servlets/Orders.ShoppingCart?PRODUCTID=99999’);

So your complete HTML link should look like this:

https://secure.bmtmicro.com/cart?PRODUCTID=99999

Use this for the “View Cart” or “Check Out” buttons:

javascript:popUp(‘https://secure.bmtmicro.com/servlets/Orders.ShoppingCart’)

Non popup version for “View Cart” or “Check Out” buttons:

https://secure.bmtmicro.com/cart?CID=YOUR_VENDOR_NUMBER

Specialized BMT Micro Shopping Cart Options

The following carts are based on the basic BMT Micro order form layout.

Cart 2

https://secure.bmtmicro.com/cart?CID=2&PRODUCTID=1100

is the same as our standard shopping cart above with all available options, only a slightly different layout. Basically, this cart was created for non-Popup use.

Many affiliates request a generic order form to avoid potential distractions to an impulse shopper that may have clicked on their affiliate order link for your product(s). If you have customized forms and an affiliate requests a generic form, you can use the most appropriate link above in combination with the &AID= parameter. Please note, if adding the affiliate ID parameter to shopping cart links, there must be a separate AID for each PRODUCTID.

Our shopping cart is designed to hold product information for 60 days. If you want to be sure the customer is always presented with a clean shopping cart, you can add the CLR=0 parameter. If you use CLR=[your_vendor_id], only items that are not associated with [your_vendor_id] will be cleared from the cart. For example, if you wanted a link that would only show the item that the link is for, regardless of previous items the customer added to the BMT Micro shopping cart, use:

https://secure.bmtmicro.com/cart?CLR=0&PRODUCTID=[your_product_id]

New for 2019

Compressed Cart

To use the new and compressed BMT Micro cart, you first need to add these two script tags inside of the head of your HTML page:

<!-- BEGIN BMT Micro Shopping Cart -->
<script src="https://secure.bmtmicro.com/bmt_cart.js"></script>
<link rel="stylesheet" href="https://secure.bmtmicro.com/bmt_cart.css" />
<!-- END BMT Micro Shopping Cart -->

To create an “Add to Cart” button, you need to add the following line of code wherever you would like to display the button:

<input id="buybutton" type="button" value="Add PRODUCTID to cart" onclick="bmt_addtocart(PRODUCTID);">

*Replace PRODUCTID with your PRODUCTID number (i.e. <input id="buybutton" type="button" value="Add 123 to cart" onclick="bmt_addtocart(123);">).

To display a button that will show the cart when clicked:

<input id="buybutton" type="button" value="Show cart" onclick="bmt_showcart(CID);">

*Replace CID with your CID number (i.e. <input id="buybutton" type="button" value="Show cart" onclick="bmt_showcart(1);">).

For the “Buy Now” button, just add this line where you want to display the button:

<input id="buybutton" type="button" value="BUY NOW!" onclick="bmt_checkout(PRODUCTID, CID);">

*Replace PRODUCTID and CID with your PRODUCTID and CID numbers (i.e. <input id="buybutton" type="button" value="BUY NOW!" onclick="bmt_checkout(123, 1);">).

PLEASE NOTE: The CID is optional here, but should always come after the PRODUCTID and separated by a “,”

Options:

bmt_addtocart(PRODUCTID, SHOW_CART);

SHOW_CART can be set to false to not bring up the cart (optional, true by default).

bmt_showcart(CID, CHECKOUT);

CHECKOUT can be set to true to initiate a checkout (optional, false by default).

bmt_clearcart (CID, SHOW_CART);

bmt_clearcart() empties the cart with or without showing it. SHOW_CART can be set to false to not bring up the cart (optional, true by default).

Cart Example (Extended)

View the example cart webpage

In the example cart, you can see the difference between the “checkout” and “add to cart” options and to see how to define the shopping cart parameters for your products.

The code from the example cart is below:

<!DOCTYPE HTML>
<html lang="en">
  <head>
    <title>Cart Example</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- BEGIN BMT Micro Shopping Cart -->
    <script src="https://secure.bmtmicro.com/bmt_cart.js"></script>
    <link rel="stylesheet" href="https://secure.bmtmicro.com/bmt_cart.css" />
    <!-- END BMT Micro Shopping Cart -->

    <!-- BEGIN Custom Shopping Cart -->
    <script>       
      function createcart (productid) {
        cart = bmt_createCart (1);
        cart.setOrderParameters ("supergamer");
        cart.showOrderParameters ("In-game User Name");
        return (cart);
      }
      function checkout(productid) {   
        var cart = createcart ();
        if (productid) {
          cart.clearCart ();
          cart.addProduct (productid);
        }
        cart.showCart (true);
      }
      function addtocart(productid) {   
        var cart = createcart ();
        cart.addProduct (productid);
        cart.showCart (false);
      }
    </script>             
    <!-- END Custom Shopping Cart -->

    <style>
      body {
        margin: 0;
        font-family: 'Lato', sans-serif;     
        background-image: url("https://i.redd.it/dmzh9jvg7dj01.jpg");
      }  

      #content_outer {        
        position: absolute;
        display: table;
        width: 100%;
        height: 100%;       
        z-index: 1100;
      }                       

      #content_inner {
        display: table-cell;
        text-align: center;
        vertical-align: middle;
      }
        
      #content {
        display: inline-block;
      }

      #buybutton {
        font-family: "Helvetica Neue";
        border: 1px solid rgba(0,0,0,0.3);
        border-radius: .363636364em;
        display: inline-block;
        vertical-align: middle;
        width: auto;
        height: 3em;
        line-height: 2em;
        padding: 0 1.2em;
        white-space: nowrap;
        text-align: center;
        color: white;
        font-weight: 400;
        font-size: 28pt;
        text-decoration: none;
        background-color: #0074C0;
      }
    </style>

  </head>
      
  <body>    
    <div id="content_outer">
      <div id="content_inner"> 
        <div id="content">                                                     
        <!-- BEGIN Custom Shopping Cart -->
          <input id="buybutton" type="button" value="Express Checkout: BMT on CD" onClick="checkout(10000);"/><br /><br />
          <input id="buybutton" type="button" value="Add to cart: Extended Download Insurance" onClick="addtocart(10000);"/><br /><br />
          <input id="buybutton" type="button" value="Add to cart: Java Fixpak CD" onClick="addtocart(10001);"/><br /><br />
          <input id="buybutton" type="button" value="Add to cart: Midnight Synergy Collection DVD Shipping" onClick="addtocart(10002);"/><br /><br />
          <input id="buybutton" type="button" value="Cart Checkout" onClick="checkout();"/><br /><br />
        <!-- END Custom Shopping Cart -->                      
        </div>            
      </div>
    </div>
  </body>  
</html>

WordPress Plugin

    BMT Micro now offers a WordPress shopping cart plugin! This allows you to use our custom shortcode to display the shopping cart buttons on the pages of your choice. For information regarding the plugin and how to download it, please click here!

That’s it! You’re ready to use our shopping cart!

If you would like further information regarding a customized cart or utilizing this cart in other ways, please contact us for the correct links for your product(s).


⟵ Back to General

Skip to toolbar