Skip to content

Partial Starter Padloper 2 site for testers

Notifications You must be signed in to change notification settings

andy-scboy/Padloper2Starter

 
 

Repository files navigation

Padloper 2 Starter Site

This repository contains templates, partials, assets and scripts to help you quickly get started with Padloper 2.

Requirements

A copy of Padloper 2.

Notes

This is not meant to be a full-blown site. In addition, the styling is incomplete and the original images need to be optimised.

Instructions

Add everything inside your /site/templates/

MORE TBD

Templates and Template (Partials) Files

See /partials/ folder for templates rendered as partials in other templates. Also see function getPartialTemplate() in _func.php

The /padloper/ are custom Padloper template render files specifically for checkout process.

Enable URL Segments on the products and categories templates.

TBD

Images

/images/ folder contains images (hardcoded for now) for the slider on the homepage.

TBD

JavaScript

  • htmx
  • alpine.js

@note: above two from CDN @see _main.php @see home.php for how htmx requests of cart manipulation are handled.

@see main.js for setting alpine.js and htmx configs. Also for handling htmx or jQuery ajax requests.

TBD

CSS

Tailwind CSS

@TODO: CSS needs minification and maybe could have done more purging?

TBD

Pages

You need to create a products and a categories page under your root page (home). They should use the similarly named templates respectively.

The template files for above pages are:

products.php -> for all or single product categories.php -> for all or single category

You will also need a checkout page. Please follow the instructions in the Padloper documentation for setting that up.

@note: shop pages (exports), e.g. products not (yet?) included in this repo.

TBD

Credits

TBD

About

Partial Starter Padloper 2 site for testers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 61.7%
  • CSS 31.8%
  • JavaScript 6.5%