Send an update to the server with the current shopper's updated attributes.

This method will update the current shopper's attributes and send them to the server.

As long as you using the setCurrentShopper method properly you should almost never need to use this API method.

This method accepts any data from the Shopper model schema.‚Äč

fera.push('updateShopper', {
data: {
favorite_color: "red",
clothing_size: "Medium"
name: "Jane Smith",
email: "jane.smith@example.com"
callback: function(successful) {
// called upon server respnsoe with true/false result
if (successful) {
console.log("Current shopper data was successfully updated.");

To see what attributes you can edit see: