Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Creating Wishlist

$
0
0

@vibinflogesoft wrote:

Hi,
I need to create a wishlist on ionic3 magento application.When i added to wishlist the button should have to change color.But while reloading the page it looks like the same,any one can help me on this?
Here is my code
HTML

TS

addtoWishlist(a){
    console.log(a);
    if(a==true){
        if(this.customerid){
            this.wishListSer.addtoWishlist(this.customerid,this.productid)
                .subscribe((res:any)=>{
                    console.log(res);
                    if(res.sucess=true){
                        this.messageSer.addedToWishlist();
                    }
            })
        }
        this.heart_clicked=true;
    }else{
          this.heart_clicked=false;
    }

}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>