Adding products

Go to the https://store-admin.apicart.dev. In the left menu, in the products section, click on the Items overview. You will get on the page with the list containing all the items you have added in our administration.

On the right top side of the page, there is a circle. Click on it to open hidden menu and select add item. You will get on a page with a form for creating new product.

Fill the following information: 

  • Unique identifier: 1
  • Name: Test product
  • Price: 10
  • Vat: Vat in your country
  • Image: Custom

Click on save, then click on the Items overview in the right menu again. On the items page there should be the product you have created. 

Click on the product detail button and copy its url that is on the end of the information table. Open the index.html file and change the url in the button element.

<button data-apicart-add-item="REPLACE THIS TEXT BY YOUR PRODUCT URL">Buy</button>

Custom products

In case you want to server products from custom url or from your administration, go to the Administration > Domains overview (left menu) > Select domain > Data provider (from tabs in the top navigation) and add the mask of the url from which you want to serve the products like https://my-ecommerce.com/ or https://www.my-ecommerce.com/.

The file must be a JSON type and the minimal structure is the following:

{
   "id":"1",
   "name":"Men's Modern green t-shirt",
   "price":25.0,
   "taxRate":21
}

You can also add more parameters:

{
   "id":"1",
   "name":"Men's Modern green t-shirt",
   "price":25.0,
   "taxRate":21,
   "description":"<p><span style=\"letter-spacing: 0.32px;\">Men's green sport T-shirt</span><br></p>",
   "availability":"Available",
   "images":{
      "primary":{
         "url":"https://cdn.apicart.dev/external/wlhv1egho2u4p0e0nkne2mks7f9btigi/images/01/1-1580765787-28.png"
      }
   }
}

So now we know how to add products. Great work! Let´s add delivery methods.

Create E-commerce in 5 minutes

Try it. It is for free.