how can i import the csv file in wordpress woocommerce.?

Haroon, In the past, I’ve used this paid extension through the WooCommerce store: https://woocommerce.com/products/product-csv-import-suite/ However, WooCommerce is in the process of phasing that plugin’s functionality into their core release: https://docs.woocommerce.com/document/product-csv-importer-exporter/ If the default core option does not yet meet your needs I would recommend checking out their paid extension. One other tip: I would suggest … Read more

Click Count on Download a File

Use this code.. $downloads = $product->get_files(); $product_id = $product->id; foreach( $downloads as $key => $each_download ) { $query = “SELECT SUM( download_count ) AS count FROM {$wpdb->prefix}woocommerce_downloadable_product_permissions WHERE product_id = $product->id”; $count = $wpdb->get_var( $query ); if ( ! empty( $count ) ) { echo ‘<a href=”‘.$each_download[“file”].'”>Download (‘.$count.’)</a>’; } else { echo ‘<a href=”‘.$each_download[“file”].'”>Download</a>’; } … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)