lat9 / ZCA-Bootstrap-Template

A Bootstrap-4 template for Zen Cart versions 1.5.8 through 2.1.0. Forked from https://github.com/zcadditions/ZCA-Bootstrap-Template-for-1.5.6-v2.0.0c. See the demo site, below, for additional information.
https://zc158.vinosdefrutastropicales.com/zc158/index.php?main_page=index
GNU General Public License v3.0
4 stars 14 forks source link

Update tpl_checkout_payment_default.php #387

Closed brittainmark closed 5 months ago

brittainmark commented 5 months ago

Correct warning message : --> PHP Warning: Undefined variable $comments_heading in /home/lotus/public_html/innerlightcrystals/sales/includes/templates/bootstrap/templates/tpl_checkout_payment_default.php on line 251.

scottcwilson commented 5 months ago

I fixed this with a change right above the block you are changing:

<?php
      $comments_heading = (defined('HEADING_ORDER_COMMENTS')) ? HEADING_ORDER_COMMENTS : TABLE_HEADING_COMMENTS;
?>
lat9 commented 5 months ago

This was introduced when support for ZC versions prior to 1.5.8 was dropped; HEADING_ORDER_COMMENTS is the zc158+ definition.

lat9 commented 5 months ago

Correction for #388.