Strange, that solutions works here:
https://ventureengravings.uk/index.p..._page=site_map
but not here:
https://venturegraphicdesign.uk/inde..._page=site_map
HELP!!!!
Printable View
Strange, that solutions works here:
https://ventureengravings.uk/index.p..._page=site_map
but not here:
https://venturegraphicdesign.uk/inde..._page=site_map
HELP!!!!
I recently ran into a roadblock installing an Order Total module (Shipping Insurance - ot_insurance - 3.3.0 from Numinix - 2.3.2 from the addons is similar) on ZC 1.5.6c PHP 7.1.29 on XAMPP. The checkbox for the customer to select/deselect insurance is NOT visible. It is present in the HTML:
I've chased this enough to be quite sure that it has to do with the template and its interactions with Order Total modules (probably also payment and shipping). Shipping is just an example module. I'm not sure how many others, if any, have checkboxes for customer selection.Code:<!--bof discount coupon card-->
<div id="discountCoupon-card" class="card mb-3">
<h4 id="discountCoupon-card-header" class="card-header">
Shipping Insurance</h4>
<div id="discountCoupon-card-body" class="card-body p-3">
<p>Click here to add optional insurance to your order:</p>
<div id="discountCoupon-gvBal"></div>
<label class="inputLabel" for="opt_insurance">$7.10</label>
<input class="custom-control-input" type="checkbox" name="opt_insurance" value="1" id="opt_insurance" /><input type="hidden" name="insurance" value="1" /></div>
</div>
<!--eof discount coupon card-->
I'm not sure what to do to get the checkbox to appear. Suggestions?
Maybe try this:
Code:<div class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" name="formfieldnamehere" value="1" id="nameTheInputIdHere">
<label class="custom-control-label" for="nameTheInputIdHere" title="help msg here">Text In Browser Here</label>
</div>
Thanks. I added code to includes/templates/CUSTOM/templates/tpl_checkout_payment_default.php to do this for checkboxes.
From:To:Code:<!--bof discount coupon card-->
<div id="discountCoupon-card" class="card mb-3">
<h4 id="discountCoupon-card-header" class="card-header">
<?php echo $selection[$i]['module']; ?></h4>
<div id="discountCoupon-card-body" class="card-body p-3">
<?php echo $selection[$i]['redeem_instructions']; ?>
<div id="discountCoupon-gvBal"><?php echo (isset($selection[$i]['checkbox'])) ? $selection[$i]['checkbox'] : ''; ?></div>
<label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
<?php echo $selection[$i]['fields'][$j]['field']; ?>
</div>
</div>
<!--eof discount coupon card-->
It made more sense to me to do this rather than modifying the Order Total add-on since it's specific to the current template.Code:<!--bof discount coupon card-->
<div id="discountCoupon-card" class="card mb-3">
<h4 id="discountCoupon-card-header" class="card-header"><?php echo $selection[$i]['module']; ?></h4>
<div id="discountCoupon-card-body" class="card-body p-3">
<?php
echo $selection[$i]['redeem_instructions'];
if (strpos($selection[$i]['fields'][$j]['field'], 'type="checkbox"') === false) { // filter out checkboxes
if (isset($selection[$i]['checkbox'])) {
?>
<div id="discountCoupon-gvBal"><?php echo $selection[$i]['checkbox']; ?></div>
<?php
}
?>
<label class="inputLabel"<?php echo isset($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
<?php
echo $selection[$i]['fields'][$j]['field'];
} else { // process checkboxes
?>
<div class="custom-control custom-checkbox">
<?php echo $selection[$i]['fields'][$j]['field']; ?>
<label class="custom-control-label"<?php echo isset($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
</div>
<?php
}
?>
</div>
</div>
<!--eof discount coupon card-->
additional_images.php is missing:
on line 16PHP Code:
$GLOBALS
Bootstrap version of additional_images.php
Default Zen Cart 1.5.6c version of additional_images.phpPHP Code:
$zco_notifier->notify('NOTIFY_MODULES_ADDITIONAL_PRODUCT_IMAGES_START');
Is there a reason for this? Or is it just an error in the code?PHP Code:
$GLOBALS['zco_notifier']->notify('NOTIFY_MODULES_ADDITIONAL_PRODUCT_IMAGES_START')
Love this template!
Is there a way to make products display as rows instead of columns though?
Thanks!
C
Would also love to center the links in the center footer bar, cant find where this is called out or contained in php or css
Last question. When you click into a product from the category, the price is not displayed - only the add to cart button.
I swapped it over to responsive classic, and the price displayed like normal which leads me to believe its a templating issue.
Help?