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

3. Setting up your product template

Any template you have in your ProcessWire installation can be product in your store. This way the store frontend and product management is 100% in your hands - you can build it just like you build all other PW websites. All Padloper requires is that you have at least one float or integer field in that template, that Padloper can use for price.

   Go to templates => basic-page and add pad_price
       Please note: just to keep this tutorial short, we are using the pad_price as our price field. After completing this tutorial, I recommend you to create own price field (instead of pad_price) using FieldtypeFloat or FieldtypeDecimal.
   Edit few of your pages with basic-page templates and add some value into your price field
   Edit /site/templates/basic-page.php and add this as the last line of your file:

$sidebar .= $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();

   Now you should see "Add cart" button in your pages when you visit those. Click few times to add products into your cart. Only indicator about having products in your cart at this point is looking at the browser's address bar and seeing something like this there: www.yourstore.com/about/?addedProduct=1001 (where 1001 is your product's page id)
       You can use that information to echo "product added to the cart"
       If you post the form using ajax, you get same params returned as JSON object

Edit Cart Template

Checkout Process