title: Make Wish List Dynamic for each item/ article
body: <p>HI i got a little Problem i have whish list script which adds artivcles from shop into a session and saves them but when i click on the which list he only adds the first item how to male it dynamic that every wish list click is for the individual item in the shop</p>
  
  <p>my article structure, onclick of wlbutton1 or wlbutton2 he should add the article with id1 or 2 to the wishlist:</p>
  
  <pre><code>    echo '&lt;div class="span3 filter--'.$obj-&gt;product_prop1.'" data-price="'.substr($obj-&gt;price, 0, -3) . '" data-popularity="3" data-size="s|m|xl" data-color="pink|orange" data-brand="'.$obj-&gt;product_brand.'"&gt;'; 
          echo '&lt;div class="product"&gt;'; 
          echo '&lt;div class="product-img featured"&gt;'; 
          echo '&lt;form method="post" action="../cart_update.php"&gt;';
          echo '&lt;div class="picture"&gt;&lt;img src="images/'.$obj-&gt;product_img_name.'"&gt;';
          echo '&lt;div class="img-overlay"&gt;&lt;button class="add_to_cart btn more btn-primary"&gt;Kaufen&lt;/button&gt;&lt;a href="#" class="btn buy btn-danger" id="producturl'.$obj-&gt;id.'"&gt;...mehr&lt;/a&gt;&lt;/div&gt;';
          echo '&lt;/div&gt;';
          echo '&lt;/div&gt;';
          echo '&lt;div id="result"&gt;&lt;/div&gt;';
          echo '&lt;div class="main-titles"&gt;&lt;h4 class="title"&gt;'.$currency.$obj-&gt;price.'&lt;/h4&gt;';
          echo '&lt;h5 class="no-margin isotope--title" id="product'.$obj-&gt;id.'"&gt;'.$obj-&gt;product_name.'&lt;/h5&gt;';
          echo '&lt;p class="no-margin pacifico" style="position: absolute;right: 10px;top: 5px; text-transform: capitalize;"&gt;'.$obj-&gt;product_brand.'&lt;/p&gt;';
          echo '&lt;p class="no-margin" style="position: absolute;right: 10px;top: 25px;"&gt;&lt;a class="wl-button'.$obj-&gt;id.'"&gt;&lt;i class="icon-gift"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;';
          echo '&lt;/div&gt;';
          echo '&lt;p class="desc"&gt;'.substr($obj-&gt;product_desc, 0, 160) . '...&lt;/p&gt;';
          echo '&lt;input type="hidden" name="product_qty" value="1" /&gt;';
          echo '&lt;input type="hidden" name="product_code" value="'.$obj-&gt;product_code.'" /&gt;';
          echo '&lt;input type="hidden" name="type" value="add" /&gt;';
          echo '&lt;input type="hidden" name="return_url" value="'.$current_url.'" /&gt;';
          echo '&lt;/form&gt;';
          echo '&lt;/div&gt;';
          echo '&lt;/div&gt;';
  </code></pre>
  
  <p>My Jquery Code how to make it dynamic and individual for eacht artivle?:</p>
  
  <pre><code>$(".wl-button").click(function() {
      var wlproduct = $('#product').text();
      var wlproducturl = $('#producturl').attr('href');
      $.ajax({
          type : "POST",
          url : "../assets/wlscript.php",
          data : { wlproduct : wlproduct, wlproducturl : wlproducturl },
          success : function(data) { 
          $('div#result').text('You added '+wlproducturl+' '+wlproduct+'\'s to your wishlist.');
          }
      }); 
  }); 
  </code></pre>