manufacturer discount

Manufacturer Discount

A Zen Cart™ discounting module for discounting the products of specific manufacturers.

Background: See the Zen Cart Matrix-o-discounts

Relevance: Zen Cart™ 1.3.7 - 1.3.9, 1.5.0

Current Version: 1.0

Cost: $60.00 Buy Now! (Note: this low price covers software only for self-installation)

Installed Cost: $120.00 (Professional installation by That Software Guy)

Installation Difficulty: Moderate

Installation Instructions: click here

Support Thread: My commercial software is not supported on the Zen Cart forum. Please email me questions instead.

Promotional Page Download: There is no promotional page with Manufacturer Discount; it comes with three promotional mechanisms built in.

FAQ: click here

Marketing Text: click here

Add-Ons:
Manufacturer Discounts is an order total module, so the discount is not visible until the second page of checkout. If you want to see the discount on the shopping cart page (or sidebox), look at Discount Preview.

Overview:

Manufacturer Discount permits a shop to discount the products of a specific manufacturer by %age.

The discounts themselves are entered into the admin panel using Admin->Catalog->Manufacturers in the "Discount" field under the Manufacturer's Name.

Configuration of Manufacturer Discount


The discount is shown on the second page of checkout by default:

Checkout Payment Information Page with Manufacturer Discount


However, using the Discount Preview module will allow you to show the discount on the shopping cart page.

Shopping Cart Page with Manufacturer Discount and Discount Preview




A Note on Taxes

(If you are not subject to a VAT and do not mix taxable and non-taxable products, please skip this section.)

The way taxes are handled internally in Zen Cart 1.x is that the entire tax amount is stored in the cart; the tax is not broken down on an item by item basis. For this reason, tax recalculation after discounting may not work perfectly if items which attract different levels of tax are in the cart - for example, taxable and non-taxable items. This issue is discussed in this forum post, and we are hopeful that Zen Cart 2.x will solve this problem.

Included Taxes and My Mods

This section is only relevant to Zen Carts which use "Display Prices with Tax" = true (in Admin->Configuration->My Store).

If your shop displays prices with tax included, you should configure my discounting mods to use Include Tax = true and set Re-Calculate tax to either "Standard" or "VAT" (depending on how taxes are handled in your jurisdiction).

There was a time when my software would gross up percentage discounts for tax but not currency based discounts. I decided to change this and handle both uniformly, so now (post April 2010) if you configure one of my discount mods to use include taxes = true, your discount will be grossed up whether it is a currency value or a percentage.


Detailed Description:

  1. Configuration
    Manufacturer Discount is installed through the Admin interface (Admin-> Modules->Order Totals->Table Discount).

    This is where the tax settings and sort order are configured.

    Once this is done, specific discounts are added to manufacturers using the Admin->Catalog->Manufacturers screen.
  2. Checkout Page User Interface
    Manufacturer Discount is an "Order Total" module, which means that by default, the discount is not shown until the second page of checkout (Payment Information). However, using the Discount Preview module will allow you to show the discount on the shopping cart page.

    Depending on your configuration, the second page of checkout will look something like this:

    Checkout Payment Information Page with Manufacturer Discount


Installation Instructions:

  1. Back up everything! Try this in a test environment prior to installing it on a live shop.
  2. Unzip the file you have received.
  3. Merge the files below with what you have in your cart. NOTE that these files assume your template name is "custom," so any file with "custom" in its name will need to be renamed if you are using a different template name.
  4. Run the script discount.sql against your database using your Admin panel under Admin->Tools->Install SQL patches. NOTE: this provides for integer (whole number) discounts like 25%. If you want floating point discounts (e.g. 25.8%), see the faq for instructions.
  5. Product Info Page - Copy the file includes/templates/template_default/templates/tpl_product_info_display.php to includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php if it is not already there. Above the first line of HTML, add these lines:
    <!-- bof Manufacturer Discount Marketing --> 
    <?php 
    require($template->get_template_dir('/tpl_manufacturer_discount_marketing.php',DIR_WS_TEMPLATE, 
       $current_page_base,'templates'). '/tpl_manufacturer_discount_marketing.php');
    ?>
    <!-- eof Manufacturer Discount Marketing --> 
    
  6. Manufacturer listing page - Copy the file includes/templates/template_default/templates/tpl_index_product_list.php to includes/templates/YOUR_TEMPLATE/templates/tpl_index_product_list.php if it is not already there. Above the first line of HTML, add these lines:
    <!-- bof Manufacturer Discount Listing --> 
    <?php 
    require($template->get_template_dir('/tpl_manufacturer_discount_listing.php',DIR_WS_TEMPLATE, 
       $current_page_base,'templates'). '/tpl_manufacturer_discount_listing.php');
    ?>
    <!-- eof Manufacturer Discount Listing --> 
    
  7. Centerbox on main page - Copy the file includes/templates/template_default/templates/tpl_index_default.php to includes/templates/YOUR_TEMPLATE/templates/tpl_index_default.php Above the lines that say
    <?php
      $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
    
    add these lines:
    <!-- bof Manufacturer Discount Centerbox --> 
    <?php
    require($template->get_template_dir('tpl_modules_manufacturer_discount.php',DIR_WS_TEMPLATE, 
           $current_page_base,'templates'). '/tpl_modules_manufacturer_discount.php');
    ?>
    <!-- eof Manufacturer Discount Centerbox --> 
    
  8. In Admin->Modules->Order Total, select Manufacturer Discount and press the Install button on the right hand side.
  9. Go to Admin->Catalog->Manufacturers, and start setting your discounts.


Marketing

What good is having cross selling and upselling specials if you don't advertise them?

Manufacturer Discount may be automatically displayed in three places: on the product info page, on the manufacturer listing page, and on the home page. Instructions for each of these marketing template changes are provided as part of the installation file.

The product info page has a small text banner indicating the manufacturer discount as shown below.

Product Info Page with Manufacturer Discount


The manufacturer listing page uses a similar type of display box. The manufacturer listing page is what is displayed when someone clicks on the Manufacturers Sidebox (added to your page using Admin->Tools->Layout Boxes Controller.)

Manufacturer Listing Page with Manufacturer Discount


And finally, the home page shows a centerbox listing the manufacturers which are on sale, along with their images. (If you use this marketing template change, you must add images for the manufacturers you are discounting.)

Manufacturer Listing Page with Manufacturer Discount


Major Versions

  • 1.0 11/05/2011 - Update to Zen Cart 1.5 (No functional changes)
  • 1.0 05/01/2011 - First Release

FAQ

Q: Don't Big Chooser and Table Discounts already do manufacturer based discounting?
A: Yes, but both of them require PHP scripting to configure, whereas Manufacturer Discount works using your existing Zen Cart Admin interface.

Q: Instead of round numbers, I would prefer decimal number discounts for Manufacturer Discount. What should I do? A: To get decimal numbers instead of integer number discounts, use the following command in your Zen Cart admin panel under Admin->Tools->Install SQL Patches:

ALTER TABLE manufacturers MODIFY COLUMN discount decimal(15,2) default '0.00';

Q: I can't seem to get Manufacturer Discount to work. What am I doing wrong?
A: Please check the following things:
  • Go to Admin->Modules->Order Total. Do you see Manufacturer Discount? If not, then you haven't installed it. Follow the README.
  • If you do see it, the circle at the right hand end of the row for Manufacturer Discount should be green. If it's not green, reinstall it.
  • Re-read my Guide to Mod Installation on Zen Cart.

I charge a fee of $60 for Manufacturer Discount. The fee covers software only; installation is extra if you require help.



Want more Zen Cart?     Tips and Tricks     Contributions     Extensions     Custom Software     Newsletter

Terms | Privacy | SiteMap | Newsletter | Contact Me | Contents © 2003-2011 That Software Guy, Inc.
Zen Cart Project Home Page | Zen Cart Forum | Zen Cart™ is © Zen Ventures, LLC.