Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
carlwhat
oh my....
saving a database query?
in YOUR_TEMPLATE/templates/tpl_index_categories.php
one can find the following code and make said change:
PHP Code:
//from
<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>
//to
<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, $current_categories_name, SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>
in bootstrap:
PHP Code:
//from
<div id="indexCategories-categoryImage" class="categoryImage">
<?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?>
</div>
//to
<div id="indexCategories-categoryImage" class="categoryImage">
<?php echo zen_image(DIR_WS_IMAGES . $categories_image, $current_categories_name, SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?>
</div>
best.
Thanks Carl. It worked perfectly. In my particular case, I made the changes in YOUR_TEMPLATE/templates/tpl_index_product_list.php.
Re: ZCA Bootstrap 4 Template [Support Thread]
In Zen Cart 1.5.8a with Bootstrap 3.7.0 I have a floating "Add to cart"-button. The product listing scrolls under the button.
Float the Add Selected to Cart button in the Bootstrap settings is set to "Always".
Display Product Add to Cart Button is set to 1, Display Multiple Products Qty Box Status and Set Button Location is set to 3. Both settings are in Product Listing.
With Zen Cart 2.1.0 and Bootstrap 3.7.4 I can not replicate this floating button. There is only a link "Add to cart" which does not even look like a button.
How can I set the floating button behaviour?
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
todoonada
In Zen Cart 1.5.8a with Bootstrap 3.7.0 I have a floating "Add to cart"-button. The product listing scrolls under the button.
Float the Add Selected to Cart button in the Bootstrap settings is set to "Always".
Display Product Add to Cart Button is set to 1, Display Multiple Products Qty Box Status and Set Button Location is set to 3. Both settings are in Product Listing.
With Zen Cart 2.1.0 and Bootstrap 3.7.4 I can not replicate this floating button. There is only a link "Add to cart" which does not even look like a button.
How can I set the floating button behaviour?
You've got all the 'right' settings. A link (sent via PM if you don't want it publicly displayed) would help see what's going on.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
You've got all the 'right' settings. A link (sent via PM if you don't want it publicly displayed) would help see what's going on.
I found the reason. When I changed the language to English to make a screenshot for you (I only got this Zen Cart running locally), it worked correctly. When I shortened the Japanese text, it was OK. The original Japanese text was too long.
I changed function zen_image_submit in includes/functions/html_output.php line 304
from
PHP Code:
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30)
to
PHP Code:
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && mb_strlen($alt)<30)
Now it works.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
todoonada
I found the reason. When I changed the language to English to make a screenshot for you (I only got this Zen Cart running locally), it worked correctly. When I shortened the Japanese text, it was OK. The original Japanese text was too long.
I changed function zen_image_submit in includes/functions/html_output.php line 304
from
PHP Code:
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30)
to
PHP Code:
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && mb_strlen($alt)<30)
Now it works.
Was the Japanese text different in the zc210 install than in the zc158a one? That function hasn't changed in many, many years.
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
lat9
Was the Japanese text different in the zc210 install than in the zc158a one? That function hasn't changed in many, many years.
Yes, my text was.
Re: ZCA Bootstrap 4 Template [Support Thread]
v3.7.5 of the template is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2191
This release contains corrections for these GitHub issues:
#463: Correct comments in products-all/new page headers.
#459: Indicate to zc210's Layout Boxes Controller that the template doesn't support mobile sideboxes.
#454: Correct 3-page checkout country-selection is reset on form errors.
#462: Correct PHP Deprecation in tpl_columnar_display_carousel.php.
#466: Correct shopping-cart update "not working" on specific configuration.
Re: ZCA Bootstrap 4 Template [Support Thread]
Zen 2.1.0 PHP 8.3
Bootstrap 3.7.4
No other mods
The search header is on & displaying in the header correctly, but also in the right column.
~Melanie
Re: ZCA Bootstrap 4 Template [Support Thread]
Quote:
Originally Posted by
mprough
Zen 2.1.0 PHP 8.3
Bootstrap 3.7.4
No other mods
The search header is on & displaying in the header correctly, but also in the right column.
~Melanie
Do you also have the search sidebox enabled in the right column?
Re: ZCA Bootstrap 4 Template [Support Thread]