Padloper (ProcessWire Modul)

Aus Wikizone
Wechseln zu: Navigation, Suche

Padloper ist ein ProcessWire Pro Modul ( kostenpflichtig ) für die Umsetzung von eCommerce.

Kurzanleitung

Installation

  • Upload PaymentModule into /site/modules/PaymentModule and install it through ProcessWire admin
  • Upload PaymentInvoice into /site/modules/PaymentInvoice and install it through ProcessWire admin
  • Install core module "ProFields: Page Table" if not already installed
  • Upload Padloper into /site/modules/Padloper/ and install PadLoper modules through ProcessWire admin (please note that there is separate distro for PW 3.0)

Auf die Rechte achten wenn was nicht gefunden wird. Im Payment Module kann bei Choose active payment modules noch nichts ausgewählt werden solange nicht die erforderlichen anderen Module installiert sind. Kann man aber auch im Nachgang machen. Eventuell in anderer Reichenfolge installieren ( Todo -> Test)

Shopping Cart Setup

There are very little configuration when using Padloper. PadCart is responsible for most common store and products settings, like currency and stock management.

  • Go to Modules => PadCart => Settings
  • Choose pad_price as Price Field
  • Since we don't manage any stock, check the "Allow negative stock".
  • Choose "basic-page" template as Product template
  • Feel free to fill other fields too if you want.
  • Go to Modules => PaymentModule => Settings and setup Invoice as an active payment module

Product Template

Wir erstellen ein Template für ein einzelnes Produkt. Es kann jedes Template genutzt werden. Voraussetzung ist lediglich ein float oder integer field, welches Padloper für den Preis nutzen kann.

  • Füge das Feld pad_price zum Template hinzu (Das Feld muß ein float oder decimal type sein, kann aber auch andere Namen haben (s.o.))
  • Lege ein paar Produktseiten an und gib Preise in das Feld ein.
  • Füge einen Add to Cart Button in deinem Template ein:
$content .= $modules->get("PadRender")->addToCart();​

NOTE: If you are NOT using delayed output in your template files, then the required code is:

echo $modules->get("PadRender")->addToCart();

Jetzt sollte ma einen "Add cart" button in den Seiten sehen. Im Moment sieht man nur in der URL, dass ein Produkt hinzugefügt wurde:

www.yourstore.com/about/?addedProduct=1001 (where 1001 is your product's page id)
Man kann diese Info nutzen um eine "product added to the cart" Message auszugeben
       

Wenn man das Formular per AJAX ausgibt bekommt man die selben Parameter per JSON

Edit Cart Template

Checkout Process