Removing unique orderlines. How to Check it's unique?
Hi
I have just noticed I am unable to remove an item from my basket.
Having searched your forum I can see I need to use "TeaCommerce.removeUniqueOrderLine" if the order line is unique. But I can't seem to find anything that tells me how to check if the orderline is unique to know that I need to use that?
Removing unique orderlines. How to Check it's unique?
Hi
I have just noticed I am unable to remove an item from my basket.
Having searched your forum I can see I need to use " TeaCommerce.removeUniqueOrderLine" if the order line is unique. But I can't seem to find anything that tells me how to check if the orderline is unique to know that I need to use that?
My current js for removing order items is this:
jQuery('.remove').live('click', function () { var button = jQuery(this), orderlineEle = button.closest('.orderLine'), orderlineid = orderlineEle.attr('orderLineId'), productId = orderlineEle.attr('nodeid'); TeaCommerce.removeOrderLine(productId); window.location.href = window.location.href; return false; });
Becky
Hi Bex,
All orderlines have a IsUnique bool variable. Just use that :)
/Rune
Well that was easy! :) Thank you Rune!
No problem. I love easy ones ;)
/Rune
is working on a reply...