Zen Cart What Is The Maximum File Upload Size?

This Zen Cart article discusses the factors that go into the maximum size file you can upload to your web server. There are several factors that influence this, and we will go over these now.

By default, most web hosting companies set up webservers so that the maximum size for PHP uploads is 2 MB. In order to change this figure, you must have access to the php.ini file. Some webhosts give their customers access to this file, while others do not.

Internet connection speed also has some impact on the upload process, specifically affecting the time it takes for files to upload. Since PHP is only allowed to wait a certain length of time for an action to complete, you may encounter some difficulties when attempting to upload larger files if the set time limit is too short. This time limit can be changed though. Again, you will need access to the php.ini file, where you can change the ‘max_execution_time’, and ‘max_input_time’ values to increase the time limit.

There are also file upload size limits in zen cart that operate independently of the restrictions set by your web host. These limits can be modified in your Zen Cart Admin. To change them, navigate to Configuration–> Maximum Values, and find the ‘Maximum Upload Size’ parameter. The number in this field(in bytes) is the maximum file upload size that zen cart will accept. If you attempt to upload a file exceeding this limit, zen cart will reject it. It should be noted that this number is ignored if the PHP limits in the php.ini file are smaller, as PHP will reject the upload before Zen Cart can check it using the values found in the Maximum values area if the file is too large.

If you need help with your zen cart web site please contact us for a quote.

zen cart plus picaflor azul equals success

Zen Cart How to Upgrade Your Store – Part Four

This Zen Cart Tutorial is the final segment of a four part series that teaches zen cart store owners how to upgrade their sites to the latest version of zen cart.

Now that you have created your new database, it’s time to restore your old database(using the the backup of it that you created earlier) into the new one. Check to see if your /zen_new folder has “/includes/configure.php” and “/admin/includes/configure.php” files. If it doesn’t, copy them from your old store folder into /zen_new.

Open “/zen_new/includes/configure.php”, and make sure that the DIR_FS_CATALOG and DIR_WS_CATALOG and DIR_FS_SQL_CACHE(other path settings as well) match your neq directory structure. Then, check your “/zen_new/includes/configure.php” file to ensure that the ‘DATABASE_NAME’ matches your new database. Also make sure that the database username and password are correct. Save this file.

Now, you will need to upload the files from your modified ‘new version’ to your server, into an alternate folder(We’ll call this ‘/store_new’). Then, run the /zc_install/index.php and select ‘Upgrade’ when prompted(If you select ‘Install’ here, you will overwrite your database). If you are not offered the upgrade option, then the installer was not able to connect to your database and confirm the version of it’s structure. In this case, you should check your configure.php settings.

If you selected upgrade, however, and everything went smoothly, it is time to test your customizations, making whatever edits are needed.

Once you are satisfied with your site, you can go live! If, however, you have a lot of changes to make, you should put your site down for maintenance. You can do this by going to your admin, Configuration–>Website Maintenance, and setting ‘down for maintenance’ to true. Don’t forget to add your IP address to the list addresses that are allowed to view the site during it’s down for maintenance periods.

If you need help with your zen cart web site please contact us for a quote.

zen cart plus picaflor azul equals success

Zen Cart How to Customize The main_page=page_X? URL

This Zen Cart Easy Help tutorial will explain how to make a custom URL. When setting up your zen cart store, this is something you might want to do to help with your SEO(Search Engine Optimization). By creating a custom URL that contains keywords which are relevant to your page content and business type, you can boost your rank in google and other major search engines. Getting ahead in web searches is one of the most recommended ways to attract clients. Individuals who find your site by searching for your keywords are more likely to stay on your site, and purchase items. In other words, customers referred to your site by a search engine have an overall higher conversion rate than clients from almost any other referral method.

Customizing URLs in Zen Cart is very easy. There are only two steps to the process. First, find the /includes/languages/ENGLISH/page_?.php file, and open it in your favorite plain text editor. Find this code:


define('NAVBAR_TITLE', 'Page ?');
define('HEADING_TITLE', 'Page ?');

And make the following changes:


define('NAVBAR_TITLE', 'YOUR_PAGENAME_HERE');
define('HEADING_TITLE', 'YOUR_PAGENAME_HERE');

Then save your changes, and upload the file to your server.

h2>If you need help with your zen cart web site please contact us for a quote.

At Picaflor Azul, we specialize in custom designed responsive zen carts to fit any business, and accommodate any budget. Contact us today about converting your current zen cart to a responsive design, or to have a fantastic new custom design custom tailored to fit your needs and preferences. Now that more and more people shop online from their mobile devices, mobile friendly websites are more important than ever to convert customers, and increase sales. We can also offer you help with module installation, wordpress integration, or a full zen cart upgrade.

zen cart plus picaflor azul equals success

If you need help with your zen cart web site please contact us for a quote.

Zen Cart Easy Help Tips For Creating Your Privacy Policy

When you are starting your online business, and setting up your zen cart store, one of the most important things to do is create a privacy policy to protect yourself and your site. Writing the privacy policy for your store can be confusing though, especially if your business type is less mainstream. For this reason, it is recommended that you seek professional legal counsel for your business sometime during this stage. Even if you do seek legal help, however, it is still a good idea to familiarize yourself with the process before hand. While there is no comprehensive guide to writing your privacy policy, the following websites all offer useful tips and examples:


http://www.truste.com/
http://policytool.net/
http://www.bbb.org/
https://privacyassociation.org/
http://www.w3.org/P3P/
http://www.ftc.gov/reports/provacy2000/privacy2000.pdf
http://www.privacybot.com/
http://p3pedit.com/
http://www.p3ptoolbox.org/

If you need help with your zen cart web site please contact us for a quote.

At Picaflor Azul, we specialize in custom designed responsive zen carts made to fit any business, and accommodate any budget. Contact us today about converting your current zen cart to a responsive design today, or to have a fantastic new zen cart design custom tailored to fit your needs and preferences. We can also offer quotes for module installation, and even recommend modules that would be beneficial to your business. Or, as us about upgrading your zen cart to the latest version. Every new version of zen cart offers new bug fixes and security updates that are vital to keeping your site safe and working properly.

Picaflor Azul also offers spectacular free templates, and paid premium templates. Download or buy them, and install them yourself with help from our many free Zen Cart Easy Help Tutorials, or contact us and we will install them for you!

zen cart plus picaflor azul equals success

Zen Cart How to Change the Date Format from the Default US

If your zen cart store is based outside of the US, you may want to change the date format used throughout your site from the default US format MM/DD/YYYY to the format used in the UK and elsewhere DD/MM/YYYY UK. This Easy Help Zen Cart Tutorial will show you how to customize your zen cart to change the date format from US to UK.

In your favorite plain text editor open the includes/languages/override/english.php file. If there is not an override for this file already you can create one by copying the
includes/languages/english.php to the includes/languages/override/english.php.

Find this section around line 22:


@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');

Change it to:


@setlocale(LC_TIME, 'en_US.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');

In the same file find this section around line 29:


// 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);
}
}
}

Change it to:


// 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, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
}
}
}

In the same file find this section around line 67:


// text for date of birth example
define('DOB_FORMAT_STRING', 'mm/dd/yyyy');

Change it to:


// text for date of birth example
define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

In the same file find this section around line 200:


define('ENTRY_DATE_OF_BIRTH_ERROR', 'Is your birth date correct? Our system requires the date in this format: MM/DD/YYYY (eg 05/21/1970)');
define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');

Change it to:


define('ENTRY_DATE_OF_BIRTH_ERROR', 'Is your birth date correct? Our system requires the date in this format: DD/MM/YYYY (eg 21/05/1970)');
define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 21/05/1970)');

Now, open the admin/includes/languages/english.php file. Be sure to make a back up of this file since it is a zen cart core file.

Find this section around line 20:


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('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

Change it to:


setlocale(LC_TIME, 'en_US.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('PHP_DATE_TIME_FORMAT', 'd/m/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
define('DATE_FORMAT_SPIFFYCAL', 'dd/MM/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

In the same file find this section around line 29:


// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
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);
}
}

Change it to:


// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
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);
}
}

In the same file find this section around line 85:


// text for date of birth example
define('DOB_FORMAT_STRING', 'mm/dd/yyyy');

Change it to:


// text for date of birth example
define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

In the same file find this section around line 204:


define('JS_DOB', '* The \'Date of Birth\' entry must be in the format: xx/xx/xxxx (month/date/year).\n');

Change it to:


define('JS_DOB', '* The \'Date of Birth\' entry must be in the format: xx/xx/xxxx (date/month/year).\n');

In the same file find this section around line 231:


define('ENTRY_DATE_OF_BIRTH_ERROR', ' (eg. 05/21/1970)');

Change it to:


define('ENTRY_DATE_OF_BIRTH_ERROR', ' (eg. 21/05/1970)');

Save your changes and upload the files to your server making sure that you overwrite the files already on your server.

If you need help with your zen cart web siteplease contact us for a quote.

zen cart plus picaflor azul equals success

Zen Cart How to Change Meta Title Comma to Pipe

The zen cart meta title tag for is super important for SEO (search engine optimization). Google uses this tag to determine what a page will be about. By default, zen cart uses a comma in the meta title tag. This Easy Help Zen Cart Tutorial will show you how to change the comma to a pipe or vertical bar.

In your favorite plain text editor, open the includes/languages/YOUR_LANGUAGE/override/meta_tags.php file. If you do not already have an override for this file, copy the includes/languages/YOUR_LANGUAGE/meta_tags.php file to your includes/languages/YOUR_LANGUAGE/override/meta_tags.php to create one.

On or around line 53 change this:


// Define Tertiary Section Output
  define('TERTIARY_SECTION', ', ');

to this:


// Define Tertiary Section Output
  define('TERTIARY_SECTION', ' | ');

Save the file and upload it to your server making sure that you select to overwrite the file already on your server. Navigate to the front of your store, refresh your browser, and see the changes.

If you need help with your zen cart web site, please contact us for a quote.

Picaflor Azul specializes in responsive zen cart design. Contact us to convert your current zen cart to a responsive design, or to have a fantastic new custom design made just for your business. Did you know that our responsive zen cart designs are optimized for desktops, laptops, portrait and landscape tablets, and portrait and landscape phones. With the ever increasing number of customers who are visiting your site using their mobile devices, responsive design had become a must have. Check your google analytics account to get an idea of what percentage of your customers are visiting using mobile devices and what the bounce rates and conversion rates are for these customers. Having a clean, easy to navigate site that has been optimized for these devices will increase your sales, conversion rates, and customer satisfaction.

zen cart plus picaflor azul equals success

Zen Cart How to Set a Low Order Fee by Manufacturer?

If you have a zen cart business that offers products or custom products from several different manufacturers, and these manufacturers have different low order fees and thresholds, you will need a way to program this into your zen cart to avoid headaches in order fulfillment. By default, zen cart does not offer this functionality. This tutorial will show you how to program your zen cart to set a low order fee by manufacturer.

In your favorite plain text editor, open the includes/modules/order_total/ot_loworderfee.php file. Be sure to create a back up of this file before you make any modifications, and make a note that this file has been modified in your records as it is a zen cart core file, and you will need to know about this modification for future upgrades.

Replace the whole function process with this new code:


function process() {
global $order, $currencies;

$chk_manufacturers_1_id = 3; // manufacturers_id 3
$chk_manufacturers_1_total = 0;
$chk_manufacturers_1_min = 30.00;
$chk_manufacturers_1_extra = 3.00;

$chk_manufacturers_2_id = 4; // manufacturers_id 4
$chk_manufacturers_2_total = 0;
$chk_manufacturers_2_min = 40.00;
$chk_manufacturers_2_extra = 4.00;

$products = $_SESSION['cart']->get_products();
//echo '<pre>'; echo print_r($products); echo '</pre>';
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
$product_id = $products[$i]['id'];
$ppe = $products[$i]['final_price'];
$ppt = $ppe * $products[$i]['quantity'];
$productsPriceTotal = $ppt + $products[$i]['onetime_charges'];
//echo 'product_id: ' . $product_id . ' $ppt: ' . $ppt . ' qty: ' . $products[$i]['quantity'] . ' $productsPriceTotal: ' . $productsPriceTotal . '
';
if (zen_products_lookup($product_id, 'manufacturers_id') == $chk_manufacturers_1_id && (int)$product_id == (int)$products[$i]['id']) {
$chk_manufacturers_1_total += $productsPriceTotal;
//echo '$chk_manufacturers_1_id: ' . $chk_manufacturers_1_id . ' $product_id: ' . $product_id . ' $chk_manufacturers_1_total: ' . $productsPriceTotal . '
';
}
if (zen_products_lookup($product_id, 'manufacturers_id') == $chk_manufacturers_2_id && (int)$product_id == (int)$products[$i]['id']) {
$chk_manufacturers_2_total += $productsPriceTotal;
//echo '$chk_manufacturers_2_id: ' . $chk_manufacturers_2_id . ' $product_id: ' . $product_id . ' $chk_manufacturers_2_total: ' . $productsPriceTotal . '
';
}
} // end FOR loop
$extra_fee = ($chk_manufacturers_1_total > 0 && $chk_manufacturers_1_total < $chk_manufacturers_1_min ? $chk_manufacturers_1_extra : 0) + ($chk_manufacturers_2_total > 0 && $chk_manufacturers_2_total < $chk_manufacturers_2_min ? $chk_manufacturers_2_extra : 0) if ($extra_fee > 0) {
$tax_address = zen_get_tax_locations();
$tax = zen_get_tax_rate(MODULE_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS, $tax_address['country_id'], $tax_address['zone_id']);
$tax_description = zen_get_tax_description(MODULE_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS, $tax_address['country_id'], $tax_address['zone_id']);

// calculate from flat fee or percentage
$low_order_fee = $extra_fee;

$order->info['tax'] += zen_calculate_tax($low_order_fee, $tax);
$order->info['tax_groups']["$tax_description"] += zen_calculate_tax($low_order_fee, $tax);
$order->info['total'] += $low_order_fee + zen_calculate_tax($low_order_fee, $tax);
if (DISPLAY_PRICE_WITH_TAX == 'true') {
$low_order_fee += zen_calculate_tax($low_order_fee, $tax);
}

$this->output[] = array('title' => $this->title . ':',
'text' => $currencies->format($low_order_fee, true, $order->info['currency'], $order->info['currency_value']),
'value' => $low_order_fee);
}
}

Then set the variables to match your manufacturers_id, minimum, and extra fee for each set. For example:
$chk_manufacturers_1_id = 3; // manufacturers_id 3
$chk_manufacturers_1_total = 0;
$chk_manufacturers_1_min = 30.00;
$chk_manufacturers_1_extra = 3.00;

This would give you manufacturers_id 3, minimum of $30.00 and an extra fee of $3.00.

If you need help with your zen cart project, or need a quote for a customization that is beyond your skill level, contact us for a quote.

zen cart customization

Zen Cart What is CHMOD and What do the Numbers Mean?

When you set up your zen cart store, you will need to set your configure.php files to permissions 444 for security reasons. What does this mean? What does the number 444 signify? This easy help zen cart tutorial will explain what CHMOD is and what the numbers mean.

This tutorial features the Dover Fine free responsive zen cart template. It is released under the GPL, so feel free to use it for your clients or your own zen cart site.

Download the Dover Fine template package here.

dover fine responsive zen cart template
This template is a responsive design and has been optimized for desktops, laptops, landscape and portrait tablets, and landscape and portrait phones. Increasingly, visitors are shopping online using their mobile devices so it is important that your site is optimized for these devices. Don’t lose sales, go responsive today!

A guide to the numbers:

444 = (r– r– r–): owner/group/others are all only able to read the file. They cannot write to it or execute it.
644 = (rw- r– r–): same as 444 except the owner can write to it.
755 = (rwx r-x r-x): owner can read, write and execute the file, members in the user group and others can read and execute the file but cannot write to it.

r = read, w = write and x = execute.

The first group of three characters represents the owner’s level of permission, the second group represents permission for others in the same user group as the owner, and the last group represents the permission for all others (including website visitors).

Permissions are normally set using your web host control panel. They can also be set using the chmod command in many ftp programs.

If you need help with your zen cart project, or need a quote for a customization that is beyond your skill level, contact us for a quote.

zen cart customization

Zen Cart: How to Change the Home Breadcrumb Link

In most circumstances, you will want the “Home” link in your zen cart breadcrumbs to link to the main page of your zen cart. But, if you have occasion to change this link, this tutorial will show you how.

dover fine responsive zen cart template

Our Dover Fine zen cart template comes packed with features.

Dover Fine Responsive Zen Cart Template:

  • Super flexible design perfect for all types of ecommerce stores–the possibilities are endless!
  • Super easy 3 step install!
  • Responsive 2 column, full width layout
  • Optimized Drop Down Navigation for hand held devices
  • Matching CSS icons included
  • CSS Buttons for easier multi language implementation
  • Responsive Full Screen Home Page slideshow included
  • Add your slide show images, set their links, enable/disable images/links, and set open in new window easily, and add captions using the admin banner manager.
  • Add This social bookmarking added to all product pages (includes Facebook like button, Twitter Tweet Button, Pinterest Pin it button, and 300+ Sharing Services)
  • Customized product info page layout
  • Tabbed product description, details, reviews, and a custom tab (ad your content using the banner manager) which converts automatically to accodions on hand held devices
  • Product reviews show on the product info page
  • “View All” option on the product listing pages
  • Cross Browser tested in Firefox, IE11, IE10, IE9, IE8, Google Chrome, Opera, and Safari.
  • Tested on the iPhone 5 with Mobile Safari 6.0; iPad 4 with Mobile Safari 6.0; Windows Phone 8 with IE10 Mobile; Blackberry Bold 9900 with Blackberry Browser 9900; and Android Nexus 4 with Chrome Mobile 18, Dolphin Mobile 9.3, Firefox Mobile 19, Marathon Mobile 4, Opera Mobile 12, Sleipnir Mobile 2.9 , HTC One, Nokia Lumia 920, Google Nexus 7, Apple iPad Mini, Kindle
  • W3C Valid XHTML and CSS
  • Comes with the following modules installed: Column Layout Grid, About Us Page, Back to Top, Bestsellers Thumbnails, Easy Responsive Tabs, DG Reveiws on Product Info Page, Contact Us Add Subject, Supersized Full Screen Slideshow, Flyout Sidebar Category Menu
  • Detailed HTML readme file with written instructions and screenshots, and links to videos for the installation and customization steps.
  • Fully compatible with versions 1.5x.

In your favorite plain text editor, open the file includes/classes/breadcrumb.php. Be sure to back this file up before you edit it as it is a zen cart core file.

Find this line:


$trail_string .= ' <a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . $this->_trail[$i]['title'] . '</a>';

Change this to your new url:


' . HTTP_SERVER . DIR_WS_CATALOG . '

Save the file and upload it to your server. Refresh the page to view your changes.

EZ-Pages Aren’t Showing In My Site Map

Zen Cart, at the moment does not support the inclusion of EZ pages on the site map page. If you want your EZ pages to show on your zen cart site map, I would recommend installing the EZ Pages on Sitemap Zen Cart Module. It will allow you to add Ez-pages which are defined and activated in the sidebox to show on the site map.

zen cart easy help tutorials, show ezpages on the sitemap

What is a Sitemap?

Sitemaps, as the name implies, are just a map of your zen cart site – i.e. on one single page you show the structure of your site, its sections, the links between them, etc. Sitemaps make navigating your site easier and having an updated sitemap on your site is good both for your users and for search engines. Sitemaps are an important way of communication with search engines. While in robots.txt you tell search engines which parts of your site to exclude from indexing, in your site map you tell search engines where you’d like them to go.

Why Are Sitemaps Important in Zen Cart?

Sitemaps come with many benefits, not the least of which is easier navigation. They also help improve your site’s google ranking by informing search engines immediately about any changes on your site. Another benefit is that when you have a sitemap and submit it to the search engines, you don’t have to rely as much on external links to bring search engines to your site.

Also, if your site is new, or if you have a large ammount of new or recently updated pages, then using a sitemap can be vital to your success. While you can still get through without a sitemap, it is likely that sitemaps will soon become the standard submission method of data to search engines. Spiders will certainly continue to index the Web and sitemaps will not make the standard crawling procedures obsolete, but it is very likely importance of sitemaps will continue to increase.