Changelog

Nov 27, 2020

New Additions

  • Adds new filter localized_url that can be used to manipulate Ajax API’s URLs for Cart and Get Upsells/Recommendations

    upside.ucd.filters.localized_url.push(e => {
        // Prefix locale for cart api
        if(e.type === 'cart' && Shopify.locale && Shopify.locale.toLowerCase() !== 'en')
        {
            e.url = '/' + Shopify.locale + e.url
        }
          
        return e;
    })
    

 


 

Nov 23, 2020

New Additions

  • Restrict max quantity for items if an attribute max or data-max is set. The following code sets maximum 10 quantity for related item.

    <input type="text" max="10" ....other attributes here />
    

 


 

Nov 09, 2020

New Additions

  • Adds new settings to hide cart count element when the cart is empty.

 

Bug Fixes

  • Hide special instructions when the hide special instruction checkbox is ticked on settings page.

 


 

Oct 26, 2020

New Additions

  • Adds filter to modify Recharge Subscription’s checkout URL.
upside.ucd.filters.recharge_checkout_url = upside.ucd.filters.recharge_checkout_url || [];

upside.ucd.filters.recharge_checkout_url.push(function(url){
	// Modify URL if needed and return it
	return url;
});

 

Bug Fixes

  • Allow setting special offer notification tier’s amount in multiple currencies
  • Allow setting tiered free items tier’s amount in multiple currencies

 


 

Oct 26, 2020

New Additions

  • Adds new settings to takeover cart icon/link that will replace it’s href to a #. It will help open the drawer on some theme which redirect the user to cart page.
  • Adds new settings to takeover cart form to remove it’s action. It will help double firing of facebook pixels.
  • Adds new selector for add to cart form in official themes so the multilingual websites cart form can be handled correctly.

 


 

Oct 18, 2020

New additions

  • Added new Handlebars truncate helper that can be used to truncate any text in the theme templates.

     * @param {String} `str`
     * @param {Number} `limit` The desired length of the returned string.
     * @param {String} `suffix` Optionally supply a string to use as a suffix to denote when the string has been truncated.
    
    {{truncate str 30 '...'}}
    
    // Examples
    
    {{truncate 'foo bar baz' 7}}
    <!-- results in:  'foo bar' -->
    
    {{truncate "foo bar baz" 10 "..."}}
    <!-- results in:  'foo bar...' -->
    

 

Bug Fixes

  • Fixes Apply discount code button to use the last discount field available in the drawer. Sometimes other apps append the discount fields to the cart form and that results into not working the button properly