Zen Follower
- Join Date:
- Oct 2007
- Posts:
- 414
- Plugin Contributions:
- 0
Views: 545,493
Zen Follower
Administrator
There were two sections (one for the heading and one for the content) where that PHP conditional was removed. It looks like you got only one.
Zen Follower
I did delete line 73 - 75, 77 - 79 and also 118 - 120 and 122 -124. Is there more than that?
Administrator
DML73:
I did delete line 73 - 75, 77 - 79 and also 118 - 120 and 122 -124. Is there more than that?
Please pull the entire file from that commit:
I'm thinking that some modification you'd made is affecting that display.
Zen Follower
Ah yes that worked, I must have missed something. Thanks a lot.
Totally Zenned
PHP 8.3/ZC 2.1.0/Bootstrap 3.7.4
Is there a neat way to force the template to use the "Bootstrap Template Additional Images Carousel" for all images?
Currently if I have four images and click "Larger Image", ZC will show only the main/primary image in the popup modal but if I click "Additional Images" it shows all four. What I would like to do is instead ALWAYS use the additional images carousel instead.
Administrator
retched:
PHP 8.3/ZC 2.1.0/Bootstrap 3.7.4
Is there a neat way to force the template to use the "Bootstrap Template Additional Images Carousel" for all images?
Currently if I have four images and click "Larger Image", ZC will show only the main/primary image in the popup modal but if I click "Additional Images" it shows all four. What I would like to do is instead ALWAYS use the additional images carousel instead.
Not that I've seen before, but it's code ... so most anything is possible.
Totally Zenned
Not entirely convince it is Bootstrap template related but I am getting an odd alt title for category image.
The alt title being generated is " a generic image". Why?
I thought the category name would be applied to the category image alt title.
Example page can be seen here https://www.royal-fleur.com/valentines-day-flowers
Any suggestions?
Thank you
Administrator
nicksab:
Not entirely convince it is Bootstrap template related but I am getting an odd alt title for category image.
The alt title being generated is " a generic image". Why?
I thought the category name would be applied to the category image alt title.
Example page can be seen here https://www.royal-fleur.com/valentines-day-flowers
Any suggestions?
Thank you
That's standard Zen Cart handling for the main category image; no different than responsive_classic.
That saves a database query to retrieve the category's name, other than that the Bootstrap template will be updated if the base Zen Cart makes such a change.
zennedOut
lat9:
That's standard Zen Cart handling for the main category image; no different than responsive_classic.
That saves a database query to retrieve the category's name, other than that the Bootstrap template will be updated if the base Zen Cart makes such a change.
oh my....
saving a database query?
in YOUR_TEMPLATE/templates/tpl_index_categories.php
one can find the following code and make said change:
//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:
//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.
Totally Zenned
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:
//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 //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.
Zen Follower
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?
Administrator
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.
Zen Follower
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
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30)
to
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && mb_strlen($alt)<30)
Now it works.
Administrator
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
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30)
> to
> ```php
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.
Zen Follower
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.
Administrator
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.
Totally Zenned
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
PRO-Webs, Inc. since 2003 https://pro-webs.net/
Administrator
mprough:
Zen 2.1.0 PHP 8.3
Bootstrap 3.7.4
No other modsThe 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?
Totally Zenned
No It's not
PRO-Webs, Inc. since 2003 https://pro-webs.net/
Tell staff why this post should be reviewed.