Re: Responsive Apparel Boutique Template
Great template - thanks!
Just installed it on a client's site (locally only at this stage).
When I access the site locally from my Samsung Galaxy S3 and I am logged in as a customer, me thinks that the 'Login' link should be replaced by either 'My Account' or 'Log Out' or both. However, the link that reads 'Login' is still there and it leads me to the 'My Account' page.
On my desktop all is fine and dandy, I am logged in and the 'Login' link is replaced by 'Log Out' and 'My Account' (as it should).
Am I missing something or has the coding for the mobile access template gone astray?
Hope I am not making a fool out of myself (would not be for the first time... :no:)
Cheers / Frank
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
frank18
Great template - thanks!
Just installed it on a client's site (locally only at this stage).
When I access the site locally from my Samsung Galaxy S3 and I am logged in as a customer, me thinks that the 'Login' link should be replaced by either 'My Account' or 'Log Out' or both. However, the link that reads 'Login' is still there and it leads me to the 'My Account' page.
On my desktop all is fine and dandy, I am logged in and the 'Login' link is replaced by 'Log Out' and 'My Account' (as it should).
Am I missing something or has the coding for the mobile access template gone astray?
Hope I am not making a fool out of myself (would not be for the first time... :no:)
Cheers / Frank
This is a bug with the template. Thank you so much for catching it! If you add the if statement to the includes/templates/responsive_apparel_boutique/templates/tpl_modules_mobile_category_tabs.php file, it will work like on the large device. I will be sure to add this to the list of items to be included in the next package update.
Code:
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?> <?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
Thanks,
Anne
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
picaflor-azul
This is a bug with the template. Thank you so much for catching it! If you add the if statement to the includes/templates/responsive_apparel_boutique/templates/tpl_modules_mobile_category_tabs.php file, it will work like on the large device. I will be sure to add this to the list of items to be included in the next package update.
Thanks Anne, much appreciated
Frank
Re: Responsive Apparel Boutique Template
I tried your suggested code but ended up replacing line 26 of includes/templates/responsive_apparel_boutique/templates/tpl_modules_mobile_categories_tabs.php
Code:
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
with this (simplified) piece of code
Code:
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php } else { if (STORE_STATUS == '0') { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
which gave me the desired result.
I updated my copy of your template file with the above code for future use.
Cheers / Frank
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
frank18
I tried your suggested code but ended up replacing line 26 of includes/templates/responsive_apparel_boutique/templates/tpl_modules_mobile_categories_tabs.php
Code:
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
with this (simplified) piece of code
Code:
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php } else { if (STORE_STATUS == '0') { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
which gave me the desired result.
I updated my copy of your template file with the above code for future use.
Cheers / Frank
Ok, great :) Thanks for posting your solution.
Thanks,
Anne
Re: Responsive Apparel Boutique Template
Once again Anne it is another great piece of work. Everything seems to work pretty good. Just a couple things going on and I am kind of lost. Maybe you can enlighten me of the error of my ways.
1) I no longer have any popup images working on my site.
2) screen resolution does not seem to resize down as it should. Did I miss a setting somewhere?
The website is www.cowboyway.info
Thanks in advance
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
thefather
Once again Anne it is another great piece of work. Everything seems to work pretty good. Just a couple things going on and I am kind of lost. Maybe you can enlighten me of the error of my ways.
1) I no longer have any popup images working on my site.
2) screen resolution does not seem to resize down as it should. Did I miss a setting somewhere?
The website is
www.cowboyway.info
Thanks in advance
I am happy that you like the template ;)
There is a bug in the tpl_header.php file that is causing the responsiveness to break. It happens when you remove the tagline. In the includes/templates/responsive_apparel_boutique/common/tpl_header.php file change this:
Code:
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
<!--eof-branding display-->
to this:
Code:
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
<!--eof-branding display-->
Thanks,
Anne
Re: Responsive Apparel Boutique Template
That is perfect. Thank you so much. Now I just need to figure out why my pop up images are not working.
Thanks again Anne
Quote:
Originally Posted by
picaflor-azul
I am happy that you like the template ;)
There is a bug in the tpl_header.php file that is causing the responsiveness to break. It happens when you remove the tagline. In the includes/templates/responsive_apparel_boutique/common/tpl_header.php file change this:
Code:
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
<!--eof-branding display-->
to this:
Code:
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div></div>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
<!--eof-branding display-->
Thanks,
Anne
Re: Responsive Apparel Boutique Template
Dear Anne,
May I know if it's possible to let "Product Description" at product listing page to be permanently shown without having to click on it to toggle it to display the details?
Thanks!
Re: Responsive Apparel Boutique Template
Quote:
Originally Posted by
thefather
That is perfect. Thank you so much. Now I just need to figure out why my pop up images are not working.
Thanks again Anne
If you post a link to your site I can take a look.
Thanks,
Anne