E-commerce PayPal shopping cart

Easy and versatile e-commerce, with ShortCodes that you can place anywhere. No extra database tables or plugins required. At the moment, PayPal only.

Works across multiple pages / posts. No need for visitors to log-in. Style with templates and CSS. In the theme options you can specify the item template; this sets the layout of the elements, such as title, image, description, price label (and possibly also the CSS).

Classical

High-density ceramic.

Classic lamp
$ 55
Add to cart

Style

Tungsten-bronze alloy.

Bronze lamp
$ 68
Add to cart

Elegance

Polished mosaic tiles.

Titanium lamp
$ 72
Add to cart

bh737717

Electric pleasure boat

Lush green and summer sun; canopy; seats four. A popular item for summer fun!

Pleasure boat
$ 299
Add to cart
Easy wax
$ 1
* Special offer *
Add to cart
Spare battery
$ 45
Add to cart
Batteries (2 pk)
$ 75
Add to cart

The basic ShortCodes :

* For the price / buy labels

[label name=”Pleasure boat” price=”$ 299″]

[label name=”Easy wax” price=”$ 1″ text=”* Special offer *” style=”background:#c33;”]

Or, more simply :

[label n=”Pleasure boat” p=”$ 299″]

[label n=”Easy wax” p=”$ 1″ t=”* Special offer *” s=”background:#c33;”]

* For the cart

[cart]   (or use a sidebar widget, as on this site)

The ShortCode for a complete item display

Classic lamp

Traditional elegance

$ 55
Add to cart
Bronze lamp

High quality alloy

$ 68
Add to cart
Titanium lamp

99.9% pure metal

$ 72
Add to cart
Nouveau lamp

Highly polished stainless steel.

$ 84
Add to cart
Jazzy lamp

Warm glow; energy-saving; modern design.

$ 90
On sale !
Add to cart
Decoder lamp

Polished golden jade on brass pedestal.

$ 106
Add to cart

Use the itemdetails ShortCode for the complete definition and display of an item. For example :

[itemdetails n=”Jazzy lamp” p=”$ 90″ i=”/a5.jpg” d=”Warm glow; energy-saving; modern design.” t=”On sale !” s=”background:#d22;”]

Additional itemdetails options (and the default values) : w=230 (width of the total item); h=200 (height of the image)

Classic lamp

$ 55
Add to cart
Bronze lamp

$ 68
Add to cart
Titanium lamp

$ 72
Add to cart
Nouveau lamp

$ 84
Add to cart
Jazzy lamp

Warm glow; energy-saving; modern design.

$ 90
On sale !
Add to cart

An example of the full ShortCode format :

[itemdetails name=”Jazzy lamp” price=”$ 90″ image=”/a5.jpg” description=”Warm glow; energy-saving; modern design.” text=”On sale !” style=”background:#d22;” width=130 height=110]

Or, more simply :

[itemdetails n=”Jazzy lamp” p=”$ 90″ i=”/a5.jpg” d=”Warm glow; energy-saving; modern design.” t=”On sale !” s=”background:#d22;” w=130 h=110]

The Shop

There is a way to simplify this even further. In admin, you can add the itemdetails ShortCode above to your ‘Shop’ as an item titled ‘Jazzy lamp’. Then in posts and pages you need only write :

[item n=”Jazzy Lamp”] [item n=”Decoder Lamp”]

Jazzy Lamp

Warm glow; energy-saving; modern design

$ 99
Add to cart
Decoder Lamp

Touch operated; 10 year warranty

$ 115
Add to cart

Above, we have simply written a series of itemdetails or item ShortCodes.

Next, we see how to display a set of items with a single items ShortCode.

Our lamps

Decoder Lamp

Touch operated; 10 year warranty

$ 115
Add to cart
Nouveau Lamp

Highly polished stainless steel

$ 87
Add to cart
Jazzy Lamp

Warm glow; energy-saving; modern design

$ 99
Add to cart

The ShortCode :

[items tag=lamps]

Our kettles

Le Smart Kettle

Energy saving; modern design

$ 62
Add to cart
Casey Kettle

With a 'keep warm' feature

$ 55
On sale
Add to cart
Kool Kettle

Boils water without heating !

$ 48
Add to cart

The ShortCode :

[items tag=kettles]

All our items

Decoder Lamp

Touch operated; 10 year warranty

$ 115
Add to cart
Nouveau Lamp

Highly polished stainless steel

$ 87
Add to cart
Jazzy Lamp

Warm glow; energy-saving; modern design

$ 99
Add to cart
Le Smart Kettle

Energy saving; modern design

$ 62
Add to cart
Casey Kettle

With a 'keep warm' feature

$ 55
On sale
Add to cart
Kool Kettle

Boils water without heating !

$ 48
Add to cart

Scrollable :

Decoder Lamp

Touch operated; 10 year warranty

$ 115
Add to cart
Nouveau Lamp

Highly polished stainless steel

$ 87
Add to cart
Jazzy Lamp

Warm glow; energy-saving; modern design

$ 99
Add to cart
Le Smart Kettle

Energy saving; modern design

$ 62
Add to cart
Casey Kettle

With a 'keep warm' feature

$ 55
On sale
Add to cart
Kool Kettle

Boils water without heating !

$ 48
Add to cart

The ShortCodes :

[items]

<div style=”overflow-x:scroll;”><div style=”width:2100px;”>[items]</div></div>

Item templates

You can specify one of three templates that can be defined / modified in the YooNi theme options. For example :

[item n=”Jazzy Lamp” template=1] [item n=”Decoder Lamp” template=2]

Jazzy Lamp

Warm glow; energy-saving; modern design

$ 99
Add to cart
Decoder Lamp

 

Touch operated; 10 year warranty

$ 115
Add to cart

By default, template 1 is used.

Templates can be over-ridden. Hence a template defined in ShortCode item will override any specified in itemdetails.

items > item > itemdetails

Finally …

To place items in the sidebar, add a ‘Text’ widget with the appropriate e-commerce ShortCodes.

In the YooNi Theme Options you can set your PayPal email identifier and default currency.

That’s it – e-commerce has never been so simple !