Is possible to add Wishlist products with quantity and other attributes to Cart in prestashop?
I used the below code in managewishlist.tpl to add the product to cart and remove it from wishlist.
<a class="button btn-default ajax_add_to_cart_button btn btn-default"
href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&qty={$product.quantity}", false)|escape:'html':'UTF-8'}"
rel="nofollow" title="{l s='Add to cart'}"
data-id-product="{$product.id_product|intval}"
onclick="WishlistProductManage('wlp_bought', 'delete', '{$id_wishlist}', '{$product.id_product}', '{$product.id_product_attribute}', $('#quantity_{$product.id_product}_{$product.id_product_attribute}').val(), $('#priority_{$product.id_product}_{$product.id_product_attribute}').val());">
<span>{l s='Add to cart'}</span>
</a>
please let me know how to pass the quantity value so that i can get result.
for example if i have one product in wishlist and its quantity is 3.
so when i click on add to cart it should add 3 quantity of the same product.
Also let me know how can i pass color and size attribute that is available in wishlist.