سلة مشترياتك

برمجلى · الجيزة · منذ 2010

UniPharma chemical raw materials catalogue website with live search, built by PRMAGLY

A Chemical Raw Materials Catalogue Built From One PDF

مقالات قراءة في 28 دقيقة آخر تحديث: 13 نوفمبر 2026

How we turned a 184-line PDF price list into a searchable chemical raw materials catalogue with an inquiry list. Now 408 items in 14 families.

  • شركة برمجيات مصرية منذ 2010
  • دعم فني على واتساب

In short: UniPharma, a chemicals trading and contract manufacturing company in Sheikh Zayed, Egypt, came to us with a product PDF and an empty hosting account. We turned the 184 lines of that PDF into a searchable chemical raw materials catalogue with an inquiry list that feeds a quotation form, and the catalogue now lists 408 materials in 14 families on the live site.

A company, a PDF and an empty folder

UniPharma trades chemical raw materials for pharmaceutical, cosmetic, food and industrial users. It also manufactures and fills chemicals, detergents and feed additives to a customer’s formula, and it supplies lab and factory consumables and reference standards. The office is in Ritzy Plaza Mall, Sheikh Zayed, and the public site shows two phone numbers and two sales mailboxes. We did not need more than that to understand the business: people phone or write with a list of materials and wait for a price.

What the company had when it reached us was a product list in PDF form, a brand colour and a domain. It wanted a bilingual website (Arabic and English) with a portfolio of what it does, services, and a contact page. That was the written request. The unwritten request was simpler: make it easy for a buyer to find the material they came for.

The first surprise came before any design work. The hosting account for the domain was empty. No WordPress, no database, only a cgi-bin folder and an .htaccess file. A database backup that was supposed to exist, kept on cloud storage, turned out to be unusable and had been since October. We copied whatever was in the folder to a safe place before touching anything, and then we asked the obvious question: why was it empty? We never found out. The cause was not found. We are telling you this because it is part of the story and because the honest ending is “unknown”. If your site is gone and nobody can say why, write down what you checked, start from the backup you trust, and keep moving.

So we started from zero, with a PDF.

The 184 lines

The PDF was a blue-themed product list, and its file name says it all: vitamins had been added in its latest revision. After we removed duplicates and fixed obvious typing mistakes it held 184 items in 10 families. That count is the starting line for everything below.

A product list typed by a trader for his own use has a particular kind of dirt. Nobody is careless, but nobody expects the list to be searched by a machine either. These are the kinds of problems we found and what we did about each one:

  • Typos in names. “Aceton” became Acetone and “Cetaamacrogol” became Cetomacrogol. In later lists the same thing kept happening: “Maito” turned out to be Maltodextrin, “Sucrlose” was Sucralose, “Annato” was Annatto. A search box punishes a typo more than a printed page does, because a buyer who types the correct spelling gets nothing back.
  • Duplicates. The same material appeared twice under two names, or once as a single line and once inside a range. One entry (“Terric”) we could not match to anything and dropped it from the first build, with a note to the client to confirm. Other lists later brought a soya isolate that appeared twice, a plasticiser listed twice, and two names for the same sulfate compound. We merged each pair into one line.
  • Brand-looking names. A few entries looked like trade names rather than generic materials. We kept them exactly as the client listed them, under the family where he put them, and added them to the list of things to confirm with him. We did not rename what we could not verify.
  • Columns that did not belong to us. Some later lists arrived as photographs of tables that carried extra columns: origin, packing, another company’s header. We used only the item names and the Arabic names. Copying a supplier’s brand or origin column would have told visitors something about UniPharma’s relationships that the client had not asked us to say.

The discipline we settled on was simple: fix what is plainly a typing slip, merge what is plainly the same thing, and ask about everything else. A catalogue is a promise to a buyer. Quietly “improving” a name that might be a product code breaks that promise.

What buyers type, in two languages

Before deciding structure we spent time on the other side of the screen. We searched the way a purchasing officer or a small formulator in Egypt might: in Arabic, “مورد خامات كيماوية في مصر” and “شراء مواد خام كيماوية”, and in English, “chemical raw materials supplier Egypt” and “pharmaceutical excipients supplier Egypt request quote”. We also looked at how people find suppliers on the large international marketplaces. We have no search-volume tool, so we will not quote numbers. What the results page shows is still useful, and it is on the record in our research notes.

Three patterns stood out. First, the results are crowded with directories, marketplaces and a long tail of small trading companies, and almost every supplier site has a “request a quote” button. Second, the marketplaces and the more serious supplier sites let a buyer search by material name, and some by CAS number, and they ask for grade and quantity before quoting. One Egyptian supplier even offers to quote a whole basket for a production line rather than one item at a time. Third, in Arabic the results lean on the words “خامات”, “كيماويات” and “مواد خام”, and a search for pharmaceutical or supplement ingredients in Arabic mostly returns retail shops selling finished supplements, not raw material suppliers. That last gap is real. A buyer who searches for a raw material in Arabic does not land on a catalogue, he lands on a pharmacy shelf.

The lesson for the build was clear. Buyers have a list. They search by material name. They need to ask for a price for several items together. Nothing in a company brochure helps with any of that.

The decision: catalogue first, brochure second

Many company websites are built the other way round: a hero statement, a row of values, an “about” section, and somewhere deep inside, a product page. For a trader with hundreds of lines that order is wrong. We decided the home page should open with a search box over the whole index and treat everything else as supporting material.

The structure we chose:

  • A hero with one live search field over every material in the catalogue.
  • Four division cards under it: trading and supply, manufacturing and filling, lab and factory consumables, reference standards. These are the four things the client does.
  • An index of product families, each a tile with its item count, and one page per family.
  • A five-step description of what happens after a buyer sends an inquiry: request, written quotation, sourcing or production, quality check, delivery.
  • An inquiry list that collects materials while the visitor browses and feeds a quotation form.

We deliberately did not build a shop. There is no cart total and no price anywhere on the site, because the client quotes per order and per grade. An online shop would have asked for prices he does not publish. The “inquiry list” is a wish list with a different job: at the end it produces a request for a quotation, not a payment.

The first design we threw away

Our first version of the interface was an editorial, quirky one: cream paper with a graph-paper background, hard offset shadows on cards, a serif display face and a canvas of rising bubbles in the hero. We were pleased with it. It had a clear concept and it passed our responsive checks.

Our founder looked at it and said he did not like the font, did not like the hero, and that the whole style looked poor for this client. He was right. A chemicals and pharma raw materials buyer is looking for signals of order and reliability, and the quirky style said the opposite. We had asked about the colour palette, but not about the font or the hero direction, in a field that is formal by nature.

Version two went the other way. A deep blue gradient hero in the client’s brand blue, a real laboratory photograph with two floating stat cards, white rounded cards with soft shadows, and the four division cards overlapping the hero edge. The Arabic face is Almarai and the English face is Plus Jakarta Sans. This time we asked before building: the font and the hero direction were put to the owner as a choice, and he picked from the options (Almarai, and a corporate blue hero with a photograph). The lesson we wrote down for the next formal-field client: start from a clean corporate look, then spend the creativity on structure, not decoration.

UniPharma Arabic home page with a live search box for chemical raw materials in the hero
The Arabic home page today: the search box sits in the hero, with the most used product families as shortcut chips below it.
Arabic home page of the UniPharma chemical raw materials catalogue on a phone with search box
The Arabic home page at phone width. The search box is still the first thing the visitor meets, and the heading wraps without shifting.

Live search over the whole index

The search is the centre of the site. A visitor types a few letters and sees matching materials with the family each one belongs to. The field is built as an accessible combobox so keyboard and screen reader users can move through the suggestions. Typing “vitamin” on the live site returns Ascorbic Acid, Methylcobalamin and Pyridoxine among the first results, each tagged with its family.

One detail we noticed while capturing that screenshot, and have not hidden: Ascorbic Acid shows up twice in the suggestions, once under food and nutraceutical raw materials and once under vitamins and supplements. That is the same name sitting in two families. A buyer may wonder whether they are two products. It is the kind of small thing a catalogue exposes and a PDF hides, and it is worth tidying.

Live search suggestions for the word vitamin on the UniPharma raw materials catalogue
Typing “vitamin” in the hero search shows matching materials with their families, before the visitor opens any page.

The same index appears in English at /en/, with Arabic names shown on the Arabic pages for many of the items. The Arabic site is the root of the domain and English sits under /en/, so each language has its own address and the two pages point at each other with hreflang.

UniPharma English home page for chemical raw materials with search and product family shortcuts
The English version at /en/ follows the same layout, left to right, with the same index behind the search.

Family pages and the inquiry list

Each product family has its own page. A page opens with a short intro, three small stats (items, groups, a note that grade and packing are set per order), a sticky row of chips for the sub-groups, a filter box, and then the items grouped in cards. Every item has a plus button. Every group has an “Add all” button. The excipients family, for example, is split into six groups, and the food family into eight, each with its own coloured band and photograph.

Arabic product family page for pharmaceutical excipients with item count and groups
An Arabic family page. The top section says how many materials and groups it holds and keeps the quotation button in reach.

The food family was the first one to get a visual redesign when the owner asked for “a better view” of the family pages. We replaced a flat list with photo tiles for the eight groups, a sticky chip navigation and per-group cards. Natural colours and fruit materials got small colour swatches, because colours are easier to tell apart by a dot than by a word.

English food and nutraceutical raw materials page with grouped items and add buttons
On a family page every item carries a plus button, every group an “Add all” button, and a few new items already show a small thumbnail.

When we tested it on the live site, we added three food materials and moved to the contact page. The header button changed to “Get a quote” with a small counter showing 3, and the quotation form opened with a blue strip saying “3 materials in your inquiry list” and a “Clear list” button. The list is held in the browser’s local storage, so it survives page changes and needs no account. On submit the items go into the message along with the contact details. There is also a “Send on WhatsApp” button that builds the same message and opens WhatsApp for the visitor to send.

Quotation request form on the UniPharma site showing three materials in the inquiry list
The quotation page, opened after adding three materials. The blue strip is the inquiry list; the form below is prefilled from it.
Mobile view of the chemical raw materials quotation form with the inquiry list
The same page at 390 px width. Most buyers’ first look will be on a phone, so we check this view at real phone widths, not just in a narrow desktop window.

One limit worth stating plainly: the “Send on WhatsApp” button needs the visitor to tap. A website cannot push a message into a WhatsApp inbox by itself without the paid business API, which was not part of this project. Also, the number on that button is the client’s phone number from the public site. We have asked the client to confirm that it is a WhatsApp number (see the questions at the end).

Pictures that are generated, and say so

The client’s PDF had no photographs, and a pile of chemical names on a blue page does not make a convincing website. There was no photo shoot in the plan. So the photographs on the site are generated with an image generation model: 11 images for the home page, divisions and families in the first build, a hero photo for each new family in later rounds, and small thumbnails for the newer items.

We say this on the page where it matters and we say it here: these are illustrations of a type of material, such as a powder in a glass dish or flasks on a laboratory bench. They are not photographs of the client’s stock or of a specific batch, and the item thumbnails are illustrative, not product shots. A buyer should never read them as a statement about grade, source or appearance of what will arrive. Real product photos belong to the client and can replace any thumbnail whenever he supplies them.

The method for thumbnails is worth describing because it saved days. Generating one image per item for hundreds of items is slow. Instead we generated “contact sheets”: a 3 by 3 grid with nine items per image, each cell briefed with a short description of what that material looks like. We cropped each sheet by a fixed grid, checked every crop by eye, and compared file fingerprints against all existing thumbnails to be sure none was reused. On 3 November that produced 90 thumbnails in one session, and 82 more on 7 November, for 172 in total by our notes. Thumbnails sit on the items that have them, which means mixed families look uneven, and our notes from that time record that 236 older items still had none. We offered to fill the gap, and as of our notes there was no answer yet.

We also hit a real trap on the first batch of photos. The images were generated in parallel, and two different briefs, “detergents” and “quality control”, came back as the same file. It looked fine in a quick glance because both were laboratory-style photos. Only a file comparison caught it. Since then every generated batch gets checked for exact duplicates before it goes anywhere.

The catalogue grew four times

A PDF is finished the day it is exported. A catalogue is not, and the client behaved like a trader: he kept sending new lists, often as phone photos of tables or flyers. We kept a simple rule for each round: every item lives in one content file, a build step generates the pages and the search data from it, and a deploy refreshes the site. Here is the growth, in the counts we recorded at each step:

Round What arrived Catalogue after
Launch The original PDF, after cleaning 184 items, 10 families
Food section A photographed list of food ingredients, merged into the food family 240 items
Early November, round 2 A flyer and four tables: extracts, enzymes, vitamins, excipients 326 items, 13 families
Early November, round 3 Three images with 85 rows, including a new mineral salts family 408 items, 14 families

We checked the current figure on the live site on 14 November. The home page index lists 14 families, and the family counts add up to 408: 76 excipients, 79 food and nutraceutical, 27 pharma actives, 66 mineral salts, 17 natural extracts, 17 enzymes, 6 waxes, 10 preservatives and antioxidants, 7 corn derivatives, 17 cosmetic and cleaning, 7 tablet coating, 39 industrial chemicals, 5 water treatment and 35 vitamins and supplements. The hero says “400+”, which is true.

Each round also surfaced questions that we put to the people who own the client relationship instead of answering ourselves: which family a material belongs in, whether a brand-looking name stays, whether an item goes on a public page at all. Where a decision was made we wrote it down and did not ask again. What goes on a trader’s public catalogue is the company’s call, not the web developer’s.

A small irony is worth including. The family pages carry a “PDF product list” button. In our own notes from early November, that static file was still the original list from before the new rounds. If you are reading this later, check it. A catalogue that grows while its downloadable twin stays frozen creates exactly the confusion the site was meant to remove.

The performance trap: a font that re-wrapped the headline

With the first design deployed, we ran a mobile Lighthouse test on the live site. Performance came back at 63, and the cumulative layout shift (CLS) was 0.30, a poor score, where good is anything under 0.1. Nothing on the page was loading slowly. The problem was one headline.

The Arabic display font we had chosen for the first design renders noticeably smaller than the fallback font the browser shows while the real font loads. We had sized the Arabic headings up to compensate. When the webfont arrived and swapped in, the Arabic H1 changed size and wrapped onto a different number of lines, and everything underneath moved. To see this you have to look at what shifted, not at the score. We used a throttled mobile test with a layout-shift observer and a log of font load times, and the shifting element was the H1 every time.

The fix had three parts. We set the fonts to font-display: optional, so a late font does not swap in mid-view. We preloaded the faces used above the fold, so they are usually ready on first paint. And we made the decorative animation start only when the browser is idle and drew less. The next Lighthouse run scored 97 for performance and 100 for accessibility, best practices and SEO, with CLS at 0.001 and LCP at 2.1 seconds. After the move to the corporate design in version two, we recorded 98 for performance, with accessibility reaching 100 once we fixed a heading problem.

The wider lesson is about Arabic. Latin fonts of similar size usually swap with a small shift. Arabic display faces can differ much more from the fallback in apparent size, so the same technique that is fine on an English site can break an Arabic page. Test Arabic pages specifically, on a throttled mobile profile, and read the shift sources.

Measured again on 14 November

Numbers from months ago are not evidence about today. So on 14 November we measured the Arabic home page ourselves. The method: our own headless Chrome run from a normal office connection, emulating a 390 by 844 phone with a 2x pixel ratio, a fresh browser profile for the cold runs, page-level observers for layout shift and largest contentful paint, and the network log for bytes and request count. This is not Lighthouse and we do not call it that. One of the cold runs used the same throttling profile we had used for diagnosis (150 ms latency, 1.6 Mbps down, 4x CPU slowdown). We made five loads of the home page for these numbers, and eleven page loads in total across all the screenshots and tests, spaced several seconds apart, to be gentle on the client’s server.

Measure (Arabic home, phone emulation) Cold run, no throttling Cold run, throttled Warm repeat
Time to first byte 1.16 s, 1.16 s 1.29 s 0.61 s
Largest contentful paint 3.05 s, 5.22 s 5.44 s 1.21 s
Layout shift (CLS) 0 0 0
Transferred about 1.2 MB about 1.1 MB mostly cached
Requests 22 21 22
Console errors 0 0 0

What to make of this, honestly:

  • The layout shift problem stays fixed. CLS was 0 in every run, with Arabic and the webfont in play. That was the 0.30 problem, and it is gone.
  • The loading picture is less flattering than the earlier 2.1 s LCP. Our cold runs ranged from 3.05 to 5.44 seconds for the largest element, which was the hero photograph on two of the four runs and the intro paragraph on the others. These are different tools and a different day, so we do not claim the page got worse, but we cannot claim it is as fast as the earlier note says either. The two unthrottled cold runs, made minutes apart, differ by more than two seconds, which tells us the measurement is noisy.
  • The first response is slow-ish. A time to first byte above one second on a cold request is the single biggest piece of the delay. On 7 November we had noticed an even slower first response, 6.4 seconds once, and never investigated it. This new measurement says it is worth the investigation. We have not found the cause and we will not guess at one here.
  • The page itself is light enough. About 1.2 MB over 22 requests and no console errors.

So the summary is: stable layout, clean console, a reasonable page weight, and a server response time that deserves attention. That is a more useful answer than a perfect score would have been.

The contact form: friendly to buyers, hostile to bots

A form on a trader’s site is where the money arrives, so it gets more care than any other component. The form handler does these things:

  • A honeypot field. A hidden field that humans never fill. A bot that fills every field is rejected.
  • A timing check. A form submitted too quickly after loading was not filled in by a person.
  • A rate limit. Repeated submissions from the same source are slowed down.
  • Always stored. Every inquiry is saved inside WordPress first, then emailed to the two sales mailboxes. If mail delivery fails, the inquiry is still there in a dashboard widget.
  • Clear errors. If something is refused, the visitor sees a reason in plain language (too fast, too many tries, bad email, missing data), and the fields they typed are restored, not wiped.

We tested this end to end on the live site and sent two clearly labelled test messages to the client’s mailbox. We also tell you about the bug that the testing exposed. On a phone, after a successful submission, the page showed the green success box and, underneath it, a stale blue strip saying “1 materials in your inquiry list”. The cause was a race in our own script: the list box was drawn before the code that clears the list after success had run. A real person saw it on an iPhone and sent us the screenshot. We fixed the order of operations, cleared the list on success, cleaned the address bar after the redirect, added correct Arabic and English plural forms and a guard against double submits, and checked the same flow in a WebKit browser that behaves like Safari.

A second bug was subtler. The timing check compared a timestamp from the visitor’s device to the server clock. A visitor whose phone clock ran ahead looked like they submitted before the form had even loaded, and was rejected as a bot. We changed the check so a clock that is ahead no longer counts as “too fast”. Anti-spam rules that punish real people are worse than no rules.

The rest of the hardening is routine and quick to list: redirects from www to the bare domain and from http to https, security headers, the XML-RPC endpoint and the configuration file blocked, the public user list in the REST API closed. None of it is visible to a buyer, and all of it is the part that is hardest to retrofit.

What we would do differently

  • Ask before choosing a visual direction for a formal client. The cream and graph-paper version cost us a day we did not need to spend.
  • Keep the PDF in step with the catalogue, or retire the button. We left a mismatch behind.
  • Look at the server response time at launch, not three weeks later.
  • Decide on duplicates across families up front. The same name under two families is fine if it is a choice and confusing if it is an accident.
  • Get real product photos for the top 50 items. Generated images got us a credible site in a day. They are not a substitute for the client’s own photographs.
  • Add the lines buyers actually quote: grade and CAS number columns are common on the marketplaces we looked at, and the lists we received carried names only. That is a content question for the client, not a design one.

Lessons if you sell from a long list

This applies to chemicals, lab supplies, packaging, spare parts, building materials, or any trade with hundreds of lines and quote-based prices.

  1. Put search first. If your buyer arrives with a name, the first thing they see should be a box that accepts it.
  2. Let the buyer build a list. People ask for several items at once. A list that fills in the quotation form saves them retyping and saves you misread messages.
  3. Clean the source before you build. Typos, duplicates and half-names in a PDF become visible failures in a search box.
  4. Say what is generated. If images are illustrations, label them as such. Trust in a supplier’s site is cheap to lose.
  5. Treat language as a performance topic. Arabic fonts behave differently, and a layout shift can hide in one headline.
  6. Measure after launch, and again later. A good score in October does not describe November.
  7. Protect the form without punishing real visitors. Test with phones, with clocks that are wrong, with slow networks.

If you are planning something similar, our web development service covers the build and our web design page explains how we choose a visual direction. Both start from the same question we asked here: what does your buyer type first?

FAQ

Why not build this as an online shop?

Because the client quotes per order and per grade, and publishes no prices. A shop asks for prices and a checkout. An inquiry list collects the materials and ends in a request for a written quotation, which is how this trade already works.

How does the search find a material?

The whole index is generated from one content file and loaded as search data, so suggestions appear as the visitor types. It searches the names as they appear in the catalogue, and the suggestion shows which family each result belongs to.

Are the photos of the client’s real products?

No. They are generated with an image model and are illustrations of a type of material. The thumbnails on items are illustrative too. The client can replace any of them with real photographs.

How do new materials get added?

Each new list goes into the single content file, with typos fixed and duplicates merged. A build step regenerates the pages and search data, then a deployment publishes them. A new family also needs its own hero photo and sharing image.

What stops spam on the quotation form?

A hidden honeypot field, a timing check, a rate limit, and storage inside WordPress before any email is sent. Refused submissions show a clear reason, and the typed text is kept.

Is the site fast?

On 14 November our own phone-emulation tests showed no layout shift and no console errors, about 1.2 MB over 22 requests, and a largest contentful paint between about 3 and 5.4 seconds on cold loads. The first response took over a second. It is stable and light, and the server response time is the part we still need to examine.

Does the site work in both Arabic and English?

Yes. Arabic is at the root of the domain and English under /en/, with a language switch in the header, hreflang between the pages, and the Arabic material names shown on the Arabic pages where the client supplied them.

Can a catalogue like this be built for another trade?

Yes, wherever buyers search by product name and ask for quotes. The content file and the build are the reusable parts. Photos, names and the form flow change with the client’s field.

Talk to us about your catalogue

If you have a long list in a PDF or a spreadsheet and want it to become something buyers can search, message us on WhatsApp. You can also see more of our work in the PRMAGLY portfolio and visit the live site at unipharma-supp.com/en/.

خدمات مرتبطة

حسب مجالك

شوف شغلنا على قنواتنا

فيديوهات للمواقع والمتاجر اللي سلّمناها، وأفكار عملية لشغلك. تابعنا على اللي يريحك.