sl67
Forum Replies Created
-
Forum: Plugins
In reply to: [Get Use APIs - JSON Content Importer] PHP ErrorThank you)))
Forum: Plugins
In reply to: [WP eBay Product Feeds] Ebay feed not workingSame problem with Atom feed. No news?
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionI can’t attach files here
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionit points to some product but at other feeds everything is ok
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionit doesn’t see excerpt… again error: the field “description” in must not be empty.
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionI don’t understand why i can add excerpt in page archive with code:
add_action( ‘woocommerce_after_shop_loop_item_title’, ‘my_add_short_description’, 9 );
function my_add_short_description() {
echo ‘<span class=”title-description”>’ . the_excerpt() . ‘</span><br />’;
}and can add excerpt to Google product feed with code:
function lw_woocommerce_gpf_description( $description, $product_id, $variation_id = null ) {
global $post;
if ( ! is_null( $variation_id ) ) {
$ID = $variation_id;
} else {
$ID = $product_id;
}
$save_post = $post;
$post = get_post( $ID );
if ( ! empty( $post->post_parent ) ) {
$post = get_post( $post->post_parent );
}
setup_postdata( $post );
$excerpt = get_the_excerpt();
$post = $save_post;
return $excerpt;
}
add_filter( ‘woocommerce_gpf_description’, ‘lw_woocommerce_gpf_description’, 10, 3 );and can’t do it with your plugin?
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionI don’t understand why it imports normally full descriptions and shows errors for some products when I want excerpt!
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionI will try it now, but in my google feed excerpts are ok
Forum: Plugins
In reply to: [Pixel Caffeine] Product description🙁 nope… same full description…
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionit gives full description
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionbut it worked in “Woocommerce Google product feed” with the code:
function lw_woocommerce_gpf_description( $description, $product_id, $variation_id = null ) {
global $post;
if ( ! is_null( $variation_id ) ) {
$ID = $variation_id;
} else {
$ID = $product_id;
}
$save_post = $post;
$post = get_post( $ID );
if ( ! empty( $post->post_parent ) ) {
$post = get_post( $post->post_parent );
}
setup_postdata( $post );
$excerpt = get_the_excerpt();
$post = $save_post;
return $excerpt;
}
add_filter( ‘woocommerce_gpf_description’, ‘lw_woocommerce_gpf_description’, 10, 3 );Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionerror: the field “description” in must not be empty.
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionits ok now will try
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionBroken archive, can’t open zip file
Forum: Plugins
In reply to: [Pixel Caffeine] Product descriptionHi,
The link is broken, I can’t download.