To get datepicker feature to text box it is not required to write entire script for date picker since it is already available in jquery library need to include that library into our tpl file directly.Here the follow the process to get datepicker to any text box.
Adding Javascript to headitem.tpl
Add the following JS in ~/out/admin/tpl/headitem.tpl within the <head> tag.
<!--DatePicker code//-->
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(function() {
$( "#datepicker" ).datepicker({
showWeek: true,
firstDay: 1,
dateFormat: 'yy-mm-dd'
});
});
</script>
<!--end of date picker code.//-->
- showWeek displays the calendar week-number, and can be set to true/false.
- dateFormat can be set to the format your back-end processing scripts expect. We simply use the ISO 8601
- For other configuration settings, please refer to the UI/API/1.8/Datepicker (or the newest version) documentation
Calling the Date-picker Functions from the OXID e-Shop
Once loaded into headitem.tpl, the the date-picker function can be called from anywhere in the OXID e-Shop /admin Area by simply adding id=”datepicker”. Example
<input id="datepicker" type="text" />
Final Steps
- Clear your ~/tmp folder to reflect the changes
- Empty your browser-cache
Tags: OXID, OXID Programming
Category OXID Administrators
We are all excited about releasing the OXID VM 2.0 in the next days, the successor to the existing VM. We’ve added several new features to the VM 2.0, including a management-console for quick access to day to day functions that OXID-programmers use. At the same time, we’ve moved to VirtualBox, from it’s previous incarnation on VMWare.
Over the next few weeks, we’ll be blogging about individual features, so please watch this space for new stuff. You can also follow us on Twitter with hashtag #OXID_VM.
System
This Virtual Machine is based on:
- Debian GNU/LINUX 6.0.2 (Squeeze)
- Kernel 2.6.32-5-686
Minimum Recommended Hardware
- Single or Dual Core processors of up to 4.x GHz
- 4 GB RAM
- 20 GB Disk (VM performs faster on SSD)
Download
The OXID VM 2.0 is available for download over HTTP. Filesize 874 MB (courtesy of the cloud service Dropbox).
This version of the OXID Virtual Machine comes with it’s own Management Console. The source-code for the MC can be viewed on our public SVN.
Virtual Machine Player – VirtualBox
Here’s where you can get the VirtualBox Player for running this virtual-machine in Windows, OS X, Linux and Solaris host-operating-systems.
Discuss
There are surely bugs and features-wishes which we might have overlooked. We would love to have you participate in the development of this VM. Please join us at the OXID e-Shop Virtual Machine mailing list and send us tons of feedback!
Tags: OXID, OXID Programming, Virtual Machine
Category OXID Developers
As a company that churns out a few hundred lines of OXID-related code every day, it is important for us to have access to the right development tools at hand. We already profit enormously from the Debian 5.0 Based OXID Virtual Machine. When combined with the phpDesigner programming IDE, we are left with asking nothing much more!
Here are the top reasons, in order of importance to us, why we standardized on the phpDesigner IDE for all our OXID coding work.
- Code Explorer feature, which lists all functions, classes, dependency-files, variables and any base classes associated with a PHP code file.
- Go to Declaration feature, which looks up all the code-files in the tree and jumps directly to where a particular function or class has been defined. After years of waiting this feature, which is all too familiar to Windows programmers in the Visual Studio IDE, has finally been made available to PHP coders.
- FTP and SFTP file-browser, which when used in combination with the OXID Virtual Machine, works with no noticable latency
- Color-coding, not only for PHP, HTML, CSS and Javascript code, but also for SMARTY template files.
Many other functions are listed on the software publisher, MP Software of Denmark’s, website. The software comes at an affordable license price for individual developers as well as software companies.
We hence recommend the phpDesigner IDE to beginners as well as advanced OXID programmers.
Other IDEs that PHP Developers Love
- PHPStorm
- ZEND
- Eclipse
- and of course… VIM
Tags: OXID Programming, Virtual Machine
Category OXID Developers
The register_success.tpl in the OXID Template Framework is the template which is called when a user successfully registers.
It can be found under ~/out/<theme_dir>/tpl/register_success.tpl.
This template is particularly interesting for Adwords/Analytics conversion measurement, since it’s where conversion-codes are implanted, in order to capture the successful registrations on OXID eShops.
Tags: OXID, OXID Programming, SEO
Category Miscellaneous