Title: wpsc_products shortcode
Last modified: August 21, 2016

---

# wpsc_products shortcode

 *  Resolved [tkirtley](https://wordpress.org/support/users/tkirtley/)
 * (@tkirtley)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wpsc_products-shortcode/)
 * Hi,
 * Whats up with the wpsc_products shortcode?
 * I have the following hardcoded in a template:
 * `<?php echo do_shortcode("[wpsc_products product_id='768']"); ?>`
 * But nothing, what am I doing wrong?
 * Thanks in advance,
    Tim
 * [http://wordpress.org/plugins/wp-e-commerce/](http://wordpress.org/plugins/wp-e-commerce/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * (@misulicus)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wpsc_products-shortcode/#post-4501433)
 * Hey Tim,
    I just tested the code and it works. Are you using the correct product_id
   value ?
 * Regards
    Mihai
 *  Thread Starter [tkirtley](https://wordpress.org/support/users/tkirtley/)
 * (@tkirtley)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wpsc_products-shortcode/#post-4501565)
 * Hello, thanks for the reply.
 * Yeah certain about the product ID.
 * I have shortcodes working on our live site which is running 3.8.12.1
 * On our dev site, I’ve updated to the latest 3.8.13.2 and the shortcode is no 
   longer displaying.
 * Now, as a bit more information – the shortcode is being used on a product page
   in a sort of ‘related products’ type section.
 * On our live site there was a section in the ‘shortcode.functions.php’ file that
   I had to comment out in order to allow the shorttags to display:
 *     ```
       disable this shortcode on products
       	if ( get_post_type() == 'wpsc-product' )
       		return '';
       ```
   
 * Now on 3.8.13, there is no longer a shortcode.functions.php in the wp-include
   folder – where has the contents of this file gone?
 * Thanks,
    Tim
 *  [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * (@misulicus)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wpsc_products-shortcode/#post-4501566)
 * Look under \wpsc-components\theme-engine-v1\helpers\shortcodes.php
    Its in there.
   With the introduction of the theme engine most of the old functions have been
   moved inside the new theme engine component. Regards Mihai
 *  Thread Starter [tkirtley](https://wordpress.org/support/users/tkirtley/)
 * (@tkirtley)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wpsc_products-shortcode/#post-4501617)
 * Thanks,
    Found the new shortcode location thanks.
 * Two questions, why is the shortcode functionality disabled on product pages? 
   Commenting it out seemed to have worked – my shortcode works and havent noticed
   any unwanted sideaffects?
 * And secondly – probably a bit more general WordPress knowledge would help here–
   but is there a way I can override the disable shortcodes function, from within
   my themes functions.php as commenting out the core file gets overwritten when
   updating.
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wpsc_products shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-e-commerce_ebebeb.svg)
 * [WP eCommerce](https://wordpress.org/plugins/wp-e-commerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-e-commerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-e-commerce/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-e-commerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-e-commerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-e-commerce/reviews/)

## Tags

 * [wp ecommerce](https://wordpress.org/support/topic-tag/wp-ecommerce/)

 * 4 replies
 * 2 participants
 * Last reply from: [tkirtley](https://wordpress.org/support/users/tkirtley/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/wpsc_products-shortcode/#post-4501617)
 * Status: resolved