Atlantic Intelligence Demo

 
  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • blue color
  • green color
Technical beta

This is preliminary documentation, subject to changes at any time. The documents are for the upcoming SimpleCaddy v1.72. Some of the functions will already work on modified versions of different files in v1.71b, but no guarantee there...

I don't have much time to write up things at this moment, so the little I can write will end up here. It complements the standard SimpleCaddy documentation, so please look at everything before screaming that documentation is insufficient, ok?



Plugin parameters

The new v1.72 plugin accepts an array of parameters, all made to make your life easier.

A parameter is given to the plugin in its call like this { simplecaddy code=abc123} here “code” is the parameter, and “abc123” is the value of that parameter.

The current parameters accepted by the plugin are as follows:

  • code – the product code (mandatory)
  • defqty - default qty set in qty edit box, a user can override this but at least an indication is given as to how many items should be ordered
  • minqty – minimum quantity to order. Less than this minimum, an order will not be added to the cart. This has to be used in conjunction with the “Check minimum quantity” in the SimpleCaddy Configuration screen in order to be checked at all times. A user will have to maintain the minimum quantity in the cart for it to be valid.
  • qties – a string of quantities. Set like 5,10,15,25,30,50. If this parameter is set the textbox for the quantity is replaced by a dropdown list with these quantities.
  • checkoos – Check Out Of Stock. If set to “1” (one), SimpleCaddy will check if the user can add this item to the cart. If there is 0 in stock then the button is disabled and a message SC_OUT_OF_STOCK is displayed. The real message on your site can be set in the plg_simplecaddy.ini language file

More parameters will be added soon, notably a “name=” parameter for use in conjunction with Phoca Gallery

 
SimpleCaddy in Phoca Gallery

Phoca Gallery is the best gallery component that I have come across for Joomla. It only lacks the ability of displaying plugins in the descriptions. That would allow a SimpleCaddy plugin to sell your pictures, straight from the gallery.

See a demonstration here: http://demo15.atlanticintelligence.net/index.php?option=com_phocagallery&view=category&id=1&Itemid=73

As you already know, I am not a fan of hacking other people’s code, mostly because after an update, I will have to do this again. Jan Pavelka from Phoca (http://phoca.cz) promised to look into the matter. Until then, you can download the modified files on http://atlanticintelligence.net.

Once the integration is done by Jan, I will remove the hacked files from the download section.

So, once you have downloaded the updates to the different files and uploaded them to your server, what else needs to be done?

 

In Phoca Gallery, you will need to edit the description of each of your images you want to sell. Since you already add descriptions, this is only a small extra step.

Add the simplecaddy code as follows:

image

Note the picname= parameter, this one is very important. It corresponds to the name of the picture you want to sell and that the customer is currently viewing. If you have a different system of naming your pictures, please use that.

Only the updated version of the simplecaddy files will provide support for Phoca Gallery for now.

Now when you are viewing your pictures, you should see the following:

image

As you can see, this is the lightbox version of the full display of the pictures. Your PG settings should obviously show the description of the picture.

Clicking the Add-to-Cart button adds the picture to the cart, including options and additionally the picture name. It ends up in the cart like this:

image

All product options are allowed, formulas and captions. The picture name is appended to the option chosen and will show in the orders in the SimpleCaddy administration.

 


RawContent Module