Forum Replies Created
-
Dear, to fix your problem, please go to file {your theme}/functions.php and add custom code
function dhvc_woo_title_custom($output_title, $product, $display){ if($display == 'list'){ $html = ''; $html .= '<h2 class="dhvc-woo-title dhvc-woo-clearfix">'; $html .= '<a href="' . get_permalink ($product->id) . '">'.get_the_title($product->id) . '</a>'; $html .= '</h2>'; $html .= '<div class="woocommerce dhvc-woo-rating dhvc-woo-clearfix">'; $rating = $product->get_average_rating(); $rating = absint($rating); $rating_html = '<div class="star-rating" title="' . sprintf( __( 'Rated %s out of 5', 'woocommerce' ), $rating ) . '">'; $rating_html .= '<span style="width:' . ( ( $rating / 5 ) * 100 ) . '%"><strong class="rating">' . $rating . '</strong> ' . __( 'out of 5', 'woocommerce' ) . '</span>'; $rating_html .= '</div>'; $html .= $rating_html; $html .= '</div>'; $html .= '<div class="dhvc-woo-price">'; $html .= $product->get_price_html (); $html .= '</div>'; $output_title = $html; } return $output_title; } add_filter('dhvc_woo_title', 'dhvc_woo_title_custom',10,3); function dhvc_woo_rating_custom($output_rating){ if($display == 'list'){ return ''; } return $output_rating; } add_filter('dhvc_woo_rating', 'dhvc_woo_rating_custom'); function dhvc_woo_price_custom($output_price){ if($display == 'list'){ return ''; } return $output_price; } add_filter('dhvc_woo_price', 'dhvc_woo_price_custom');
in reply to: Price and raiting above excerpt – list display typeDear, i can not understand your question: Last little thing to mount the button up when we do add to cart, how can we solve the problem?
Please kindly tell for me more details or send for me screen shot your problemin reply to: Some changes, help me please. :)Dear, i have deactivate WP Rocket plugin to check, i see it still working, the image width 40, please check image attachment.
Attachments:
You must be logged in to view attached files.in reply to: Some changes, help me please. :)This reply has been marked as private.in reply to: Product Gallery SliderDear, please add custom css in your site
.dhvc-woo-list-list .dhvc-woo-rating .star-rating{ float: right !important; } .dhvc-woo-list-item .dhvc-woo-price{ text-align: right !important; }
in reply to: Price and raiting above excerpt – list display typeDear, i have add css 40% for DIV class=dhvc-woo-images parent of images (you can see custom css in theme options like attachment, you can edit this custom css).
Also, i see you have change language of your site and i see custom css not working, please copy this custom css and paste to end of file ‘wp-content/plugins/dhvc-woocommerce/assets/css/style.css’
Attachments:
You must be logged in to view attached files.in reply to: Some changes, help me please. :)Dear, please go to edit your Single Product Template and click button ‘page setting’ to add custom css. please see image
Attachments:
You must be logged in to view attached files.in reply to: Product Gallery SliderDear, because you add topic to forum ‘Woo Detail Product Page Builder’ i think you use ‘Woo Detail Product Page Builder’ plugin,
for your problem, please kindly send for me admin account and your problem URL via private reply, i need check details to help you.Best regards.
in reply to: Fatal ErrorDear, i have check again, i see you enter Conditional Logic elements is wrong, please edit your ‘Conditional Logic’ and change elments name form ‘fourpiecegiftbox’ to ‘fourpiecebox’ because your text box name is ‘fourpiecebox’
in reply to: Creating a form with conditional logicYes, I have added custom code on your site, you don’t need to do anything.
– to fix problem ‘Is possible to get the Grey border to line up with the top of the Photo?’ please add custom css in your site
.dhvc-woocommerce-page .images, .dhvc-woocommerce-page .images { margin-top: -25px !important; }
in reply to: Product Gallery SliderDear, please kindly give for me your problem URL, i will check detail to help you.
in reply to: Price and raiting above excerpt – list display typeDear, i have check your site and add custom code in file ‘dhvc-woocommerce-page/includes/shortcode.php’ search code:
public function dhvc_woo_product_page_images_shortcode($atts, $content = null) { global $product; extract ( shortcode_atts ( array ( 'el_class' => '' ), $atts ) ); ob_start (); if (! empty ( $el_class )) echo '<div class="' . $el_class . '">'; if(function_exists('dhwcpl_single_product')){ dhwcpl_single_product(); dhwcpl_product_sale(); dhwcpl_product_out_of_store(); } woocommerce_show_product_images (); if (! empty ( $el_class )) echo '</div>'; return ob_get_clean (); }
change to:
public function dhvc_woo_product_page_images_shortcode($atts, $content = null) { global $product,$post; extract ( shortcode_atts ( array ( 'el_class' => '' ), $atts ) ); ob_start (); if (! empty ( $el_class )) echo '<div class="' . $el_class . '">'; if(function_exists('dhwcpl_single_product')){ dhwcpl_single_product(); dhwcpl_product_sale(); dhwcpl_product_out_of_store(); } $enabled = get_option( 'woocommerce_product_gallery_slider_enabled' ); $enabled_for_post = get_post_meta( $post->ID, '_woocommerce_product_gallery_slider_enabled', true ); if ( ( $enabled == 'yes' && $enabled_for_post !== 'no' ) || ( $enabled == 'no' && $enabled_for_post == 'yes' ) ) { if(class_exists('WC_Product_Gallery_slider')){ WC_Product_Gallery_slider::setup_scripts_styles(); WC_Product_Gallery_slider::show_product_gallery(); } }else{ woocommerce_show_product_images (); } if (! empty ( $el_class )) echo '</div>'; return ob_get_clean (); }
Now, it’s working, please check again.
in reply to: Product Gallery SliderDear, after create a page with plugin shortcodes, you need assign for a product, then, please check product, you will see your product is display with custom template.
You can see video example in http://demo.sitesao.com/wordpress/shop/albums/woo-album-2/
in reply to: Fatal ErrorDear, i have check your site, when i remove custom template of category http://www.aboriginal-art-australia.com/gallery/aboriginal-paintings-1000-to-2000/ i see default your theme not support page heading, so the custom template can not display it, you can use Custom heading short code in VC to create Heading or you can contact with theme author to support you resolved it.