Recalculating Free Shipping after a discount in Zen Cart

Periodically, the question is asked on the Zen Cart forum, “how can I set the Zen Cart Free Shipping threshold based on the Total AFTER all discounts and coupons have been applied?”

This can be done but there are a lot of variables involved.  (If it was a simple mod, I’d package it up as a simple mod!)  So I offer it as a service.  It’s called Free Shipping Recalculation.  It recomputes your free shipping threshold based on the subtotal after discounts.

Free Shipping Recalculation works, whether you are using Admin->Modules->Shipping->Free Shipping Options or Admin->Modules->Order Totals>Shipping to set your free shipping threshold.

Testing out my new WordPress Plugin

I just created a new WordPress plugin called Zen Cart Product Display.  Giving it a try right now with OpenCart Discount Chooser:

OpenCart Discount Chooser

Discount Chooser simplifies the process of creating discounts based on items in the cart. You can create buy one, get one at a discount, buy two get one at a discount, or buy get a choice of at a discount. Item specification may be done by category or by product.

If you want offers involving more than just two items, Discount Chooser is a better option for your OpenCart based store than Better Together. An example of this would be "buy two, get one free."

Including a file in a PHP class

I was trying to figure out how I could manage the premium logic for my freemium Better Together for OpenCart module.  You can’t just require a block of code in the middle of a PHP Class:

class SomeClass {  
  // NOT ALLOWED! 
  premium_file = "premium.php";
  if (file_exists($premium_file)) {
    require($premium_file);
  }

So I cooked up another method that I documented in this StackOverflow post about how to include code into a PHP class.

 

Better Together Admin for OpenCart

Better Together Admin for Opencart, the web based configuration UI for OpenCart Better Together, has just been released.

Better Together Admin allows you to easily create “buy one, get one” discounts for your OpenCart based store.  And it works right through your regular admin panel; no need to edit code to create the discounts.  Here’s a video:

OpenCart Discount Chooser Released!

I have released Discount Chooser for OpenCart (a port of the Discount Chooser / Free Gift Chooser algorithm from Zen Cart). I’m excited about this software and hope it really helps OpenCart store operators.

Discount Chooser goes beyond the standard BOGO discounts to permit the creation of much broader offers.  For example, you can create “Buy 2, get 1”, “Buy 3 get 1,” or “Buy some number, get a choice of some number.”

Here’s a video if you haven’t seen it yet:

 

You may buy OpenCart Discount Chooser from my store, or if you prefer, you may buy OpenCart Discount Chooser on the OpenCart Marketplace.