Email: Password:

Checking Project Status? Click Here for Project Management Access.
Forgotten Your Password? Request a Password Reset.

Open My Account Login
Dave Varney

Dave Varney

Web/Interactive Developer for Chepri Interactive.

I enjoy coding and working with any and all aspects of web development. I've been with Chepri since June 2009 and have loved every second of it.

Favorite Thing About Web Development: I'm always learning something.

Skills: PHP, MySQL, PostgreSQL, JOOMLA, CSS, JavaScript, Elgg, OsCommerce, WordPress, Magento, Mahara.

Degrees: Internet Application Development, Interactive Media Design.

Hometown: Dayton, OH

Website URL: http://chepri.com E-mail: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Friday, 13 August 2010 16:40

Miva Merchant PR 7 Development

I've been developing a Miva Merchant payment module here at Chepri for the past couple of weeks. I could go into and list at least 20 different reasons why one shouldn't use Miva Merchant but I'll save that for another time.

With the release of PR 7 (Wombat) the payment module now needs to send a checkout session to the gateway so the gateway can send it back. If the payment module doesn't include this with the PR 7 release then the user will receive a "Session has timed out" error upon returning to the retail site.

To overcome this the exact line that one has to include is the following: <input type="hidden" name="Checkout_Session_ID" value="{ encodeentities( g.Checkout_Session_ID ) }">

One of my complaints with Miva Merchant is the lack of documentation so therefore I had a difficult time trying to do mundane things like get variables and pass them along to the payment gateway. Below is how I got some of the more important variables.

Cart Total: <MvASSIGN NAME = "l.formatted_total" VALUE = "{ [ g.Module_Library_DB ].Basket_Total( g.Basket:basket_id ) }">

Billing Zip: <MvASSIGN NAME = "l.bill_zip" VALUE = "{ g.Basket:bill_zip }">

Billing Email: <MvASSIGN NAME = "l.bill_email" VALUE = "{ g.Basket:bill_email }">

The only thing that helped me out was searching through the LSK. If you didn't know, the LSK is Miva's answer to proper documentation which of course is a complete joke.
Friday, 29 January 2010 16:57

Code Links

The following is a series of links that I have gathered throughout the work day. As a web developer I accumulate links because I find it nearly impossible to remember every little coding aspect especially when I am working with so many different CMS frameworks / languages on a daily basis.

Javascript:

The following link is a good resource for implementing a character count/limit within an HTML textarea form element. It keeps a running total next to the textarea so the user knows how many characters they have left.

http://www.shiningstar.net/articles/articles/javascript/dynamictextareacounter.asp

MISC:

The next link is used for testing ecommerce carts/checkouts. The link simply lists various credit cards and sample numbers that a developer can use to test a shopping cart checkout process.

https://www.paypal.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm

PHP:

This next link is for how to properly upload an image using an HTML input form element with the type="file" attribute. The howto works perfectly, however, I ended up using a PHP class instead of this method. Like I said, it works perfectly I just found something that was easier and more efficient to use for my task-at-hand.

http://www.reconn.us/content/view/30/51/



Until Next Time,
David Varney
Interactive Developer
Chepri Interactive
Saturday, 02 January 2010 22:13

IE Losing Ground

According to an article over at Engadget IE has been losing ground at a steady pace (0.92%/month). The article further explains that Net Applications is estimating that IE use could sink to 50% market share by May 2010. It would be nice if this were the case but it seems very unlikely.

Something this article didn't highlight is the fact that Chrome has overtaken Safari in the browser market share. As someone that uses Chrome as their main browser I was elated that other people are seeing the light. However, Chrome's market share has been close behind Safari for a while now. The fact that Chrome is available for Macs now probably has something to do with them surpassing Safari.

As a web developer I can't wait for the day when Microsoft faces reality and drops IE development all together.

David Varney
Web Developer
Chepri.com

Wednesday, 23 December 2009 15:48

Code Help Links

When coding and working on multiple projects at the same time I find it impossible to remember every little code trick escpecially when I use so many different languages on a day-to-day basis. Being so, I tend to collect a lot of links when it comes to everything from how a built-in PHP function works, to if my JavaScript syntax is worded properly for IE.

I've provided links below from my "Resources" favorites folder:

JavaScript

Sliders for user interaction: http://www.noupe.com/javascript/30-javascriptajax-techniques-for-sliders-scrollers-and-scrollbars.html

This is a good place to start if you're in need for a js slider. Provides a good basis on which you can customize to your needs.



PHP/MySQL

Creating Pagination:http://php.about.com/od/phpwithmysql/ss/php_pagination.htm

Creating pagination using PHP and MySQL



CSS

Browser Hacks:http://www.nealgrosskopf.com/tech/thread.php?pid=20

A solid resource for targeting specific browsers. I reference this page at least 2-3 times a month.