How to get the product ID on the WP Ecommerce Transaction Results Page

The page here has a solution however it doesn’t work : http://wpquestions.com/question/show/id/1840 and the topic is closed hence for this post!

You need to edit this file : wpsc-transaction_results.php

I placed my code after the true statment for correct purchase

if ( ( true === $echo_to_screen ) && ( $cart != null ) && ( $errorcode == 0 ) && ( $sessionid != null ) ) {            
The value you need is $cart[0][prodid];

There are 2 array’s you can get information from $purchase_log and $cart

 

 

VN:F [1.9.22_1171]
Rating: 3.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
How to get the product ID on the WP Ecommerce Transaction Results Page, 3.0 out of 10 based on 1 rating

Tags: How to get the product ID on the WP Ecommerce Transaction Results Page

Trackback from your site.