CSS Button Fixes for Zen Cart Buy Both Now and Buy The Set

When I created Buy Both Now and Buy The Set for Zen Cart, I never took account of the possibility that templates would use the CSS buttons feature, which is available in Admin->Configuration->Layout Settings.

I have updated the help for these mods to show how they can be adopted to use CSS buttons too.  It’s easy – for Buy Both Now, just modify

includes/functions/extra_functions/checkbbn_pi.php

and change

$bbn_string_end = '<input type="image" src="' . $button . '" alt="Buy both now" title="Buy both now" /></form>'; 

to

$bbn_string_end = "  " . zen_image_submit($image, "Buy Both Now") . "</form>"; 

and similarly, for Buy the Set, just modify

includes/functions/extra_functions/checkbts_pi.php

and change

$bts_string_end = '<input type="image" src="' . $button . '" alt="Buy the set" title="Buy the set" /></form>'; 

to

$bts_string_end = "  " . zen_image_submit($image, "Buy the set") . "</form>"; 

Zen Cart AutoBackup

Backups are important, but who wants to do them manually? Zen Cart AutoBackup automates the process, so you can rest easy knowing your backups are taken care of.

AutoBackup uses your hosting service’s cron facility, so it runs without any manual intervention needed.  You can set retention periods for backups so that a certain number are kept for every daily backup, every weekly backup and every monthly backup.

Shipworks and Zen Cart 1.5.5

You’ll need to make a change to

admin/shipworks3.php

to get ShipWorks working in Zen Cart 1.5.5.  Remove their copy of the function

validatePassword()

and replace it with

function validatePassword($plain, $encrypted)

{

  $zcPassword = zcPassword::getInstance(PHP_VERSION);

  return $zcPassword->validatePassword($plain, $encrypted);

}
 This issue has been reported to ShipWorks.

KitBuilder for Zen Cart

More options for you to sell a bundle and make a bundle! My new Kitbuilder for Zen Cart module is the latest entry in my series of Zen Cart Bundling options. KitBuilder allows you to build “kits” of related products (without attributes), which are all sold together with a single click. Kitbuilder even comes with a kit marketing plugin that allows you to show off your kits in a centerbox on your home page.

Zen Cart Frequency Discounts Updated for Edit Orders Interoperability

I have provided Edit Orders Integration patches for most of my Zen Cart mods, but for some reason, I just never did Frequency Discounts.  It could be that I just thought it was working properly.

But the good folks at nailessentialz pointed out a problem: if you edit an order placed before today, the lookback period should begin and the point of the order, not at the current date. (This would be relevant for stores that set a lookback period units value of “Days”, “Weeks” or “Months”, rather than “All.”)

For example, if the current day is September 12, and the Lookback Period Units is “Days” and the Period Count is “10”, for an order placed on Aug 27 20:43:50, the lookback window is from Aug 17 20:43:50 to Aug 27 20:43:50.  The old code would have computed the lookback window as September 2 – September 12.