Only the users are allowed to enter the Central Administration. Login

Link generator add products to cart

You need create site.

Product IDs, separated by commas:* Number of items added to cart, separated by commas: Variety IDs: Link to redirect after adding items: Time to redirect: Repeat check:

Empty Trash:

Messages after adding item:


In addition to the usual adding a product by clicking on the "add to cart" button, you can create a special link with a request to add products. Using the link generator, you can specify the ID of the desired products, their quantity, display of messages (or their absence) about adding an item to the cart, a link for redirecting and the time before redirecting.

What is this used for? For example, to create a website for one product, with a button for placing an order in one click, while you will have full statistics as when placing an order through an online store.



Method of adding one product, with notification:

    For example: https://hotlist.biz/ru/?add_to_cart=19643&add_to_cart_num=1&add_to_cart_variety=0

    Where 19643 is the product ID, and 1 is the number of items added to the cart, 0 is the variety

    The request is sent using the GET method


A way to add multiple products with / or without notification, with the ability to redirect:

    For example:
    http://clock.ua.hotlist.biz/ru/page.php?p=cart&cart_generageted=no_message%3D1%26amp%3Bseller%3D3754%26amp%3Bproducts%255B25355%255D%3D1%26amp%3Breturn_url%3Dhttp%25253A%25252F%25252Fclock.ua.hotlist.biz%25252Fru%25252Fpage.php%25253Fp%25253Dcart


    The link is encrypted in the following way:
    urlencode(http_build_query($link_arr,'','&'));
    , where $ link_arr is an array,
    
    $link_arr = array();
    $link_arr['seller']=3754; #Your Site ID / Seller ID
    $link_arr['products']=array(); #declare an array with goods
    $link_arr['products'][25355]=1; # 1 - the amount of the added product in the request, 25355 - the id of the product. You can also add other products below  
    $link_arr['variaty'][25355]=0; # Variety ID (optional if no varieties are used).
    
    $link_arr['seller_sess']=mb_substr(md5(http_build_query($link_arr)),0,8); #session variable, used to check if the page is reopened by the link, so that the same products will not be added twice
    
    $link_arr['return_url']=urlencode('http://clock.ua.hotlist.biz/ru/page.php?p=cart'); #redirect link after adding
    
    $generated_link=urlencode(http_build_query($link_arr,'','&'));
    $result = '&cart_generageted='.$generated_link;
    


    As a result, we will get the text to be sent as a link:
    http://clock.ua.hotlist.biz/ru/page.php?p=cart&cart_generageted=no_message%3D1%26amp%3Bseller%3D3754%26amp%3Bproducts%255B25355%255D%3D1%26amp%3Bseller_sess%3Dfbbebd19%26amp%3Breturn_url%3Dhttp%25253A%25252F%25252Fclock.ua.hotlist.biz%25252Fru%25252Fpage.php%25253Fp%25253Dcart

    Example path "http://clock.ua.hotlist.biz/ru/page.php?p=cart" - This is the cart page so that the buyer can immediately start ordering the added product. If you are using this page, then there is no need to redirect return_url to the same page.
    no_message - Do not show popup message about request to add item to cart.
    seller_sess - session variable, checks if the same request has been sent before in this session.

    The same query can be made manually by replacing the values ​​from the example link:
    http://clock.ua.hotlist.biz/ru/page.php?p=cart&cart_generageted=no_message%3D1%26amp%3Bseller%3D3754%26amp%3Bproducts%255B25355%255D%3D1 Data highlighted by order:
    1) link to the page on which the request will be executed, then the request as a GET variable cart_generageted=
    2) no notification about adding to cart
    3) Seller ID
    4) Product ID
    5) Amount of added product


    Simplified Link:
    http://clock.ua.hotlist.biz/ru/page.php?p=cart&cart_generageted=no_message%3D1%26amp%3Bseller%3D3754%26amp%3Bproducts%255B25355%255D%3D5

    Example with multiple products:
    https://templates.hotlist.biz/ru/page.php?p=cart&cart_generageted=seller%3D435%26amp%3Bproducts%255B5141%255D%3D1%26amp%3Bproducts%255B17632%255D%3D1%26amp%3Bproducts%255B13906%255D%3D1%26amp%3Bproducts%255B12157%255D%3D1%26amp%3Bseller_sess%3D9962937f%26amp%3Breturn_url%3Dhttp%25253A%25252F%25252Ftemplates.hotlist.biz%25252Fru%25252Fpage.php%25253Fp%25253Dcart

    How to generate a link automatically?
    Add your items to the cart in the general catalog, and go to the cart. In your shopping cart you will have a link "Order". Copy it and add the parameter "no_message%3D1%26amp%3B" after "cart_generageted=". This way the items added to your cart will be added to the buyer. return_url can be removed if the path to the main page is the same as the redirect page.
    
    
    #php code example 
    
    $link_arr = array();
    $link_arr['no_message'] = '';
    $link_arr['seller']='SITEID'; #Your Site ID / Seller ID
    $link_arr['products']=array(); #declare an array with goods
    $link_arr['products']['PRODUCTID']='NUMBER_OF_PRODUCTS'; #The quantity of the added product in the request, and the id of the product. You can also add other products below  
    $link_arr['return_url']=urlencode('https://hotlist.biz/ru/page.php?p=cart&send'); #redirect link after adding
    
    $generated_link=urlencode(http_build_query($link_arr,'','&'));
    $result = '&cart_generageted='.$generated_link;
    
    echo $result;
    
    # result: 
    /*
    
    &cart_generageted=no_message%3D%26amp%3Bseller%3DSITEID%26amp%3Bproducts%255BPRODUCTID%255D%3DNUMBER_OF_PRODUCTS%26amp%3Breturn_url%3Dhttp%25253A%25252F%25252Fhotlist.biz%25252Fru%25252Fpage.php%25253Fp%25253Dcart%252526send
    
    */
    
    
    $link_arr = array();
    $link_arr['no_message'] = 'all'; #do not notify about anything (if the product is not added there will be no notification either
    $link_arr['seller']='SITEID'; #Your Site ID / Seller ID
    $link_arr['products']=array(); #declare an array with goods
    $link_arr['products']['PRODUCTID']='NUMBER_OF_PRODUCTS'; #quantity of added product in request, product id. You can also add other products below  
    $link_arr['return_timeout'] = 0; #redirect immediately or time in milliseconds. The default is 2000ms.
    $link_arr['return_url']=urlencode('https://hotlist.biz/ru/page.php?p=cart&send'); #redirect link after adding
    
    $generated_link=urlencode(http_build_query($link_arr,'','&'));
    
    
    $result = '&cart_generageted='.$generated_link;
    
    
    
    echo $result; # &cart_generageted=no_message%3Dall%26amp%3Bseller%3DSITEID%26amp%3Bproducts%255BPRODUCTID%255D%3DNUMBER_OF_PRODUCTS%26amp%3Breturn_timeout%3D0%26amp%3Breturn_url%3Dhttp%25253A%25252F%25252Fhotlist.biz%25252Fru%25252Fpage.php%25253Fp%25253Dcart%252526send
    






You can also create your own invoices using the link. Payment systems and invoices for payment.


Back