Free X-Cart Module : Order Status by Colour

ordercolourOne of the most common X-Cart tweaks I am asked to develop for the order management section, is to provide colour labelling for the order statuses.

So have have put together a download module packaged and ready to use in xcart 4.4.x and above.

Click here to be taken through to the download page.

Also Checkout our other X-Cart modules here.

 

Online Ordering PHP Script for Local Takeaways and Restaraunts

http://static.phpjabbers.com/files/banners/online-food-ordering-system-image.pngAre you are local takeaway or a restaraunt that provides a takeaway service? Then have a look at a new PHP script by phpjabbers which allows your customers to easily order for delivery or pickup and pay online.

You can even setup the application to handle multiple delivery zones.

Take a look by going to Food Delivery Script

Need this script style then contact Zone1 Creative for a free quote

How to show different content to visitors from different countries using WordPress

Do you have a wordpress blog that accompanies your online store? If you are looking to increase your revenue from your blog using adsense, then you could use this great tutorial by WPwebhost to show content to visitors who are outside your stores catchment area.

We’ll be using these two plugins for our help:
GT-Geo Targeting : http://wordpress.org/extend/plugins/gt-geo-targeting/
WP PHP Widget : http://wordpress.org/extend/plugins/wp-php-widget/

http://www.wpwebhost.com/show-dynamic-content-as-per-pagepost-and-visitors-country/

Smarty Template Code : showing code only for your ip address

When coding it is not always practical to perform changes in a test environment first and then transfer to the live. Sometimes you just want to make a quick test and show the client before putting the changes live to the whole world to see.

X-Cart uses the smarty templating language and to do this in smarty is pretty simple. Continue reading

New Drupal 7 site just put live for Apex Recruitment

This site is fully content managed and build on thelatest version of Drupal.

You can see the full site at http://www.apex-recruitment.co.uk/

Improving page loading speed using Lazy Load

On the site www.cainefashion.co.uk site the Mens category page contains 170 images totalling 1.9mb. The full page including html and javascript totalled 2.2mb.

The recent site redesign gives the customer the benefit of large thumbnails but this in turn increased the full page site by 700K. Especially were the page has so many images. To help improve the performance you can include pagination but the site owner really did not want to have this feature, as the click through rate for next page was very low. Continue reading

Show RSS feed using PHP on X-Cart Homepage using Simple Pie

Here is a tutorial on how to show an RSS feed on your X-Cart Homepage without javascript. This allows google to see that your homepage is showing updated content regularly.

1. firstly you will need to download the latest version of SimplePie from the simple pie website. http://simplepie.org/downloads/

2. In your X-Cart directory create a folder called ‘simplepie’ inside the modules folder. ie, /modules/simplepie

3. Upload simplepie.inc and LICENSE.txt from the simplepie archive to /modules/simplepie

4. Create a folder called cache inside /modules/simplepie and give this file 755 or 777 file permissions.

5. Edit the file /modules/simplepie/simplepie.inc and find

1
2
3
4
5
6
/**
* @var string Cache location (relative to executing script)
* @see SimplePie::set_cache_location()
* @access private
*/

var $cache_location = './cache';

change this to

1
2
3
4
5
6
/**
* @var string Cache location (relative to executing script)
* @see SimplePie::set_cache_location()
* @access private
*/

var $cache_location = './modules/simplepie/cache';

6. Now create a new folder called rss in the modules folder ie, /modules/rss

7. Create a file called rss.php and enter the following information.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
if (!defined('XCART_SESSION_START')) { header("Location: ../../"); die("Access denied"); }

include_once($xcart_dir . '/modules/simplepie/simplepie.inc');

$feed = new SimplePie();
 
$feed->set_feed_url("http://www.zone1creative.co.uk/blog/feed");
$feed->enable_cache(true);
$feed->init();

$i = 0;
foreach ($feed->get_items() as $item) {
  $rssitem['title'] = $item->get_title();
  $rssitem['url'] = $item->get_permalink();
$rssitem['description'] = = $item->get_description();
  $rss[] = $rssitem;
 
//set value to how many feed items to show
  if(++$i > 4) break;
}

$smarty->assign_by_ref('rss', $rss);
?>

Change the line http://www.zone1creative.co.uk/blog/feed to your rss url.

Upload this file to /modules/rss

8. Download and edit /home.php
Find

1
2
3
if (!empty($active_modules['Gift_Registry'])) {
    include $xcart_dir . '/modules/Gift_Registry/customer_events.php';
}

and add below it

1
2
3
4
5
6
7
if (!empty($active_modules['Gift_Registry'])) {
    include $xcart_dir . '/modules/Gift_Registry/customer_events.php';
}

if ($cat == 0) {
  include $xcart_dir . '/modules/rss/rss.php';
}

Upload the file again.

9. We now need to edit the smarty template file /skin/{your skin folder}/customer/main/welcome.tpl

1
2
3
4
5
6
7
8
9
10
11
12
13
{if $rss}
  <ul id="rss-block">
  {foreach from=$rss item=rssitem}
    {if $rssitem.title != ""}
    <li>{if $rssitem.url != ""}<a href="{$rssitem.url}" target="blog">{/if}{$rssitem.title}{if $rssitem.url != ""}</a>{/if}
    <div class="description">
    {$rssitem.description}
    </div>
    </li>
    {/if}
  {/foreach}
  </ul>
{/if}

Start your own marketplace using PHP and MySQL script from Clone Forest

market place script php

clone forest php mysql script

If you have used Code Canyon and Theme Forest, then you maybe interested in setting up your own marketplace. Unlike e-commerce where you need to source products, buy in bulk and then find customers to buy. You could think of approaching it the Etsy or Amazon way.

Setup a market place where others can use your site to sell their creative work.

Clone Forest sell a number of high quality scripts that allow you to setup an online market place to sell code, images, video and docs.

Your sellers pay a selling fee which you collect via paypal and you concentrate on just marketing your site.

Paper like page turning affect using HTML 5

Came across this today from a Venezuelan programmer called Emmanuel Garcia. He has put together javascript library to show pages similiar to a real magazine or newspaper. The page also renders well on a ipad and mobile device.

It called turn.js and the site demos the plugin, with a good reference guide too.

Multisite Search Suggest

Beadazzle run two jewellery sites online. One site www.beadazzle.co.uk sells official Pandora Jewellery and the www.beadazzle-boutique.co.uk site sells all other non Pandora Jewellery products. Due to Pandora’s strict selling guidelines, they cannot sell any other products apart from Pandora on a single site.

This meant that if they wanted to buy item Pandora and non Pandora products they would need to place two separate transactions. To make it easier to find products I implemented a Search Suggest feature which is licensed from Code Canyon and modified it to work on Digishop. Then wrote a php script to pull product information from Beadazzle Boutique into the Search suggest script.

Customers can now type in the search box and products from both sites will be suggested to them, and click on a non Pandora product will result in a new window opening for beadazzle boutique. This will hopefully show loyal Pandora customers that Beadazzle sell more than just Pandora.

This script can also be implemented in X-Cart which is what I will be implementing in Beadazzle Boutique.