did it appear when in single post?
the shop list will not show any shortcode since it use excerpt()
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!).
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?
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.
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.
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
Hello,
any news about solving this issue?
hi could you confirmed if this is plugin related issue or theme?
try the shortcode usage in other woocommerce compatible theme.
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/
hi marthaki, will try check on the bug asap and append to next update. will update this thread also.
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=””
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 π
no ETA at the moment, hopefully before end of this month.
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.