Better Together Admin Page
Better Together Admin simplifies the process of adding discounts to
Better Together.
Background: See the
Zen Cart Matrix-o-discounts for a perspective on Better Together.
Relevance: Zen Cart™ 1.3.5 and forward. You must have JavaScript enabled in your browser.
Cost: $60
Current Version: 1.0
Support Thread: My commercial software is not supported on the Zen Cart forum. Please email me questions instead.
FAQ: click here
Installation: click here
Overview:
This pages assumes a basic familiarity with
Better Together.
Better Together is a very popular module, but many people
have told me they dislike need to edit a file in order to
add "linkages" (the term I used to describe associating
one product with another for the purpose of discounting).
So I created an admin page which allows you to add linkages in a way which will be familiar to
users of the Zen Cart admin system.
Better Together Admin Page
The page is broken into two areas: on the top, a list of existing
discounts, and on the bottom, a form to allow you to add new linkages
to create new discounts.
Discounts are listed in the order they were created. Discounts can currenly be deleted but not edited directly;
instead, to edit a discount, delete the existing one and create a new one.
Once you select a linkage type, the appropriate fields are filled in
for the first product or category and the second product or category.
For instance, in this example, the Linkage Type "A product and a category" (add_prod_to_cat) is selected.
The "Buy" dropdown is automatically populated with a complete list of
categories, with a list of products for the selected category, and the "Get" dropdown is automaticallly populated with a complete list of categories.
Choose the correct category, then the correct product within that category
for the "Buy" item. Then choose the correct category for the "Get" item.
Better Together Admin - Add a new linkage - step 1
You then select the discount units (% or $ off), fill in the amount,
and press "Submit."
Better Together Admin - Add a new linkage - step 2
The page refreshes, and you see your new linkage at the top of the list.
Better Together Admin - Add a new linkage - step 3
Prior to Installation:
- Upgrade to the latest Better Together first.
- Go into Admin -> Tools -> Store Manager, and click on "Reset ALL
Products Master Categories ID".
Installation Instructions:
- Back up everything! Try this in a test environment prior to installing
it on a live shop, and please be sure to upgrade to the latest Better Together first.
- Two zip files are provided. Unzip both, and copy the contents of the two unzipped folders to the root directory of your
shop.
- Run the bt_admin.sql file against your database.
- Edit the file
includes/modules/order_total/ot_better_together.php
In the setup() function at the bottom of the file, add the lines:
if (!IS_ADMIN_FLAG) {
require(DIR_WS_MODULES . 'better_together_admin.php');
}
You should delete all manually entered discounts here so that all your
discounts will be visible through the admin panel.
- Better Together Admin will now be available in the admin panel under Tools.
FAQ
Q: Why do all my categories not show up?
A: The definition of a "category" in Better Together is "the parent category
of a product." See
the
Category Issues page
for a discussion of the treatment of categories in my mods.
Q: Why do I have to enable Javascript to run the Better Together Admin Panel?
A: Because it uses AJAX, a Javascript based technology. This creates a
faster, more responsive user interface. If you do not enable Javascript in
your browser, you will see a flashing red error message at the top of the
page, and the Better Together Admin Panel will not operate.
I charge a fee of $60 for the Better Together Admin Page.
Want more Zen Cart?
Tips and Tricks
Contributions
Extensions
Custom Software
Newsletter