Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jorgediazgutierrez/73abb9d59a2a2ae380d7a6af9903efaf to your computer and use it in GitHub Desktop.
Save jorgediazgutierrez/73abb9d59a2a2ae380d7a6af9903efaf to your computer and use it in GitHub Desktop.
Bootstrap + Drupal Commerce in less than 45 minutes

1_commerce_setup.sh

cd drupal-7.50

echo " -------------------- "
echo " Download and Enable Admin Menu "
echo " -------------------- "
drush en admin_menu -y

echo " -------------------- "
echo " Download and Enable Views "
echo " -------------------- "
drush en views -y

echo " -------------------- "
echo " Enable Views UI "
echo " -------------------- "
drush en views_ui -y

echo " -------------------- "
echo " Download and Enable Bootstrap Base Theme "
echo " -------------------- "
drush en bootstrap -y
drush vset theme_default bootstrap

echo " -------------------- "
echo " Download and Enable jQuery Update (required by Bootstrap Theme)"
echo " -------------------- "
drush en jquery_update -y

echo " -------------------- "
echo " Download and Enable Drupal Commerce Core Module "
echo " -------------------- "
drush en commerce -y

echo " -------------------- "
echo " Download and Enable the submodules required to run the store: Cart, Product, Order... "
echo " -------------------- "
drush en commerce_product_ui commerce_order_ui commerce_cart commerce_checkout commerce_product_reference commerce_payment_ui -y

echo " -------------------- "
echo " Download and Enable Commerce Paypal "
echo " -------------------- "
drush en commerce_paypal -y

echo " -------------------- "
echo " Download and Paypal WPS Payment"
echo " -------------------- "
drush en commerce_paypal_wps -y

2_generate_content.sh

cd drupal-7.50

echo " -------------------- "
echo " Download and Enable Devel "
echo " -------------------- "
drush en devel -y

echo " -------------------- "
echo " Download and Enable Devel Generate "
echo " -------------------- "
drush en devel_generate -y

echo " -------------------- "
echo " Generate 50 Sample Articles "
echo " -------------------- "
drush genc 50 5 --types=article -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment