The Cart Blog

Saturday, June 1, 2013

Zen Cart Better Together now supports One to Many linkages

Filed under: Discounting,That Software Guy,Zen Cart — thatsoftwareguy @ 8:19 pm

One to Many is a new feature in Better Together 2.5. It is best explained by example. Suppose you have the following discount structure:

      $this->add_prod_to_prod(27, 3, "%", 50);
      $this->add_prod_to_prod(27, 25, "%", 50);

Where 27 is the HP LaserJet Printer, 3 is the Mouse, and 25 is the keyboard.

Now suppose you have 1 product 27, and 2 product 3 and 2 product 5 in your cart.

The way Better Together has always worked is as follows: it would run the first rule, see that item 27 was in the cart, see that item 3 was in the cart, and discount item 3. Now item 27 would no longer be permitted for use in discounts, and that would be the end of the discount.

This is shown, using Discount Preview, by the following screenshot. Note that the discount is $20.00, 50% of the the price of the mouse (item 3).

Better Together One to Many = 0 (Classic Mode)

Better Together with One to Many = 0

Some people wanted the option of discounting both item the mouse and keyboard, even though there was only one printer in the cart. In Better Together 2.5, this can be done by setting the configuration option One to Many to 1 (in Admin->Modules->Order Total->Better Together). Note that the discount is now $54.99, which is half the price of the mouse (item 3) and the keyboard (item 27) combined.

Better Together One to Many = 1

Better Together with One to Many = 1

And finally, some people wanted unlimited mice and keyboards to be discounted, which can be done by setting One to Many to 2 (in Admin->Modules->Order Total->Better Together). Note that the discount is now $109.98, which is half off the price of two each of the mouse and the keyboard.

Better Together One to Many = 2

Better Together with One to Many = 2

Note: If you were running Better Together 2.4 or older and you download version 2.5 or higher, you must go to Admin->Modules->Order Total and Remove and Re-Install Better Together to get access to this feature.

Wednesday, May 1, 2013

Zen Cart Manufacturer Discount now has a Promotional Page!

Filed under: That Software Guy,Zen Cart — thatsoftwareguy @ 2:55 pm

Most of my discounting modules have “Promotional Pages” – specially built pages that list all the discounts, which can be linked to from the Information Sidebox (or any other sidebox or area on your Zen Cart page).  But because Manufacturer Discount already had several built-in promotional options – marketing text on the product info page,  a centerbox feature – I didn’t think a promotional page was truly needed.  Well, I changed my mind and added the promotional page!

You can read more about Promotional Pages for all my Zen Cart discounting modules, or if you’re a Manufacturer Discount user, you can just grab the new Manufacturer Discount Promotional Page.

Monday, April 29, 2013

Using the admin name “admin” in Zen Cart 1.5.x

Filed under: That Software Guy,Zen Cart — Tags: — thatsoftwareguy @ 7:08 pm

*** Warning: This is only suitable for use on your own computer for test carts which are not on the public Internet.   Actual live carts which are in production should abide by the forced rename so the URL to your admin is not known or easily guessed. ***

If you want to use the admin URL “admin” in Zen Cart 1.5.x, it’s a pretty simple change.  Edit the file

admin/includes/init_includes/init_admin_auth.php

and  insert the following line above line 12:

define('ADMIN_BLOCK_WARNING_OVERRIDE', '1');

That’s all!

Sunday, April 21, 2013

Testing out my Zen Cart Admin Mods

Filed under: That Software Guy,Zen Cart — thatsoftwareguy @ 10:38 am

On my Admin Demo Shop site, you can login (userid: test / password: test) and test the following admin mods:

Login here using test/test

osCommerce user? Don’t worry – the osCommerce version of the Better Together Admin panel has the same look and feel as the Zen Cart version.

Tuesday, April 16, 2013

Better Together Admin for osCommerce

Filed under: osCommerce,That Software Guy — thatsoftwareguy @ 2:17 pm

Are you tired of having to hand code in discounts in Better Together for osCommerce?   Well I have news for you – you don’t anymore!  The Better Together Admin Panel for osCommerce is now ready.  It works on osCommerce 2.2 and 2.3, and it’s only $60.  Paypal to help@thatsoftwareguy.com along with your cart URL and osCommerce version to get started!

Here’s a screenshot:

osc_bt_admin

Once you select the linkage type, the two drop down menus populate accordingly (with categories or products).

Once that’s complete, your discount is ready to use in your cart!

Monday, April 15, 2013

My Zen Cart discounts with different taxes for shipping vs products

Filed under: That Software Guy,Zen Cart — thatsoftwareguy @ 8:49 pm

Different rates of tax for shipping

This is an uncommon situation, but it may apply to you if you are from British Columbia, Canada.

If you have taxable shipping but the tax rate is different than it is for products, you’ll need to make some code changes. Firstly, be sure your descriptions for shipping taxes include an easily identifiable string such as “on shipping”
Tax Rates in Zen Admin

Then, in the discount module you use, skip over this tax when computing the updated amount of tax.

Here is a block of logic from Quantity Discounts 1.11. (Newer versions may look different.)

       switch ($this->calculate_tax) {
       case 'Standard':
          reset($order->info['tax_groups']);
          while (list($key, $value) = each($order->info['tax_groups']))
          {

             if (strpos($key,"on shipping") !== false) {
                continue;
             }

             $tax_rate = zen_get_tax_rate_from_desc($key);
             if ($tax_rate > 0) {
                $od_amount[$key] = $tod_amount = round((($od_amount['total'] * $tax_rate)) /100, 2) ;
                $od_amount['tax'] += $tod_amount;
             }
          }
          break;

Here is a block of logic from Big Chooser 1.2.16. (Newer versions may look different.)

       switch ($this->calculate_tax) {
       case 'Standard':
          reset($order->info['tax_groups']);
          $taxGroups = array_keys($order->info['tax_groups']);
          foreach ($taxGroups as $key )
          {

             if (strpos($key,"on shipping") !== false) {
                continue;
             }

             $tax_rate = zen_get_tax_rate_from_desc($key);
             if ($tax_rate > 0) {
                $od_amount[$key] = $tod_amount = round((($taxable_amount  * $tax_rate)) /100, 2) ;
                $od_amount['tax'] += $tod_amount;
             }
          }
          break;

Sunday, April 7, 2013

Multiple VAT Levels and my Zen Cart discounts

Filed under: Discounting,osCommerce,Taxes,That Software Guy,Zen Cart — thatsoftwareguy @ 7:32 am

Every once in a while, a European customer complains that tax recalculation in my Zen Cart mods is not working correctly for their store with multiple levels of embedded taxes.  (This is also an issue in osCommerce.)

Here’s what to look for: non-unique strings in the descriptions of taxes (this is shown in Admin->Locations/Taxes->Tax Rates)

sv_taxes_before

Because of the way Zen Cart (and osCommerce) represent taxes in the order object, the tax descriptions must be unique to allow for reverse lookups.  So try changing the strings “Varav moms” to “Varav moms (1),” “Varav moms (2),” etc. to make them unique.

Saturday, April 6, 2013

Zen Cart Discount Preview

Filed under: Discounting,That Software Guy,Zen Cart — thatsoftwareguy @ 8:40 am

I’ve been collecting some nice screenshots of people using Discount Preview with their Zen Cart based stores.  I’m trying to get one for each of my 10 main discounting modules.

Tuesday, April 2, 2013

Zen Cart Manufacturer Discount

Filed under: Discounting,That Software Guy,Zen Cart — thatsoftwareguy @ 8:12 pm

Zen Cart Manufacturer Discount now supports the user exits exclude_category() and exclude_product(), making it easy for you to have a manufacturer discounting policy, but also have specific exclusions.

Monday, April 1, 2013

Case Discounts for Zen Cart

Filed under: Discounting,That Software Guy,Zen Cart — thatsoftwareguy @ 7:27 pm

Case Discounts is a new Zen Cart module which permits you to set a per product case size and associated discount. It’s like tiered pricing in Table Discounts, with an admin panel.

« Newer PostsOlder Posts »

Powered by WordPress