• Hello, I’m using your theme along with Woocommerce, and I have enabled Custom Shop Style in the Theme Options. I have also installed Not So Shortcode plugin.
    When I try to insert Woocommerce Shortcode into a post it does not work, i.e. shortcode [products ids=”” skus=””] (for Products by SKU/Id) does not bring any results, when I enter some SKUs into the shortcode.
    Can you please advise on this problem?
    Thank you

Viewing 14 replies - 1 through 14 (of 14 total)
  • Theme Author Richie KS

    (@rkcorp)

    did it appear when in single post?
    the shop list will not show any shortcode since it use excerpt()

    Thread Starter marthaki

    (@marthaki)

    Yes, I tried to create a single post including some of my products (e.g. to create an article presenting some of my products).
    In the post editor, there is a button with the woocommerce shortcodes. The only shortcode that seems to be somehow functioning is the one that brings one “Product by SKY/ID” ([product id=”” sku=””]), however even this shows the entry distorted, e.g. the product title is very large and the color background of the price embraced the product title as well as the price.
    The layout of this one product is similar to the layout in shop view (to your Custom Shop Style, which by the way is great!).

    Theme Author Richie KS

    (@rkcorp)

    do you mean the shortcode work, i meant the sku product list from the shortcode are showing but your problem is that their css or style is distorted?

    Thread Starter marthaki

    (@marthaki)

    The shortcode that doesn’t work at all (brings no results) is the one referring to many products (i.e. [products ids=”” skus=””].

    The other shortcodes (e.g. single product, recent products, featured products) work but their css or style is distorted, as you correctly mention.

    Theme Author Richie KS

    (@rkcorp)

    try disable custom shop and see if the sku shortcode work?
    also could you snap a screenshot of the

    other shortcodes (e.g. single product, recent products, featured products)

    so i can better understand the css error.

    Thread Starter marthaki

    (@marthaki)

    I send you a screenshot to see the css error:
    http://www.cheaptrips.gr/wp-content/uploads/2014/03/woocommerce-Shortcodes.jpg
    Also please note that after testing I realised that the “Product by SKU/ID” shortcode does not work if I enter ID, it works only with SKU.

    I deactivated the custom shop but the results were exactly the same. I send you another screenshot to see how it looks:
    http://www.cheaptrips.gr/wp-content/uploads/2014/03/woocommerce-Shortcodes_2jpg.jpg

    Thanks

    Thread Starter marthaki

    (@marthaki)

    Hello,
    any news about solving this issue?

    Theme Author Richie KS

    (@rkcorp)

    hi could you confirmed if this is plugin related issue or theme?
    try the shortcode usage in other woocommerce compatible theme.

    Thread Starter marthaki

    (@marthaki)

    it must be theme related. I have another website with Artificer Theme, and the shortcode “Products by SKU/ID” works fine, so do the rest shortcodes of woocommerce.
    Kindly view a sample page with 6 products I entered with their IDs.
    http://www.brandsales.gr/test-page-artificer-theme-products-id-shortcode/

    Theme Author Richie KS

    (@rkcorp)

    hi marthaki, will try check on the bug asap and append to next update. will update this thread also.

    Theme Author Richie KS

    (@rkcorp)

    seem to be working in my end but with some css style issue.
    i think the correct should be

    [products skus="code1,code2"]
    not
    [products ids="" skus="code1,code2"]

    accroding to woo shortcode guide/docs
    without id ids=””

    Thread Starter marthaki

    (@marthaki)

    yes, the shortcode you mention actually works but with css style issue.
    When are you going to release the next update? As you can see, I’m anxious to use this feature, it’s important for my business πŸ™‚

    Theme Author Richie KS

    (@rkcorp)

    no ETA at the moment, hopefully before end of this month.

    Theme Author Richie KS

    (@rkcorp)

    btw try edit functions.php line 191 to this

    if ( class_exists('woocommerce') && get_theme_option('custom_shop') == 'Enable' ) {
    if( get_post_type() != 'post' && get_post_type() != 'page' && file_exists( get_template_directory() . '/lib/woocommerce/woocommerce-theme-css.css' ) ):
    wp_enqueue_style( 'custom-woo-css', get_template_directory_uri() . '/lib/woocommerce/woocommerce-theme-css.css', array(), $theme_version );
    endif;
    }

    not sure if it work tho.

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

The topic ‘Woocommerce Shortcodes not functioning’ is closed to new replies.