how to show sku?

This topic is: not resolved

This topic contains 9 replies, has 8 voices, and was last updated by  daviday 1 year, 8 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
Author Posts
Author Posts
December 23, 2009 at 4:08 pm #135062

notagrouch
New Member

Using WP 2.9, the latest release of wp-e-commerce under with the Thesis theme…

Does anyone know how I can show the SKU on the single product view page? And /or in the grid display view?

I can't seem to find any setting that accomplishes this and it seems something that would be done all the time.

has anyone done this before? can you help me please?

Thank you.

December 26, 2009 at 4:08 am #135063

bencharity

I am also looking for this option.

December 27, 2009 at 2:00 am #135064

Visser Labs
Trusted

I'll have a look at this tomorrow, I'm playing with some new WP E-Commerce theme's for my sites so will tackle that at the same time. Should be easy enough to add a function like wpsc_product_title() or whatever.

December 27, 2009 at 1:45 pm #135065

Visser Labs
Trusted

Use the wpsc_product_sku function, it requires a product ID parameter. I have provided sample code below.

wpsc_product_sku( wpsc_the_product_id() )

January 6, 2010 at 4:52 am #135066

notagrouch
New Member

Thanks a lot @visser.labs. I'll try that out in a little while.

January 7, 2010 at 8:33 am #135067

Royce002

This worked like a charm, thank you Visser!

February 22, 2010 at 1:32 pm #135068

ithackermike

Thx @visser for the tip. However I added wpsc_product_sku( wpsc_the_product_id() ) to the cart_widget.php file and the first product that I add to the cart has the correct SKU. But when I add the second product , all products have the SKU of the last product that i add to the cart.

Any ideas? is there an Ajax file that i need to update as well?

February 22, 2010 at 7:36 pm #135069

Lee Willis
Resident Expert
Trusted

Try this instead:

wpsc_product_sku(wpsc_cart_item_product_id());

June 13, 2011 at 11:08 am #135070

rhmpano@gmail.com

I’m sorry but none of the above makes any sense. The sku should by default be part of the %product_list%%total_shipping%%total_price% statement. Having to waste a day trying to figure out how to add it is ….. then only to lose it when the next upgrade is released. Why is there a sku field? is there only for looks??

If 1 in 100 doesn’t want it, then to bad, but any serious POS has to pass the sku to fulfillment to be taken seriously.

The above discussion still doesn’t spell out which files to modify and how.

September 2, 2011 at 6:35 am #223176

daviday
New Member

I agree with @rhmpano.
If you can’t pass it on to the order details as well as to the payment gateway it is a useless field.

Viewing 10 posts - 1 through 10 (of 10 total)

The forum ‘Archives – How-To and Troubleshooting’ is closed to new topics and replies.