# LMT Defense

> I built a new online store for LMT Defense, a US rifle maker, from scratch to the designer's mockups. The full cycle: I coded the layouts, wrote a custom WordPress and WooCommerce theme, connected payments, set up SEO and speed, and launched the store on the company's server.

Case study · Online store: https://vitaliihura.com/work/lmt-defense

- Author: [Vitalii Hura](https://vitaliihura.com/), Full-Stack Developer
- Role: Full-stack developer
- Stack: PHP, JavaScript, SCSS, WordPress, WooCommerce, ACF Pro, Google Maps API
- Timeline: 3 weeks
- Year: 2020
- Client: LMT Defense, through an agency
- Website: https://lmtdefense.com/

## The task

LMT Defense was renewing its online store. The designer had prepared the mockups, and the store itself had to be built from scratch: from the layout to launch on the company's server in place of the old site. The catalog had a twist: parts are sold directly, while rifles go only through official dealers. The team also wanted to edit all content itself, without touching code.

## What was built

- **Pixel-perfect layout from the mockups.** I moved the designer's mockups into a live store without simplifying anything. The mobile version was designed separately: the menu, catalog and product pages are rebuilt for a phone screen.
- **A custom WordPress and WooCommerce theme.** I wrote the theme from scratch, with no page builders. Pages are assembled from ready-made blocks, so the LMT team changes banners and product selections itself.
- **Cart or dealer.** Each product has its sales method set in the admin. Parts go into the cart, while a rifle can't be added even through a direct link: the site sends the buyer to a dealer.
- **Dealer locator on Google Maps.** The buyer enters a ZIP code or city and sees the nearest dealers on Google Maps with directions. The map still works on the site today.
- **Card payments.** I connected the payment service the company already used and set up the order logic to fit its rules.
- **SEO and speed.** I picked a minimal set of plugins, set up SEO and optimized page load speed.
- **Launch on the company server.** I installed and configured the store on LMT's server, replaced the old site on the main domain and checked every page.

## Result

In three weeks the store went from mockups to replacing the old site on the main domain. It has run on this theme for more than five years, and after launch the agency kept coming back to me with new orders.

> Everything is great! The project was delivered on time, and everything was done and then some. Thank you.
>
> Vladimir K., Partner agency, LMT Defense store, translated. Review 5.0 on Freelancehunt

## What the site looks like

- Home: The home page and any landing page are built from ready-made blocks. ![LMT Defense home page with the MRP rifle banner](https://vitaliihura.com/storage/cases/lmt-home.jpg?v=1793723614)
- Parts: Parts are sold right on the site: into the cart and on to checkout. ![Part page with the price and an Add to cart button](https://vitaliihura.com/storage/cases/lmt-h1.jpg?v=1793723615)
- Rifles: Instead of an add-to-cart button there is a dealer locator. ![Rifle page with the price and a Find a Dealer button](https://vitaliihura.com/storage/cases/lmt-h2.jpg?v=1793723616)
- Dealer locator: Search by ZIP code with directions to the store. ![Dealer search by ZIP code or city with a list of stores](https://vitaliihura.com/storage/cases/lmt-dealers-v1.jpg?v=1793721795)

Build something similar: https://vitaliihura.com/quote
