Create a page for your shop and call the wellrad - like any other plug-in - with one of the following
In the former version this step (and latter moving or deleting) of the shop page was done by the script. Of course a bit more comfortable, but this way is more CMSimple-ish and, more important, you can now add header and footer parts to your shop page(s) without hacking the code.
The call "display_shop()" did not change: So if you have been running wellrad before, you do not have to do anything.
Switching to preview mode will call the wellrad-shop's admin interface. In the top right corner of it there is a link to call the backend.
Hopefully the screens are self-explanatory.
You don't have to care about this. By default the cart preview is displayed on every single page and gets inserted right above the heading. Most probably you will find a better place for it. Just add
<?php echo $wrsCartPreview; ?>to an appropriate place in your template.
It's not necessary, but after that you might want to remove or outcomment the lines in plugins/wellrad/index.php
if(!strpos(file_get_contents($pth['file']['template']), '$wrsCartPreview')){ $c[$s] = $wrsController->cartPreview() . $c[$s]; }to spare an unneeded call.
If you don't want to have an always visible cart preview just drop those three lines from the wellrad/index.php and link to the cart with a form like this
<form action="?<?php echo WRS_URL; ?>" method="post"> <input value="go to cart" type="submit"> <input name="wrsCheckout" value="cart" type="hidden"> </form>
The products got two new fields you can edit in the product editor: you can set an image and add a more detailed description.
If you add the description the wellrad will generate an internal "product page" and link to it from the cart and the product list.
If you already have created cms-pages for the products or want to present them in a more individualistic manner: just leave the description empty and wellrad will do as before: link to the first page you have selected in the form "product pages".
In the default templates you will find a selectbox that offers to select the product categories. (If you have categorized your products.) That's definitely ugly - so find a nice place in your template for
<?php echo $wrsController->shopToc(); ?>or, if you just want to show it on the "shop"-page:
<?php if($su == WRS_URL){ echo $wrsController->shopToc(); } ?>… and remove the selectbox from the shop's catalog-template. (See Overwriting the frontend templates below.
This shopToc is a simple <ul>-list containing the categories. Pimp it! (The css is up to you …)
The same for the product search input: Remove it from the catalog template and find a better place in your CMSimple-template for a form like this:
<form action="?<?php echo WRS_URL; ?>" method="post"> <input name="wrsProductSearch" value="" type="text" /> <input type="submit" value="Produktsuche" /> </form>Overwriting the frontend templates
The shop's html output is generated via the templates in the wellrad's subfolder "templates".
If you are scared to touch them - and you really should be careful - just copy the *.tpl-files you want to change for the frontend-view into the folder
wellrad/theme/frontend/and play around: wellrad will have a look in there, before it opens the default template.
To get an idea what happens: Just rename the wellrad/theme/frontend/test_catalog.tpl to catalog.tpl or add some css to the theme/frontend/shopToc.tpl.
Won't work with the backend for now.
You will find the stylesheet.css in wellrad/css. (It needs some clean-up, but hey, this is beta!)
… at CMSimple-Forum
A documentation is to be published either on zeichenkombinat.de or the wellrad-demo site, but this will take a while and start with German. So please be patient …
…and have fun!