Zen Cart Exclude Shipping Module From Being Auto Selected as Cheapest

You give your zen cart customers the choice of shipping via flat rate, but also ship via UPS, FedEx, USPS and store pickup but want a way to exclude the flat rate module from being auto selected as the cheapest. You just want UPS, FedEx, and USPS to be the shipping modules zen cart uses to determine auto selection. Custom php code is needed to accomplish this situation. This Easy Help Zen Cart Tutorial will show you how you can code your shipping module to achieve this.

In your favorite plain text editor open the includes/classes/shipping.php. This is a core zen cart file, so be sure to back it up and make a note that you have altered this file so that you changes will not be lost in a future upgrade.

Find this line:


  // never quote storepickup as lowest - needs to be configured in shipping module

Change the next line to this:


if (($rates[$i]['cost'] < $cheapest['cost'] and ($rates[$i]['module'] != 'storepickup' && $rates[$i]['module'] != 'flat' || $size == 1))) { // modified by Numinix for FEC  

So you should have this:


      $cheapest = false; 
      $size = sizeof($rates); 
      for ($i=0; $i<$size; $i++) { 
        if (is_array($cheapest)) { 
          // never quote storepickup as lowest - needs to be configured in shipping module 
          if (($rates[$i]['cost'] < $cheapest['cost'] and ($rates[$i]['module'] != 'storepickup' && $rates[$i]['module'] != 'flat' || $size == 1))) { // modified by Numinix for FEC 
            $cheapest = $rates[$i]; 
          } 
        } else { 
          if ($rates[$i]['module'] != 'storepickup' && $rates[$i]['module'] != 'flat' || $size == 1) { // modified by Numinix for FEC 
            $cheapest = $rates[$i]; 
          } 
        } 
      } 
      $this->notify('NOTIFY_SHIPPING_MODULE_CALCULATE_CHEAPEST', $cheapest); 
      return $cheapest; 
    } 
  } 
}  

Save the files, upload it to your server, choosing to overwrite the file already on your server. Add a product to your zen cart and navigate to your check out page to test the code. You should see the auto selected shipping module as either UPS, FedEx, or USPS and not the flat rate shipping module.

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 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 Templates: Product Links in Account History

The account history page in zen cart is an important page for your customers. It allows them to log into their account and check the status of their orders, view tracking information (if you have this add on functionality installed), view their order history, etc. By default, the product names shown on the account history page are not linked. To encourage customers to leave reviews and to make it easier for them to find products that they have purchased that need reviews, you can customize the account history page of your zen cart template make the product names linked to their product info pages.

In your favorite plain text editor, open the includes/templates/your-template-override/templates/tpl_account_history_default.php file. If this file is not already in your template override directory, create an override for it by copying the includes/templates/template_default/templates/tpl_account_history_default.php to includes/templates/your-template-override/templates/tpl_account_history_default.php.

Find this code:


<td class="accountProductDisplay"><?php echo $order->products[$i]['name'];
if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {

and change it to this:


<?php
// bof: add Product Link to Order History
$products_link = '<a href="' . zen_href_link(zen_get_info_page($order->products[$i]['id']), 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id($order->products[$i]['id'])) . '&products_id=' . $order->products[$i]['id']) . '">' . $order->products[$i]['name'] . '</a>';
?>
<td class="accountProductDisplay"><?php echo $products_link;
// eof: add Product Link to Order History

if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {

Now customers can click through to the product info pages of products directly when they view their order history. This will make leaving product reviews easier and faster.

Zen Cart Templates: How to Customize the Down for Maintenance Page

The default zen cart “Down for Maintenance” page is very generic and may not make the best impression on your customers. With just a little effort, the text and image on this page can be customized to match your zen cart templates. This will look a lot more professional and give your customers the confidence to come back and complete their transaction once your site is back up live again. This zen cart templates tutorial will show you how to customize the down for maintenance page text and image to match your store design.

To complete this tutorial you will need to know how to use a ftp program (filezilla is our favorite), how to use a plain text editor (Notepad++ is our favorite), and how to edit a php file.

zen cart templates

Zen Cart Templates Tutorial: How to Customize the Text and Image on the Down for Maintenance Page

1. In your favorite plain text editor open the includes/langages/english/override/down_for_maintenance.php. This is a php file and must be edited in a plain text editor. If you open this file using an html or wysiwyg editor, it will break the php code and when you upload the file back to your server it will break your zen cart site.

2. This file contains the definitions for all of the Down for Maintenance page text. You can change the navigation bar title, the heading title, the down for maintenance text message, the text for when maintenance will be turned on, the maintenance period, and the verify site status text.

Make your changes to the file but be sure that you keep all of the single quotes in tact. If you need to use an apostrophe or single quote in your text, be sure to escape it or else it will cause a blank page when you copy the file back to your server.

Save the file and upload it to the includes/langages/english/override directory on your server. Be sure to select “overwrite” so that the new file overwrites the one already on your server.

3. To customize the image shown on this page, create your image in your favorite image editing program, name it down_for_maintenance.gif and upload it to the includes/templates/override/images directory on your server.

4. Navigate to your zen cart home page in your browser and click on the “refresh” button.

zen cart templates

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 Error “Warning: I am able to write into the configuration file…”

zen cart easy help tutorial

The error message “Warning: I am able to write into the configuration file…” appears when the permissions on your includes/your_template/configure.php zen cart file are set to 777 (Read, write, and execute). If you are using Windows, it means that there are no attributes selected in the file properties. This is a security risk, but can be fixed easily.

If you are using Linux or Unix, go to your includes/your_template directory, and run the command “chmod 444 configure.php”. You can do this via command line, an FTP program, or in your Cpanel using the file manager tool.

If you are using Windows, open the includes/your_template directory, right click on the configure.php file, and select “Read Only”.

What Do Zen Cart File Permissions Mean?

File permissions or access rights apply to specific users and groups of users. These systems control the ability of the users to view or make changes to the contents of the filesystem.

The read permission grants the ability to read a file. When set for a directory, this permission grants the ability to read the names of files in the directory (but not to find out any further information about them such as contents, file type, size, ownership, permissions, etc.)

The write permission grants the ability to modify a file. When set for a directory, this permission grants the ability to modify entries in the directory. This includes creating files, deleting files, and renaming files.

The execute permission grants the ability to execute a file. This permission must be set for executable binaries (for example, a compiled C++ program) or shell scripts (for example, a Perl program) in order to allow the operating system to run them. When set for a directory, this permission grants the ability to access file contents and metainfo if its name is known, but not list files inside the directory (unless read is set).

When a permission is not set, the rights it would grant are denied. Permissions on a Unix system (recommended for running a zen cart) are not inherited. Files created within a directory will not necessarily have the same permissions as that directory.

Read more about file permissions in the Wikipedia article.

Need help with your zen cart project? Contact the experts at Picaflor Azul with your project details for a quote.

Zen Cart What Does “Counter History for last 10 recorded days” Mean?

zen cart easy help tutorial

In the Zen Cart admin, the counter history for last 10 recorded days counts the first visits to your site from a unique browser session. It actually records and stores all the hit data from every day of the year, and this information will not disappear unless you manually delete it. However, only ten days worth of activity will show in the admin. The counter in the admin automatically updates itself as the days go by.

It should be noted that the counter is not able to tell the difference between someone visiting your site at 10:00 am, and returning at 4:00 pm on the same day. The counter will show this as a new session.

Why is the Zen Cart Counter History Important?

Unique visitors represents the number of people visiting your site for the first time. No matter how many pages they explore on your site, it counts only as one visit. The IP address, is stored in a statistics database as a single record. That record is counted as a Unique Visitor.

When that person returns several days later, the database is able identify them as a Repeat Visitor because the IP address is stored in the database. This is actually the more important statistic to pay attention to because it tells you there is something on your site that interested your visitors enough for them to return.

Website statistics are a valuable tool, and knowing the difference between hits and unique visitors gives you a better idea of what your visitors are looking for. Use this information to update your site and keep your visitors engaged with new content that they will find interesting.

For more information on counter history, read this Wikipedia article.

If you need free help with your zen cart, visit our support forum. We moderate and answer posts there daily.

Set the Zen Cart Downloads Controller Update Status Value

This step by step tutorial will show you how to set the downloads controller update status value in your zencart. This value is for what orders status resets the Ddwnload days and max Downloads. The default order status is 4.

This tutorial features the Piccadilly Posh zen cart template by Picaflor Azul. If you like it and want to use it for your project, you can download it for free here:

Piccadilly Posh by Picaflor Azul

In your admin go to Configuration –> Attribute Settings

zen cart easy help tutorials

Click on “Downloads Controller Update Status Value”, set the desired value, and click on the “update” button.

zen cart easy help tutorials

Why Sell Downloadable Products in Your Zen Cart

Selling digital products such as eBooks, PSD templates, WordPress themes, icons, etc. can be a great way to increase your income. There are lots of benefits to selling digital products. Selling digital products allows you to create a product once and sell it as many times as you like. With zen cart, buyers can get their digital product in an automatic download after purchase so you don’t have to take time to fulfill, package, ship, or manage orders. Their download link is available directly after they complete their purchase on the checkout success page, and in the order history section of the my account page. Customers will also receive an email with a link to the download button. You can set how many times a product can be downloaded once purchased and the number of days until the download link will expire. Digital products don’t have any raw material costs so your profit margin is much higher than with traditional physical goods.

Types of Downloadable Products You Can Sell in Your Zen Cart

  • Patterns for sewing/stitching/embroidery, etc.
  • Photography
  • Artwork
  • Clip Art
  • Recipes
  • eBooks
  • Tutorials
  • Templates
  • Graphics
  • Music
  • Videos

Read more about downloading files in the Wikipedia article.

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

Zen Cart Set the Number of Downloads Allowed Per Product

If you sell downloadable products, you will want to set the maximum number of times a customer can download any one product. Setting this number is important because it can help decrease the amount of theft of downloadable products. You don’t want someone to purchase a product and then post their account info with the download link all around the internet so that anyone who sees and uses their login info can download the product for free.

This step by step tutorial will show you how to set the number of downloads allowed per product in your zencart.

This tutorial features the Dover Fine zen cart template by Picaflor Azul. If you like it and want to use it for your zen cart project, you can download it for free here:

Dover Fine Zen Cart Template by Picaflor Azul

dover fine free zen cart template

Go responsive today with this incredible, fresh, zen cart template. We offer it free to the zen cart community so that you can use it for your ecommerce business. Please contact the professionals at Picaflor Azul if you need help installing the template or if you would like any customizations, modifications, or changes made to the template. This template is responsive, meaning that it has been optimized for viewing on desktops, laptops, landscape and portrait tablets, and portrait and landscape phones. Although it is free, it is packaged with tons of features that normally only come with paid templates or custom templates.

In your zen cart admin go to Configuration –> Attribute Settings.

attribute settings in menu

Click on “Number of Downloads Allowed – Per Product”, input the desired number, and click on the “update” button.

click on the update button

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

contact picaflor azul for a custom responsive zen cart design

picaflor azul responsive zen cart design

Zen Cart Set Download Expiration (Number of Days)

When you sell downloadable products, it is important to take as many steps as you can to ensure that your products are not stolen. One important step to protecting your products is to set the download expiration. The download expiration (in number of days) defines the number of days before the download link expires. 0 means no limit.

This step by step tutorial will show you how to set download expiration(number of days)in your zencart.

This tutorial features the Westminster New responsive zen cart template by Picaflor Azul. To use it for your zen cart project, download it for free:

Westminster New zen cart template by Picaflor Azul

Westminster New zen cart template by Picaflor Azul

This template features our new super quick and easy 3 step installation! There are no separate sql patches to run, no multiple upload directories. Just upload the template files included in the package, go to your admin and select the template, and then reset your sideboxes and the template installs itself. This shortened installation process makes it easy for even novice zen cart users to install their own responsive templates.

Another great feature is that the template is responsive. This means that customers who visit your site on their cell phones or tablets will be able to complete their purchase and navigate the site without having to leave your site and wait until they get to a desktop computer. This ability will increase your conversion rates and sales.

In your zen cart admin go to Configuration –> Attribute Settings.

zen cart attribute settings

Click on “Download Expiration (Number of Days)”, input the desired number of days, and click on the “update” button.

update buttom

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

contact picaflor azul

equation

Zen Cart Enable/Disable Download by Redirect

This step by step tutorial will show you how to enable of disable download by redirect in your zencart.

This tutorial features the Westminster New zen cart template by Picaflor Azul. If you like it and want to use it for your zen cart project, you can download it for free here:

Westminster New free responsive zen cart template by Picaflor Azul

westminster new zen cart template

This incredible zen cart template is one of our Next Gen responsive designs. Optimized for both desktop and mobile devices, the design is clean and modern, with a header coded specifically with the end user in mind. Navigation is easy and intuitive. The template comes with the following modules installed: Column Layout Grid, About Us Page, Back to Top, Responsive Flexslider, Carousel Featured Products, Bestsellers Thumbnails, Flexible Footer Columns Menu, Easy Responsive Tabs, DG Reveiws on Product Info Page, Contact Us Add Subject, and Left Slide Out Panel. Other features include:

  • Home page carousel for Featured Products
  • Add This social bookmarking added to all product pages (includes Facebook like button, Twitter Tweet Button, Pinterest Pin it button, and 300+ Sharing Services)
  • Custom footer featuring a footer menu with customer service, and useful links (ez pages), integrated, and links to your Facebook, Twitter, Youtube, Pinterest, Google Plus, and blog
  • Customized product info page layout
  • Tabbed product descrption, details, reviews, and a custom tab (ad your content using the banner manager) which converts automatically to accordions on hand held devices
  • Product reviews show on the product info page
  • “View All” option on the product listing pages
  • Easily modify the footer using the zen cart admin

In your zen cart admin go to Configuration –> Attribute Settings.

zen cart admin menu

Click on “Download by Redirect”, set to “true” or “false”, and click on the “update” button.

click on the update button

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

contact Zen Cart experts

zen cart plus picaflor azul equals success