Tag: theme

  • {Less} is more?

    {Less} is more?

    So today I had to go out on a school trip with my son, so I knew I had limited work time. I thought it was a good opportunity to catch up with the latest Prestashop news and the first stop was the Prestashop Blog. The first entry I read was an interesting (and well-reasoned) summary of the workflow for building themes by Pierre-Alain Leboucher, and at the end of the post I came across a reference to {less}.

    I don’t mind admitting that I love reading about new technologies and techniques, and predictably a google search later and I was browsing various sites, and getting more and more hooked on the concept by the minute.

    (more…)
  • 1.4 Plugins Revisited – Part 2

    Extending Prestashop Theme Plugins

    In 1.4 Plugins Revisited – Part 1 we looked at creating a “Plugin” class to allow us to insert some handy theme plugins to insert the output of module hooks, cms pages and Prestashop config variables at arbitrary points in our themes. In this part we look at a mechanism to allow theme developers to include their own smarty plugins seamlessly into their themes, with the code contained within the theme distribution itself.

    (more…)
  • 1.4 Plugins Revisited – Part 1

    Plugins Evolved

    A while ago when I wrote the original article on Prestashop plugins I promised a follow-up to allow it to be used with smarty 3. Unfortunately work has kept me from a proper write-up so I’m only now getting around to publishing the next version. I had intended adding the ability to easily extend the functionality on a per-theme basis, but since the demand for some usable code right now has been so great I’ve decided to publish this in two parts. I will try to ensure that Part 2 doesn’t take as long to appear as this article has!

    (more…)
  • Tired of hooks? Try a Plugin (Prestashop 1.4)

    Please note that this version only works currently for Smarty v2, enabling smarty v3 will cause an error. I’ll post an update that resolves this issue shortly.

    Update: This article has been revised in: 1.4 Plugins Revisited

    In a previous article Display Module Output Anywhere I touched on the subject of subverting Prestashop’s internal Module architecture to our own ends. In this article we’ll be looking at creating a new mechanism for injecting module output into themes that doesn’t rely on tedious code changes, and should be able to be employed by (almost) anyone regardless of programming ability.

    How about being able to display the home featured products anywhere in your template files just by adding a single line (as below)?

    {plugin module='homefeatured' hook='home'}

    If this looks like something you would find useful, then read on….

    (more…)
  • Customising Prestashop Module Templates

    Please don’t edit those originals!

    I came across this little gem a while ago on the Prestashop forum, and thought I would draw attention to it in the hopes that it will help someone, somewhere.

    (more…)
  • PS_Cumulus a WP-Cumulus port to Prestashop

    I was looking to write a cool module to use in future tutorial articles when I came across the nifty looking WP-Cumulus WordPress plugin by Roy Tanck. It had all the elements I was looking for, and he has kindly released the code (including the flash source) under the GPL license. Approximately 2 hours later PS_Cumulus was born!

    Before anyone asks, the name has to use an underscore as a hyphen isn’t allowed in PrestaShop class names….

    (more…)
  • Adverts and Callouts module updated to version 1.2

    In an ongoing effort to keep all our modules up to date, a new version of of advertising module has been created to address differences in the admin tab architecture in PrestaShop 1.1. The older version was displaying view and edit links against each of the adverts, rather than edit and delete links.

    An updated version of the PrestaShop Random adverts and Callouts module is now available.