setCartUrl

This function saves the url of shop cart page. If you do not use this function, the url of shop cart page is taken when the checkoutIds functions is called.

   var _ra = _ra || {};

   _ra.setCartUrlInfo = {
       "url": "shopcart_page_url"
   };

   if (_ra.ready !== undefined) {
       _ra.setCartUrl(_ra.setCartUrlInfo.url);
   }

setCartUrl function parameters

Field Type Required Description
url URL True url of shop cart page

setCartUrl function examples

   var _ra = _ra || {};

   _ra.setCartUrlInfo = {
       "url": "http://site.com/shopcart-page"
   };

   if (_ra.ready !== undefined) {
       _ra.setCartUrl(_ra.setCartUrlInfo.url);
   }