Remove button needs true page/post id

In a situation where you are running a loop on a page and have the cart loading inside that loop somewhere, $post is actually not the true post object for the page or post we are on.

If we use $wp_query instead, we will get the id of the parent page no matter what.
Merge pull request #2449 from mintplugins/master

Remove button needs true page/post id