Forum Replies Created
-
Dear, To use DHWC Page plugin to custom product template, please go to admin menu ‘Products -> Product template’ then create new template and use WPBakery plugin to build with WC Single Products shortcodes (see attachment)
Also, Please kindly see video tutorial use use DHWC Page plugin custom single product page.
Best regards.
Attachments:
You must be logged in to view attached files.in reply to: No widget appears in WPBakery builderYou can check plugin demo at http://demo.sitesao.com/shop/ and see it can help you.
in reply to: Theme element doesn’t work in custom pageDear, the DHWC Plugin not support any shortcode to help you do it, But I can help you create new shortcode in WPBakery page builder to do it. Please add custom code in file functions.php of your theme.
add_action( 'vc_after_set_mode', function(){ vc_map ( array ( 'name' => __( 'WC Single Product Stock Staus', 'dhvc-woocommerce-page' ), 'base' => 'dhvc_woo_product_page_stock_status', 'category' => __( 'WC Page Templates', 'dhvc-woocommerce-page' ), 'icon' => 'icon-dhvc-woo-product-page', 'params' => array ( array ( 'type' => 'textfield', 'save_always'=>true, 'heading' => __( 'Label', 'dhvc-woocommerce-page' ), 'param_name' => 'label', 'value'=>'This product is' ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom color', 'dhvc-woocommerce-page' ), 'param_name' => 'custom_color', 'description' => esc_html__( 'Select custom icon color.', 'dhvc-woocommerce-page' ), ), array ( 'type' => 'textfield', 'save_always'=>true, 'heading' => __( 'Extra class name', 'dhvc-woocommerce-page' ), 'param_name' => 'el_class', 'value'=>'', 'description' => __( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'dhvc-woocommerce-page' ) ), array( 'type' => 'css_editor', 'heading' => __( 'CSS box', 'dhvc-woocommerce-page' ), 'param_name' => 'css', 'group' => __( 'Design Options', 'dhvc-woocommerce-page' ), ), ) ) ); }); add_action('dhvc_woocommerce_page_after_add_shortcode', function(){ add_shortcode('dhvc_woo_product_page_stock_status', function($atts, $content = null){ extract ( shortcode_atts ( array ( 'label' =>'', 'custom_color'=>'', 'el_class' => '', 'css' => '', ), $atts ) ); global $product; $el_class .= preg_match( '/\s*\.([^\{]+)\s*\{\s*([^\}]+)\s*\}\s*/', $css ) ? ' ' . preg_replace( '/\s*\.([^\{]+)\s*\{\s*([^\}]+)\s*\}\s*/', '$1', $css ) : ''; $output = '<div class="dhvc-woo-product-stock-status '.$el_class.'"'.(!empty($custom_color) ? ' style="color:' . esc_attr( $custom_color ) . ' !important"' : '').'>'; if(!empty($label)){ $output .= '<span class="dhvc-woo-product-stock-status-label">'.esc_html($label).' </span>'; } $stock_status_text = ''; if('outofstock' === $product->get_stock_status()){ $stock_status_text = 'niet op voorraad'; }else{ $stock_status_text = 'op voorraad'; } $output .= '<span class="dhvc-woo-product-stock-status-value">'.$stock_status_text.'</span>'; $output .= '</div>'; return $output; }); });
Then you can use WC Single Product Stock Staus shortcode in Product Template to display stock status (see attachment)
Best regards.
Attachments:
You must be logged in to view attached files.in reply to: Show Stock statusDear, If you want create product filter on shop page, you can refer DHWC Ajax plugin.
Best regards.
in reply to: Theme element doesn’t work in custom pageThis reply has been marked as private.in reply to: Theme element doesn’t work in custom pageThis reply has been marked as private.in reply to: Aspect Ratio in Product Variation Image ThumbnailsDear, That is custom CSS code, you can add it in ‘Customizer -> Additional CSS’ It’s long because default your theme not support slider with midde nav control for related product slider. You need add custom css to do it.
Best regards.
in reply to: Issues in Product and My AccountThis reply has been marked as private.in reply to: Archive PostDear, Your want display with custom text ? because default stock status of WooCommerce will check product count in your stock. Please kindly give me more details what you want. I will check to help you.
Best regards.
in reply to: Show Stock statusDear, I check your site and I see your theme is load element style by check content of post, but it not work with custom post content of DHWC Page plugin. To fix your problem. I have add custom code in file functions.php of your theme (see attachment) Now, It’s working, Please check your site again.
Also, if you use other shortcode like: Testimonials, Image with hotspots…. You need add more custom code to enqueue shortcode style, eg:
add_action( 'wp_enqueue_scripts', function(){ global $dhvc_single_product_template; if(empty($dhvc_single_product_template)){ return ; } // Tabbed section. wp_enqueue_style('nectar-element-tabbed-section'); // Testimonials. wp_enqueue_style( 'nectar-element-testimonial' ); },999);
You can see list shortcode style of your theme in file ‘salient/nectar/helpers/enqueue-styles.php’ If you can’t do it, Please kindly contact with us when you have other problem with shortcode style.
Best regards.
Attachments:
You must be logged in to view attached files.in reply to: Theme element doesn’t work in custom pageDear, You can see video tutorial in HERE If you still can’t custom your Shop page with DHWC Page plugin. Please kindly send for me admin account of your site and your problem URL via private reply. I will check details to help you.
Best regards.
in reply to: No template drop-down on shop-pageDear, I check your site again and I see that problem because your theme use hooks to custom default WooCommerce gallery thumbnail size with function ‘bridge_qode_woocommerce_product_thumbnail_size’ in file ‘bridge/framework/modules/woocommerce/woocommerce-config.php’ That function change galery image thumbnail size to use WooCommerce image setting in ‘Customizer -> Product Images -> Thumbnail width’ and I see use width 1000px (default use woocommerce_gallery_thumbnail 100px)
To fix your problem, please add cusotm PHP code in file functions.php of current your theme (child theme of Bridge theme) to remove hook filter of bridge theme.
add_action('template_redirect', function(){ remove_filter('woocommerce_gallery_thumbnail_size', 'bridge_qode_woocommerce_product_thumbnail_size', 10); });
Best regards.
in reply to: Aspect Ratio in Product Variation Image ThumbnailsDear.
2. To apply that style for related product . Please add custom CSS on your site to do it..woocommerce section.related>h2::before, .woocommerce section.related>h2::after { content: ""; position: absolute; border-width: 1px 0 0 0; border-style: solid; height: 1px; width: 1900px; top: 50%; right: 100%; border-color: #2d899e; } .woocommerce section.related>h2::after { bottom: auto; left: 100%; display: block; top: 50%; } .woocommerce section.related .owl-carousel .owl-controls .owl-nav .owl-next, .woocommerce section.related .owl-carousel .owl-controls .owl-nav .owl-prev { right: 0 !important; top: 45px; bottom: auto !important; left: auto !important; position: absolute; background: #2d899e; color: #fff; border-radius: 5px; } .woocommerce section.related .owl-carousel .owl-controls .owl-nav .owl-prev { left: 0 !important; right: auto !important; } .woocommerce section.related .owl-carousel .owl-controls .owl-nav .owl-next:hover, ..woocommerce section.related .owl-carousel .owl-controls .owl-nav .owl-prev:hover { background: #1c2b36 !important; } .woocommerce section.related>h2 { font-size: 24px; text-transform: unset; text-align: center; max-width: none; display: table; margin: 0 auto 40px; padding: 0 20px; } .related .owl-nav { position: static; }
3. Please search and remove CSS(see attachment)
.disabled{display:none !important;}
in file ‘https://www.atlantikos.com.br/wp-content/themes/boxshop/style.css?ver=1.5.0’ then check your site again5. Sorry: the of related product not support display slider with 2 rows.
Best regards.
Attachments:
You must be logged in to view attached files.in reply to: Issues in Product and My AccountDear, you want display stock status on Single Product page ? If you want do it, Please go to WooCommerce Settings Product and check to setting ‘Enable stock management’ then the Stock staus auto display on WC Single Product Add To cart shortcode.
Please check your site again. If it not work, please kindly send for me admin account and your problem URl via private reply, I will check details to help you.
Best regards.
in reply to: Show Stock statusDear, I check again and i see that problem because you hide post title, post thumbnail and not set Excerpt Length in them option ‘Blog Meta Settings’ (see attachment) I have enable it on your site, Now it’s working, Please check your site again.
Best regards.
Attachments:
You must be logged in to view attached files.in reply to: Archive Post