Support » Plugin: WP eCommerce » product id on checkout page

  • I am trying to retrieve a custom field for each product on the checkout page. It is easy on the products page and the single product page.

    I think that would be fine if I could get the product id and use it to call the right field.

    But I cannot find a function that will retrieve the product id – if I use wpsc_the_product_id(); I get the page id of the checkout and I can’t find the function that will call the cart_item product id is there one?

    Can anyone help?

    https://wordpress.org/plugins/wp-e-commerce/

Viewing 1 replies (of 1 total)
  • Thread Starter charlotte

    (@charlotte23)

    Solved this conundrum…. easier than I thought!

    $units = wpsc_cart_item_product_id();
    the_field('unit', $units);
Viewing 1 replies (of 1 total)
  • The topic ‘product id on checkout page’ is closed to new replies.