Zen Cart Logo
Forums / Addon Templates / UK Template

UK Template

Locked

Views: 3,586

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
25 Feb 2008, 12:00 PM
#1
freshstart avatar

freshstart

New Zenner

Join Date:
Jul 2007
Location:
England
Posts:
84
Plugin Contributions:
0

UK Template

Hello all,

Have just read that the UK Zen Template will not work with the 1.3.8 upgrade and that a 'paid variant' will be available soon, from the coder working on the UK template.

Does anyone use the UK Template and have you experienced any problems with this specific issue?

25 Feb 2008, 1:16 PM
#2
freshstart avatar

freshstart

New Zenner

Join Date:
Jul 2007
Location:
England
Posts:
84
Plugin Contributions:
0

Re: UK Template

Update. I have just tried a fresh install with 1.3.8 plus the UK template and it has not worked for me. Anyone else tried it yet?

25 Feb 2008, 1:18 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: UK Template

I upgraded UK Template to 1.3.8 myself.

All I did was COMPARE all the files in UK Template with their corresponding files in 1.3.8, using WINMERGE, and then made necessary changes in the UK Template by copying "new/modified" code into the UK Template files.

Use Winmerge to do the changes yourself.

I did not make any changes to the UK Template SQL patch.

(I made these changes before installing 1.3.8 and then installed both of them together as per instructions on UK Template).

I can't let anyone else use my upgrade because it is highly customised.

25 Feb 2008, 1:33 PM
#4
freshstart avatar

freshstart

New Zenner

Join Date:
Jul 2007
Location:
England
Posts:
84
Plugin Contributions:
0

Re: UK Template

Hello Schoolboy,

Will read more of your threads and try to pick up some of your knowledge. I am not a coder (as said many times before, here and other places), so I find it very very difficult to work the zen magic / any magic.

I previously destroyed my website approximately 15 times, installing 1.3.7 (many many hours of work over several months), but eventually, I destroyed it less and less until it seemed to work (UK template and Cherry Zen along with the standard Zen template), however, have still not opened for business, due to other issues.

Now that 1.3.8 is released, I considered that I would try it, but failed. I am wondering if I should stick with 1.3.7 - I do not want to start making huge mistakes all over again - my ranting is just the frustration coming out, which I see is quite common in the world of Zen / OSC etc...

25 Feb 2008, 6:02 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: UK Template

Okay... don't attempt an "upgrade" of UK Template unless you have some competence with code. (I have very little, but am fortunate in having some common sense, so I seem to have managed the upgrade myself)

UK Template is not essential if you run a UK store - it is designed to quickly effect changes that make standard zencart more compatible with UK terminology, taxes, zones and date formatting.

These can all be done manually, but add a few hours to customising your store.

You should not allow the frustration of installing UK Template inhibit your desire to get up-and-running with an online store. My advice would be to get a standard install of 1.3.8 going ASAP (with demo products loaded), then spend a couple of weeks working through key settings (including configuring UK-specific settings).

If you have the book (see top right of your screen), then learning the ropes is much more manageable.

26 Feb 2008, 1:45 PM
#6
freshstart avatar

freshstart

New Zenner

Join Date:
Jul 2007
Location:
England
Posts:
84
Plugin Contributions:
0

Re: UK Template

Schoolboy,

Many thanks for your advice. I shall begin the journey again in a couple of days time. In the meantime, without using the UK template would you suggest that I search out items such as the Post Office contrib and associated UK associated software contributions, add those, then see how things turn out?

Best wishes :smile:

26 Feb 2008, 2:17 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: UK Template

I would be cautious about adding modules relating to UK-specific behaviour until you have gotten your basic UK set-up in order. This is chiefly your setting up of zones and UK Vat. Language file changes are less important (so, for example, having the word "check" appear instead of "cheque" may irritate some customers a bit, but it's not critical). Anyway, simple DEFINES like this are easy to change in your english.php file.

Talking of english.php, there is some advantage in having your date formatting set to UK protocols. In the USA, they like the date to be MONTH/DAY/YEAR. This can confuse UK customers, who like DAY/MONTH/YEAR.

To make this change, ftp the following file to your hard drive: -
includes/languages/english.php

Then, using an editor (such as CRIMSON EDITOR), open up the file and find the following code:-

  @setlocale(LC_TIME, 'en_US.ISO_8859-1');
  define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
  define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
  define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
  define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
  if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false) {
      if ($reverse) {
        return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
      } else {
        return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
      }
    }
  }

Then, edit it to look like this:-

@setlocale(LC_TIME, 'en_UK.ISO_8859-1');
 define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()
 define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
 define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
 define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format dd/mm/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
  if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
          return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
} else {
  return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
      }
    }
  }

NB: make sure you get the numerical changes right in these sequences too!

return substr($date, X, Y)

Then, using Crimson's "FIND" function (drop-down menu), search for "date", and for "mm/dd/yyyy" in the rest of english.php

This will help you find locations for references to mm/dd that now need to be changed to dd/mm

(You don't want to have your date format set to UK, only to have text appearing in your webshop saying to customers that the date is formatted mm/dd/yyyy !!!)

While you're busy editing english.php, you may as well look for words like "check" as well, and any other phrases that would look better when viewed by UK customers.

Scroll carefully through the file, making DEFINE element changes as you see fit.

Save the file on your hard drive.

FTP the file to includes/languages/classic

(This assumes you're using a standard upload of zencart and it's "Classic" template).

If it fouls things up, you can revert to the ORIGINAL core english.php by either DELETING the copy in the classic folder, or "disabling" it by re-naming it to something like english_old.txt .

You can then try the edit again, looking for where you made errors.

(NB: If you do have other modules installed that rely on date parameters being set, you will have to also set these parameters to be DD/MM/YYY - I know that easypopulate is one such module, and the settings here are "easy" the date settings can be found in ADMIN>>>CONFIGURATION>>>EASY POPULATE)

26 Feb 2008, 3:29 PM
#8
freshstart avatar

freshstart

New Zenner

Join Date:
Jul 2007
Location:
England
Posts:
84
Plugin Contributions:
0

Re: UK Template

Schoolboy,

Hello again,

Yes, I think this is what I was trying to get at...additional information will need to be added to the standard upload, including Zones and VAT, which are not included. Therefore, I imagine such additions will be found in the Download section of this forum? I shall check later.

Thanks for your latest information regarding use of language, which I shall put into practice, again later on. This is a starting point and hopefully, things will begin to develop positively again.

I shall let you know how I progress :smile:

28 Feb 2008, 10:13 AM
#9
freshstart avatar

freshstart

New Zenner

Join Date:
Jul 2007
Location:
England
Posts:
84
Plugin Contributions:
0

Re: UK Template

Hello all,

Thought I may as well stay in this thread, rather than start another. I am experimenting with a fresh install of 1.3.8 - have already destroyed one website since the last time I posted here :censored:

I have managed to set up a very basis working site. Added contribution just to see if they worked - Cherry / Easy Pop / Image Handler - no problems.

I have just managed to import the sql db from a site I wish to become live at some point in the future (1.3.7) - I dare not touch this site for fear of another mistake being made.

The sql db imported correctly, but now I am being told the following;

'your database appears to need patching to a higher lever' See Tools - Server information to review patch levels.

I have no clue what I am supposed to do next :no:

28 Feb 2008, 11:52 AM
#10
scrat avatar

scrat

Zen Follower

Join Date:
Dec 2005
Posts:
451
Plugin Contributions:
0

Re: UK Template

freshstart - I think you are getting a little confused with what you have done, you say a fresh install of 1.3.8 but then you are saying

The sql db imported correctly, but now I am being told the following;

'your database appears to need patching to a higher lever' See Tools - Server information to review patch levels.

What SQL DB have you imported (1.3.7 to 1.3.8)? Are you working with a old database or new? Is this a test site ? or Live ?

The best advice I could give 1. don't panic, 2. build test site first play around with that, if you mess up dump it and start again, when you are happy with it, then upgrade your live site to 1.3.8 using Zencarts Upgrade option in the install without changing anything design wise and then upload your test files to the new live one.

Think of it this way you have a test site with a fresh install and a Live site with a pre-version, you need to upgrade the live site first before you customize it.

The most important thing is not to get too bogged down with upgrades, go step by step and its pretty straight forward.

4 Mar 2008, 12:06 PM
#11
freshstart avatar

freshstart

New Zenner

Join Date:
Jul 2007
Location:
England
Posts:
84
Plugin Contributions:
0

Re: UK Template

Thanks for your imput Scrat...really appreciated...am not very motivated at the moment...will try to return to Zencart development in next couple of days.

10 Mar 2008, 10:24 AM
#12
freshstart avatar

freshstart

New Zenner

Join Date:
Jul 2007
Location:
England
Posts:
84
Plugin Contributions:
0

Re: UK Template

Hello all,

Update...

Have recently tried to update 1.3.7 site to 1.3.8 - did not work and ended up destroying that website...I appear to be getting very good at doing this...strike 20!

Ok...so I have begun site 21 with a fresh install of 1.3.8. Followed Schoolboys advice regarding English PHP... all worked out well :smile:

Installed the following, although having thought about it further, I may not use all of them in the end; Cherry Zen, Easy Populate, Big Royal Mail and the UK Template County SQL and everything appears to have worked without any issues becoming evident...so far so good:smile:

Shipping Modules

Now...I am working on an 'old' issue, which has dogged me for months.... I have very recently managed to understand how to clone a shipping module 'perweightunit' for eventual use with several suppliers, who each charge different shipping rates. So, I have set up the following;

perweightunituk
perweightuniteurope
perweightunitrow

As a quick test, I set the shipping zone to 'none' and get green lights with all three modules.

When I set the shipping zone to UK, Europe or ROW, I get yellow lights...so, I assume that something is wrong with my zones?

Zones

Using 'uk' as an example...I enter zone definitions and press 'insert' then add uk as the country and 'all zones' as the zone.

In 'tax rates' I have added 17.5% as the VAT figure in the UK.

In the 'zones' section I note that only 'United Kingdom' counties exist, which I assume are there due to the UK Template SQL, which I added earlier? Am i right in thinking that other countries should also be in there?

What I eventually want to see is something like this;

When a buyer emerges, within one of the three proposed zones, he will use one of the three 'perweightunit' modules. He will see the price of the item and note the shipping charge, which will be a little bit more if outside the UK. I note that the option exists to increase the shipping cost by increasing the figure in the 'shipping cost per unit' section of the module;

Assuming a base figure for weight / cost, of say £10.00 plus the following calculation;

uk - 1.1
europe - 1.50 (I assume the base weight / cost plus a small increment)
row - 2.00 (as above)

At present, I cannot get this to work...I am currently reading through as much as I can find on this subject, within the forum, but am not getting any further ahead at this point. Will keep reading :lamo:

11 Mar 2008, 3:01 PM
#13
freshstart avatar

freshstart

New Zenner

Join Date:
Jul 2007
Location:
England
Posts:
84
Plugin Contributions:
0

Re: UK Template

Quick update...

Cloned shipping modules appear to be working ok....yellow blobs do not indicate a fault, but does indicate that those particular modules will only work within the idenfitied zones - uk / europe / rest of world, so that appears to be working - phew :smile:

Europe shows a higher shipping rate than the UK, so that also appears to be working - :smile:

Row module not showing shipping cost, but I am not that bothered at the moment - will stick with UK and Europe for now..:cool:

28 Jun 2010, 8:54 PM
#14
profitshock avatar

profitshock

Zen Follower

Join Date:
Jul 2004
Location:
UK
Posts:
169
Plugin Contributions:
0

Re: UK Template

For anyone interested the 1.3.9x version on the UK Zencart Template module is available.
See signature for the link.

28 Jun 2010, 9:02 PM
#15
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,591
Plugin Contributions:
0

Re: UK Template

Please update/add the template to the Zen Cart downloads section. Thanks!