Forum Replies Created
Confirmed: the ‘Quantity’ value is now correct. 🙂
FYI previously ‘Quantity’ values like ’35’ ‘1176’ and ‘1696’ were appearing as ‘3’ ’17’ and ’69’ respectively. If that helps(?)
Thanks – I’m glad the solution was so simple.
I’ll let you know if the incorrect ‘Quantity’ value persists.
i recently came across this:
perhaps you could integrate its functionality for this, yes?
just saw this, perhaps you could adapt another plugin i’m making use of? : http://www.techna2.com/blog/documentation/wp-post-to-pdf/
^ works great for WPEC product pages. i had to make some tweaks to get it to work…
in wp-post-to-pdf.php after the line:
// Process shortcodes if selected
$post->post_content = do_shortcode($post->post_content);
// Strip HTML formatting (i.e. post-text = strip_tags(post-text, 'exceptions') )
$post->post_content = strip_tags($post->post_content, '');
// Get post image (http://wordpress.org/extend/plugins/wp-get-post-image/)
$image = wp_get_post_image('width=500&parent_id='.$post->ID);
… and further down, i updated the output to:
// Set some content to print
$html = " . html_entity_decode($post->post_title, ENT_QUOTES) . ";
$html = html_entity_decode($image, ENT_QUOTES);
$html .= html_entity_decode($post->post_content, ENT_QUOTES);
the result is a clean pdf with the main post image above it.
then i edited the generate_pdf_file() function to include the wpsc-product page type:
if ('post' != $post->post_type and 'page' != $post->post_type and 'wpsc-product' != $post->post_type)
â€¦ using icon position = ‘manual’ setting under options, simply included the code in the single product page template.