Zen Cart Configuration Settings eBook


Zen Cart Configuration Settings eBook

My Zen Cart Configuration Settings eBook allows you to see all the configuration and layout settings in Zen Cart in one searchable place.  Buy my Zen Cart configuration e-book.  It is sure to save you time, and it’s only $5!

 

 

 

  • Covers all 26 native Zen Cart configuration groups, plus one hidden group you might not know about.
  • Over 50 pages long.
  • Preview available.

Zen Cart Edit Orders and my Discounting Mods

Recent versions of Zen Cart Edit Orders (4.3.1, for example) will get the wrong total for orders using my discounting mods (such as Better Together) when they edit an order.   The order is too low by the amount of the tax on the discount.  For example, at a tax rate of 7%, a discount of $25 would produce an order total that was $1.75 too low – for example, $506.50 instead of $508.25.

The fix is to change the function process() in the code file in includes/modules/order_total (e.g. includes/modules/order_total/ot_quantity_discount.php for Quantity Discounts) as follows:

  
if ($this->calculate_tax != 'VAT') {
     $order->info['total'] -= $od_amount[$key];
}

to

               
if (!IS_ADMIN_FLAG) {
   if ($this->calculate_tax != 'VAT') {
      $order->info['total'] -= $od_amount[$key];
   }
}

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.

Zen Cart Discount Chooser now has Group Support

Zen Cart Discount Chooser has had some new features added at the request of customers:

  • Add Group Selection per discount
  • Allow the order of sort for discounted-item selection to be changed
  • Allow some items to be marked as “preferred discounted items.

Discount Chooser is now an even *more* powerful way to create “Buy <n> get <m>” style discounts!