Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.
Hi,
You can use this function instead of the function I sent earlier:
if ( class_exists( 'WC_Query' ) ) {
function show_cross_sell_in_single_product(){
$crosssells = get_post_meta( get_the_ID(), '_crosssell_ids',true);
if($crosssells):
$args = array(
'post_type' => 'product',
'posts_per_page' => -1,
'post__in' => $crosssells
);
$products = new WP_Query( $args );
ob_start();
if ( $products ) : ?>
<section class="related products">
<h2><?php esc_html_e( 'Related Product', 'woocommerce' ); ?></h2>
<div class="slider owl-carousel owl-loaded owl-drag" data-plugin-options="4">
<?php while ( $products->have_posts() ) : $products->the_post();
wc_get_template_part( 'content', 'product' );
endwhile; // end of the loop. ?>
<?php woocommerce_product_loop_end(); ?>
</div>
<?php
endif;
$content = ob_get_contents();
wp_reset_postdata();
return $content;
endif;
}
add_action('woocommerce_after_single_product', 'show_cross_sell_in_single_product', 10, 2);
}
Sorry for the delayed reply.
- With shortcode Yolo Product Tabs: you need to select the category to work. http://prntscr.com/k7cvap
I have set the category for new arrivals on the homepage, you can reload and check.
- You can describe more details about the issue: "I also want to know how to link the various brands to clients area as well.".
Best regards.
Hi,
You can remove the current version and reinstall this plugin.
If it isn't unsuccessful, please send me admin your account. I will help you check.
Thanks
Hi,
I have added a few lines CSS and removed a few lines CSS that you added from Customizer.
Please reload your site and check again.
Thanks.
Hi,
With Related product, you can add these lines:
.related .product-item-wrap{
float: left;
}
- You can refer this jquery library to custom scroll bar:
http://manos.malihu.gr/jquery-custom-content-scroller/
Hi,
Currently, this text hasn't been updated to translate, you can go to the post-meta.php (wp-content/themes/yolo-bestruct/templates/archive/),
(wp-content/themes/yolo-bestruct/templates/single-blog) and change the text.
We will update this issue in the next version.
Thanks.
Sorry for the response delay!.
Please send me link your site. I will help you check.
Thanks.
7 years, 6 months ago in reply to: Issue with Woocommerce/Rubino – Variations images are not switching #16677Sorry for the delayed reply.
Currently, this function of Woocommerce only works normally with 30 variants.
If you use more than 30 variants, Woocommerce will use the ajax function to get variation and seems the slide image function not working.
You can solve this problem by instead of using a product with multiple variants, you can split into multiple products and each product will take a portion of the variation.
Best regards,
tinhbeng.
Sorry for the delayed reply.
- Product category in the main menu Shop: you go to Theme Options -> Custom CSS & Script -> add these lines to Custom JS: http://prntscr.com/k44ieq
jQuery(document).ready(function($){
var submenu = $('.menu_style_dropdown.level-1 > ul');
submenu.each(function(){
var seft = $(this);
seft.parents('.level-0').mouseover(function(){
var height = seft.height();
if(height > 200){
seft.css({"max-height": "200px", "overflow-y": "scroll","overflow-x":"hidden"});
}
})
})
})
***** Related product:
- To add the product "Cross Sell" to the Single product, you can do the following:
1. Create a child theme. https://codex.wordpress.org/Child_Themes
2. Add this function to the functions.php in Child theme:
if ( class_exists( 'WC_Query' ) ) {
function show_cross_sell_in_single_product(){
$crosssells = get_post_meta( get_the_ID(), '_crosssell_ids',true);
if($crosssells):
$args = array(
'post_type' => 'product',
'posts_per_page' => -1,
'post__in' => $crosssells
);
$products = new WP_Query( $args );
ob_start();
if ( $products ) : ?>
<section class="related products">
<h2><?php esc_html_e( 'Related Product', 'woocommerce' ); ?></h2>
<?php woocommerce_product_loop_start(); ?>
<?php while ( $products->have_posts() ) : $products->the_post();
wc_get_template_part( 'content', 'product' );
endwhile; // end of the loop. ?>
<?php woocommerce_product_loop_end(); ?>
</section>
<?php endif;
$content = ob_get_contents();
wp_reset_postdata();
return $content;
endif;
}
add_action('woocommerce_after_single_product', 'show_cross_sell_in_single_product', 10, 2);
}
Best regards,
tinhbeng.
Sorry for the response delay.
We fixed this issue. Currently, you can create a new topic on the forum.
Thanks.
Sorry for the delayed reply.
You go to Theme Options -> Header -> Header 5 -> Header Custom Navigation -> Disable "Social Profile".
Best regards,
tinhbeng.
7 years, 6 months ago in reply to: Issue with Woocommerce/Rubino – Variations images are not switching #16662Hi,
Please send me wp-admin and link your site (Set as private reply).
I will help you check.
Thanks.
Hi,
Please send me link your site (Set as private reply).
I will help you check.
Thanks
Sorry for the delayed reply.
1. You go to Theme Options -> Header -> Top Bar -> Turn On the option "Show/Hide Top Bar".
2. You go to the widget and add the "YOLO: My Account" for the "Top Bar Righ" sidebar.
-
AuthorPosts
