Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey Tim,
    I just tested the code and it works.
    Are you using the correct product_id value ?

    Regards
    Mihai

    Thread Starter tkirtley

    (@tkirtley)

    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

    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

    (@tkirtley)

    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.