Jump to content

Find Out Product ID


30ml
 Share

Recommended Posts

hi, I am on module development process. Currently I am hang on find out product ID. Here, I have customer id and order id. Through this customer id or order id I want to find out product ID. How can I get product ID ? I have tried on OrderCore and ProductCore Class but I could not find out.

 

Thanks !!

 

 

Share this post


Link to post
Share on other sites

I do know if we can get product id from  Order::getProducts() and Order::getOrderDetailList() methods from customer id/ order id but ya we can find product id from cart id. However this is solution for me.

 

Here, I have done with

OrderCore::getOrderByCartId($orderlist['id_cart']);

Here, $orderlist is the array of product list with detail information

Edited by 30ml (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More