N.g
Forum Replies Created
-
Forum: Plugins
In reply to: [belingoGeo] Не работает выбор городаСпасибо вам за помощь, обновление буду ждать!
Подскажите еще пожалуйста, будут ли проблемы если использую плагин кеширования, WP Fastest Cache (+PRO).
Будут ли корректно отображаться значения в шорткодах, или нужно применить какие-то дополнительные действия по исключению содержимого из кэширования?
Forum: Plugins
In reply to: [belingoGeo] Не работает выбор городаВозможно вы захотите что-то еще посмотреть, вот ссылка на тестовый ресурс https://pappel.store/
Thank you
I have a question about the free version of the plugin – which is located here in the WordPress repository.
Is there a product limit?Forum: Plugins
In reply to: [WooCommerce] adding filtering by attributes to productsthank you
It turns out that the code works if I specify pa_brand in it, but it does not work if I change pa_brand to pa_seller.
I do not understand why?
Both attributes are created and assigned to products…
thanks again for a great plugin! I recommend it
Forum: Plugins
In reply to: [WooCommerce] Custom field “Additional product image”Hello
Thank you very much for your answer.
I went this route because I split the Description.php file into 4 columns of content. Where in columns 1-3 I displayed custom text fields with an additional description.
For example: product material or model height.
and column 4 is empty – I need to display an additional image there.The content of the additional description that you show is already displayed at the bottom of 1-4 columns with additional custom fields. I want to keep this ability to add and insert visual content for product managers.
And the second reason: I use a multi-vendor plugin. I was add (with the help of their support) this field from the vendor’s dashboard.
function add_custom_product_data_tabs_discr( $tabs ) { $tabs['advanced1'] = array( 'label' => __( 'Additional description', 'your-text-domain' ), 'target' => 'custom_tab_product_data_discr', 'class' => array(), 'priority' => 52, ); return $tabs; } add_filter( 'mvx_product_data_tabs', 'add_custom_product_data_tabs_discr' ); function add_custom_product_data_content_discr( $pro_class_obj, $product, $post ) { //prnt_r($product->get_id());die; $image_descr = get_post_meta($product->get_id() , '_image_descr', true ); //print_r($hh); ?> <div role="tabpanel" class="tab-pane fade" id="custom_tab_product_data_discr"> <!-- just make sure tabpanel id should replace with your added tab target --> <div class="row padding"> <div class="form-group"> <label class="control-label col-sm-3 col-md-3" for="product_images_container"><?php echo __( 'Image for additional description', 'woocommerce' ); ?></label> <div class="col-md-6 col-sm-9"> <div class="form-group-image-down-l"> <div class="featured-img upload_image"> <a href="#" class="upload_image_button tips <?php echo $image_descr ? 'remove' : ''; ?>" <?php echo current_user_can( 'upload_files' ) ? '' : 'data-nocaps="true" '; ?>data-title="<?php esc_attr_e( 'Image for additional description', 'woocommerce' ); ?>" data-button="<?php esc_attr_e( 'Select an image', 'woocommerce' ); ?> " rel="<?php echo esc_attr( $post->ID ); ?>"> <div class="upload-placeholder pos-middle"> <iclass=""></i> <p><?php _e( 'Click to upload Image', 'dc-woocommerce-multi-vendor' );?></p> </div> <img src="<?php echo $image_descr ? esc_url( wp_get_attachment_image_src( $image_descr, 'medium' )[0] ) : esc_url( wc_placeholder_img_src() ); ?>" /> <input type="hidden" name="_image_descr" class="upload_image_id" value="<?php echo esc_attr( $image_descr ); ?>" /> </a> </div> </div> </div> </div> </div> </div> <?php } add_action( 'mvx_product_tabs_content', 'add_custom_product_data_content_discr', 10, 3 ); function save_custom_product_data_discr( $product, $post_data ) { if( isset($post_data['post_ID']) && isset($post_data['_image_descr'])){ update_post_meta( absint( $post_data['post_ID'] ), '_image_descr', $post_data['_image_descr']); } } add_action( 'mvx_process_product_object', 'save_custom_product_data_discr', 15, 4 );
But unfortunately, I do not have enough knowledge to do it myself for the product panel.
- I would like a solution with the ability to display 1 image.
Of course, if you suggest a solution for the gallery, I will save it and use it further.
Thanks again
- This reply was modified 2 years, 1 month ago by N.g.
Forum: Plugins
In reply to: [WooCommerce] Custom field “Additional product image”Hello
while I have this code, the upload form appears, but then I don’t know exactly how to continue. Could you help me with this if possible?
add_action( 'add_meta_boxes', 'image_metabox' ); function image_metabox() { add_meta_box( 'image_meta', 'Image Upload for descriotion', 'image_uploader_callback', 'product', 'normal', 'default' ); } function image_uploader_callback( $product) { wp_nonce_field( basename( __FILE__ ), 'image_nonce' ); $image_stored_meta = get_post_meta( $post_id ); ?> <div class="image-preview-wrapper"> <img id="image-preview" src="<?php if ( isset ( $image_stored_meta['image_meta'] ) ) echo $image_stored_meta['image_meta'][0]; ?>" style="max-width: 250px;"> <input type="hidden" name="image_meta" id="image-meta"> <button type="button" id="image-upload-button" class="button">Upload Image</button> <button type="button" id="image-remove-button" class="button">Remove Image</button> </div> <?php }
further japonimauch then I need to save the field. and you need a java script to open the window….but how?
Forum: Plugins
In reply to: [WooCommerce] Custom field “Additional product image”Hello
Thanks for your reply.
I’ve added the text fields that I need – and all is well.
But I need to add one more image (see screenshot) or a gallery of images if possible (see screenshot).My task is to create an additional image for each product and display it in the product description. (I have markup in the description.php file)
More details: There is 1 product image main from woocommerce.
There is also a product gallery. But I need to add the possibility of an additional 1 photo of a product or gallery.Please help me. What hook or action do I need to find?
https://drive.google.com/file/d/15kh6Cq6cFAO2MnXx8ZyCjd7gSj2mHaQV/view?usp=sharing
https://drive.google.com/file/d/1n9C5K9ui-r5IGLUYUP2MxkZf465rnugz/view?usp=sharing
Forum: Plugins
In reply to: [PW WooCommerce Gift Cards] Order date formatThank you!
Forum: Plugins
In reply to: [?Подсказки? от DaData.ru] поле с select2 (область/регион) не срабатываетСпасибо за вашу помощь и быстрое решение, это работает.
Forum: Plugins
In reply to: [Permalink Manager for WooCommerce] admin panel starts to work slowerThanks for the wonderful support of the plugin.
Thank you, great support!
Please watch the video I sent in more detail.
I removed the word OFF, but it still remains.
I tried to change the word OFF to another meaning, but it doesn’t change either.I will create a theme on your site, and I have administrator rights for the test environment. So that you can make sure that OFF is not removed
Hello
Thanks for the reply- OFF – is located by default (during installation) in the Title default (Design) field.
If you remove the word OFF from there or enter another value there, it will not be removed from the product page.
Please check your side?
https://drive.google.com/file/d/1hG7-orZyTWxnovMy8mVLCHxhKoT9v52r/view?usp=sharing
https://drive.google.com/file/d/1Y5oP2O8SOTjv9kN1cDQv-TtIRSLXRlrA/view?usp=sharing - Thank you
Sorry, this image sharing service is blocked in my country.
- I would like a solution with the ability to display 1 image.