• 16-09-2017, 14:50:31
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Merhaba,

    Woocommerce ürün ekleme sayfasında oluşturulan nitelikler açılır menü ile ekleniyor. Bu durumda ürün eklerden fazladan vakit kaybına yol açıyor. Nitelik seçme açılır menüsünü iptal edip nasıl listeleyebilirim ?

    Liste halinde görmek istediğim yer;


    Nitelik Ekle açılır menü kodu şu şekilde;

    <?php
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    ?>
    <div id="product_attributes" class="panel wc-metaboxes-wrapper hidden">
    	<div class="toolbar toolbar-top">
    		<span class="expand-close">
    			<a href="#" class="expand_all"><?php _e( 'Expand', 'woocommerce' ); ?></a> / <a href="#" class="close_all"><?php _e( 'Close', 'woocommerce' ); ?></a>
    		</span>
    		<select name="attribute_taxonomy" class="attribute_taxonomy">
    			<option value=""><?php _e( 'Custom product attribute', 'woocommerce' ); ?></option>
    			<?php
    				global $wc_product_attributes;
    
    				// Array of defined attribute taxonomies
    				$attribute_taxonomies = wc_get_attribute_taxonomies();
    
    				if ( ! empty( $attribute_taxonomies ) ) {
    					foreach ( $attribute_taxonomies as $tax ) {
    						$attribute_taxonomy_name = wc_attribute_taxonomy_name( $tax->attribute_name );
    						$label = $tax->attribute_label ? $tax->attribute_label : $tax->attribute_name;
    						echo '<option value="' . esc_attr( $attribute_taxonomy_name ) . '">' . esc_html( $label ) . '</option>';
    					}
    				}
    			?>
    		</select>
    		<button type="button" class="button add_attribute"><?php _e( 'Add', 'woocommerce' ); ?></button>
    	</div>
    	<div class="product_attributes wc-metaboxes">
    		<?php
    			// Product attributes - taxonomies and custom, ordered, with visibility and variation attributes set
    			$attributes = $product_object->get_attributes( 'edit' );
    			$i          = -1;
    
    			foreach ( $attributes as $attribute ) {
    				$i++;
    				$metabox_class = array();
    
    				if ( $attribute->is_taxonomy() ) {
    					$metabox_class[] = 'taxonomy';
    					$metabox_class[] = $attribute->get_name();
    				}
    
    				include( 'html-product-attribute.php' );
    			}
    		?>
    	</div>
    	<div class="toolbar">
    		<span class="expand-close">
    			<a href="#" class="expand_all"><?php _e( 'Expand', 'woocommerce' ); ?></a> / <a href="#" class="close_all"><?php _e( 'Close', 'woocommerce' ); ?></a>
    		</span>
    		<button type="button" class="button save_attributes button-primary"><?php _e( 'Save attributes', 'woocommerce' ); ?></button>
    	</div>
    	<?php do_action( 'woocommerce_product_options_attributes' ); ?>
    </div>
  • 16-09-2017, 15:02:57
    #2
    Ürünlerden birini dışarı aktarıp excel üzerinden oynama yapsan kolaylaştırmaz mı işini?
    Ya da sabit değişmeyecek özelliklerin ile bir ürün açıp çoğalt formülü ile sadece eklemeler yaparak düzenleme yapsan olmaz mı?
  • 16-09-2017, 15:12:19
    #3
    Duplicate eklentisi ile dediğini yapabilirim ancak o da extra zaman alacak ürün eklemelerini bilmeyen biri için en basit hale getirmeye çalışıyorum.