Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Have looked around for a while for a solution to be able to export product data via csv. The task is not made easy due to the fact that product info is stored in at least 3 different tables.
Here's my solution to export data from multiple database tables to a single csv which is then renamed with a datestamp and can then be sent to another folder / server via cron. In this example i have used uc_products, node & content_type_product so that i can get SKU, Product name and a number of fields all into one file.
Put the following into a .sh file and run it through cron:
#!/bin/bash
MYSQLHOST="localhost" MYSQLDB="database_name" MYSQLDUMP="/path/to/file.csv" MYSQLUSER="database_user" MYSQLPASS="user_password"
MYSQLOPTS="--user=$MYSQLUSER --password=$MYSQLPASS --host=$MYSQLHOST $MYSQLDB" FDATE=`date '+%m-%d-%y'`
I am learning module development and have a theming layer question.
In the fivestar module (http://drupal.org/project/fivestar) in file '/includes/fivestar.admin.inc', how do I know what are the properties that are allowed in the $form['tags'].
For example, here in the code below '#tree', '#type', '#title', '#description', and '#weight' are specified. My question is WHAT OTHER PARAMETERS CAN I SPECIFY for the theming here? WHERE TO GET THAT LIST?
I am very new to drupal and I am running into major problems using views. My goal is to create a profile page similar to facebook type profile page.
I know that I need to use views to create the page but my question is how and where do I start? I'm not sure I have the skill set just yet to customize pages with views. Does anyone have any insight as to how I can create a facebook type profile page?