Project

General

Profile

Actions

Setting up a Development Environment » History » Revision 5

« Previous | Revision 5/48 (diff) | Next »
Max Milbers, 09/08/2010 02:52 PM


Setting up a Development Environment

Introduction

If you start developing for the project or just with VirtueMart you may have already set up a development environment with an IDE and a SVN program.

If you haven't done so or if you want to know what to do better, you can follow the instructions given on this page.

The following programs are recommended for working with VirtueMart and synchronizing the working directory with the local SVN repository:

  • SmartSVN or TortoiseSVN
  • Total Commander (perfect for sync'ing the contents of two directories)
  • Zend Studio (the state of the art when it comes to a PHP IDE, costs!)
  • or PHP Development Tools for Eclipse (very good PHP IDE and free!)

Of course there are other programs that can do the same as the ones mentioned above, but remember: these are just recommendations.

Setup an IDE and SVN

If you want to join the project it is important that you have a similar environment like the other devs, so it makes it easier for everyone to help each other.

First setup up an IDE, I suggest you follow the explanations here: http://docs.joomla.org/Setting_up_your_workstation_for_Joomla!_development

SVN-Basics:

The SVN folder structure is setup with 3 root folders; trunk, tags and branches. The trunk folder is used for curent active development. The tags folder is used for public releases. The branches folder can be used for code branches.

The structure found under these root folders mimic the structure in a typical Joomla installation, however, only contain the VirtueMart code. This gives us the ability to easily commit and checkout directly from a Joomla installation as described above.

There are 3 different folders for backend, frontend and modules

  • trunk/administrator/components/com_virtuemart
  • trunk/components/com_virtuemart
  • trunk/modules/(..not ready, we are pleased if you want to write a module)

The /trunk is your joomla base root = jRoot.

At best is if you have a joomla installation and make 1 checkout for back and frontend. Before you can checkout the svn you should delete the files that are installed by the vm installer. Just delete this directories

  • administrator/components/com_virtuemart
  • components/com_virtuemart

and the language files named en-GB.com_virtuemart.ini in

  • administrator\language
  • language

use for checkout on the joomla base root:

svn co https://dev.virtuemart.net/svn/virtuemart/trunk/virtuemart

After updating you should have the newest version of VirtueMart

If you want to check the mails you may want to use hamster as mailserver

Now there are two ways.

  • Use the normal installation process of virtuemart to set the right entries, to use virtuemart. This step just needs that you manually delete the virtuemart files after the installation to be able to perform the checkout (most svn clients dont overwrite existing files).
    1. This means download or create the installer of virtuemart and install it in joomla Create virtuemart installer.
    2. Delete the files of virtuemart in /administrator/components/com_virtuemart and in componentes/com_virtuemart. You may delete the language files also to prevent warnings.
    3. AFTER that configure the SVN, directly into your joomla base directory.
  • Or use the right sql to inform joomla that virtuemart exists. Just make a checkout directly into your joomla base directory. Then execute the following sql commands with phpmyadmin. Be aware that these sql assume that you use the prefix jos for your tables.

This is for virtuemart:

INSERT INTO `jos_components` (`id`, `name`, `link`, `menuid`, `parent`, `admin_menu_link`, `admin_menu_alt`, `option`, `ordering`, `admin_menu_img`, `iscore`, `params`, `enabled`) VALUES
(54, 'VirtueMart', 'option=com_virtuemart', 0, 0, 'option=com_virtuemart', 'VirtueMart', 'com_virtuemart', 0, '../components/com_virtuemart/shop_image/ps_image/menu_icon.png', 0, '', 1);

This is for the paymentplugins:

INSERT INTO `jos_plugins` (`id`, `name`, `element`, `folder`, `access`, `ordering`, `published`, `iscore`, `client_id`, `checked_out`, `checked_out_time`, `params`) VALUES
(136, 'VMPayment - Authorize', 'authorize', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', 'pType=Y\nDEBUG=0\nCHECK_CARD_CODE=1\nAN_RECURRING=0\nAN_TYPE=AUTH_CAPTURE\nAN_SHOW_ERROR_CODE=0\nAN_EMAIL_MERCHANT=1\nAN_EMAIL_CUSTOMER=1\nAN_LOGIN=username\n\n'),
(137, 'VMPayment - Cash on delivery', 'cashondel', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', 'pType=N\nCASH_ON_DEL_5000=230\nCASH_ON_DEL_10000=340\nCASH_ON_DEL_20000=560\nCASH_ON_DEL_30000=640\nCASH_ON_DEL_40000=750\nCASH_ON_DEL_50000=860\nCASH_ON_DEL_100000=1130\n\n'),
(138, 'VMPayment - echeck', 'echeck', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(139, 'VMPayment - epay', 'epay', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(140, 'VMPayment - eProcessingNetwork.com', 'epn', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(141, 'VMPayment - eWay - Australian Payment Gateway', 'eway', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(142, 'VMPayment - linkpot.net - youpay.com', 'linkpoint', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(143, 'VMPayment - Montrada.de', 'montrada', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(144, 'VMPayment - Nochex', 'nochex', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(145, 'VMPayment - Payflow Pro', 'payflow_pro', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(146, 'VMPayment - Paymate', 'paymate', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(147, 'VMPayment - Paymenow', 'paymenow', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(148, 'VMPayment - PayPal', 'paypal', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(149, 'VMPayment - 2Checkout', 'twocheckout', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', ''),
(150, 'VMPayment - Worldpay', 'worldpay', 'vmpayment', 0, 0, 1, 0, 0, 0, '0000-00-00 00:00:00', '');

Updated by Max Milbers over 13 years ago · 5 revisions