Zen Cart Logo
Forums / Addon Templates / Rustic Template Support Thread

Rustic Template Support Thread

Views: 80,065

Results 141 to 160 of 321
12 Jun 2009, 4:11 PM
#141
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Rustic Template Support Thread

minute:

Hello, I am using zencart 1.3.7 and I have a problem because I cannot add links to the navigation links in tpl_header, I can add but it does not look the same as the rest. you can see in https://www.dotari-saloane.ro the links "Catalog" is not the same as the rest .. Home etc... I did what the FAQ said here: https://www.zen-cart.com/tutorials/index.php?article=234 and add after

<li<?php echo (($current_page_base == 'shopping_cart') ? ' class="cart current">' : ' class="cart">');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>

This :

<li><a href="http://www.dotari-saloane.ro/catalog.pdf" target="_blank">Catalog</a></li>
</ul>

But, as you can see, the result is not as I expected.

Thanks!

You simply forgot the span tags

try making the highlighted corrections

<li><a href="http://www.dotari-saloane.ro/catalog.pdf" target="_blank"><span>Catalog</span></a></li>

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

12 Jun 2009, 7:08 PM
#143
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Rustic Template Support Thread

minute:

Thanks! It works!!! GREAT!!!! Thanks again!

glad to help

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Jun 2009, 7:49 AM
#144
minute avatar

minute

New Zenner

Join Date:
Dec 2007
Posts:
50
Plugin Contributions:
0

Re: Rustic Template Support Thread

Hello, it is me again, I want to know if there is a posibiliti to hide some of the links in the tpl_header.php with some if statements. For example, if the user is not logged in, the link /index.php?main_page=account to be hide, and when is logged in to be shown, and also the cart link if there are no products in it. Thans for your help!

24 Jun 2009, 6:05 PM
#145
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Rustic Template Support Thread

minute:

Hello, it is me again, I want to know if there is a posibiliti to hide some of the links in the tpl_header.php with some if statements. For example, if the user is not logged in, the link /index.php?main_page=account to be hide, and when is logged in to be shown, and also the cart link if there are no products in it. Thans for your help!

Sure:

open includes/templates/rustic/common/tpl_header.php

find the following section of code

<div id="navMain">
    <ul>
    <li<?php echo (($this_is_home_page) ? ' class="current">' : '>');?><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo '<span>' . HEADER_TITLE_CATALOG . '</span>'; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
    <li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
<?php } } ?>
<li<?php echo (($current_page_base == 'contact_us') ? ' class="current">' : ' class="contact">');?><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo '<span>' . BOX_INFORMATION_CONTACT . '</span>'; ?></a></li>
    <li<?php echo (($current_page_base == 'account') ? ' class="current">' : ' class="account">');?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_MY_ACCOUNT . '</span>'; ?></a></li>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li<?php echo ((in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,checkout_success'))) ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CHECKOUT . '</span>'; ?></a></li>
<?php }?>
    <li<?php echo (($current_page_base == 'shopping_cart') ? ' class="cart current">' : ' class="cart">');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>
</ul>

and replace it with the following:

<div id="navMain">
    <ul>
    <li<?php echo (($this_is_home_page) ? ' class="current">' : '>');?><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo '<span>' . HEADER_TITLE_CATALOG . '</span>'; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
    <li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
    <li<?php echo (($current_page_base == 'account') ? ' class="current">' : ' class="account">');?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_MY_ACCOUNT . '</span>'; ?></a></li>
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
<?php } } ?>
<li<?php echo (($current_page_base == 'contact_us') ? ' class="current">' : ' class="contact">');?><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo '<span>' . BOX_INFORMATION_CONTACT . '</span>'; ?></a></li>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li<?php echo ((in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,checkout_success'))) ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CHECKOUT . '</span>'; ?></a></li>
    <li<?php echo (($current_page_base == 'shopping_cart') ? ' class="cart current">' : ' class="cart">');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>
<?php }?>
</ul>

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

25 Jun 2009, 1:29 PM
#147
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Rustic Template Support Thread

minute:

Works great! Millions of thanks!

Glad it got sorted

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

5 Jul 2009, 4:26 AM
#148
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Re: Rustic Template Support Thread

Hello Clyde,

I downloaded your 'Rustic' template from (sorry, site offline), installed it and it shows up but I can't get my site template to change to the Rustic. Thought I may have had a bad download, I found it again on your site I believe so I downloaded it again from there and installed it again according to instructions and when I click on Tools and go to the template installer, it shows as being there but after I go through the process to use it, my original template is still there, the Rustic one doesn't show up.

Can you possibly advise what I should check or do, I'm new to ZC and am trying to learn it so that I can move my existing store over to it.

My URL for the Zen Cart is rivercityemporium.com. I just got it installed the other day but have decided to change themes and thought the Rustic one would go better with the product lines I'm going to carry on it.

Thanks for any help you can send my way,

Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

5 Jul 2009, 5:19 AM
#149
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Rustic Template Support Thread

RiverCity:

Hello Clyde,

I downloaded your 'Rustic' template from (sorry, site offline), installed it and it shows up but I can't get my site template to change to the Rustic. Thought I may have had a bad download, I found it again on your site I believe so I downloaded it again from there and installed it again according to instructions and when I click on Tools and go to the template installer, it shows as being there but after I go through the process to use it, my original template is still there, the Rustic one doesn't show up.

Can you possibly advise what I should check or do, I'm new to ZC and am trying to learn it so that I can move my existing store over to it.

My URL for the Zen Cart is rivercityemporium.com. I just got it installed the other day but have decided to change themes and thought the Rustic one would go better with the product lines I'm going to carry on it.

Thanks for any help you can send my way,

Jim

From your description, it sounds like it wasn't installed correctly.

follow the instruction for uninstalling the template

and then try the install again.

Just FTP the includes folder to your server where you have Zen Cart installed.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

5 Jul 2009, 1:50 PM
#150
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Re: Rustic Template Support Thread

Thanks Clyde,

I followed your instructions and deleted all the files and then reinstalled the copy I received from your website and I still can't get it to change from the Glacial Age template to the Rustic one.

I feel comfortable that I've installed it correctly according to the instructions so I must be not completing all the steps in my admin to make the change, I'll try to find the instructions to do that and retry it.

Thanks for the help,

Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

5 Jul 2009, 2:45 PM
#151
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Rustic Template Support Thread

RiverCity:

Thanks Clyde,

I followed your instructions and deleted all the files and then reinstalled the copy I received from your website and I still can't get it to change from the Glacial Age template to the Rustic one.

I feel comfortable that I've installed it correctly according to the instructions so I must be not completing all the steps in my admin to make the change, I'll try to find the instructions to do that and retry it.

Thanks for the help,

Jim

admin -> tools -> template selection

click the edit button

Select the template from the dropdown menu

click update

admin -> tools -> layout boxes controller

scroll to the bottom of the page

click the reset button

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

5 Jul 2009, 5:11 PM
#152
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Re: Rustic Template Support Thread

Ok, apparently I have another problem, that's the exact steps I took, I even deleted all the files and did the whole thing again from scratch and the Glacial Age template is still showing. I've even cleared my cache in the browser thinking the page just didn't reload.

I unzipped your file, uploaded the 'includes' folder to the public-html directory, then went into the admin and followed the two steps, everything looked normal until I clicked the refresh button at the bottom of the Layout Boxes Controller page, after clicking it, the top of the page still said it was Glacial Age, not Rustic.

I'll keep working on it,

Thanks again,

Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

5 Jul 2009, 5:22 PM
#153
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Rustic Template Support Thread

RiverCity:

Ok, apparently I have another problem, that's the exact steps I took, I even deleted all the files and did the whole thing again from scratch and the Glacial Age template is still showing. I've even cleared my cache in the browser thinking the page just didn't reload.

I unzipped your file, uploaded the 'includes' folder to the public-html directory, then went into the admin and followed the two steps, everything looked normal until I clicked the refresh button at the bottom of the Layout Boxes Controller page, after clicking it, the top of the page still said it was Glacial Age, not Rustic.

I'll keep working on it,

Thanks again,

Jim

Did you install the latest security patch before installing the template.

If so go back and get the latest updated version of the security patch and install that.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

5 Jul 2009, 5:34 PM
#154
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Re: Rustic Template Support Thread

Security Patch? No haven't done that but will right now and retry the install.

Thanks for the info, will let you know if it works this time.

Thanks
Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

5 Jul 2009, 6:23 PM
#155
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Re: Rustic Template Support Thread

I'm sorry for bothering you on this and I really appreciate the help but I understand if you are busy.

I installed the security patch according to the instructions, tried the admin was able to bring it up ok so that tested good, tried to bring up my site and nothing happened, just a blank page. Went back in and made the correction to the html_output.php file as per the patch instructions, still no page coming up on site, went back and changed to the original html_output.php and the site comes up now but still with the Glacial Age template. Still unable to change templates but at least the site is back up.

I guess I'll just have to stay with the Glacial age template until I can learn more about Zen Cart.

Thanks again for your help, I'll get it working one of these days.

Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

5 Jul 2009, 7:30 PM
#156
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Re: Rustic Template Support Thread

Clyde,

Just thought I'd let you know I finally got the Rustic template to work properly. I don't know what was causing the problem but I had to delete all templates except for the default green one. I had to even delete the Glacial Age one I was using. I guess something had the install process locked up or something. Once I deleted all the templates except the default one, everything started working right.

Anyway, thanks for all the help,

Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

5 Jul 2009, 7:50 PM
#157
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Rustic Template Support Thread

RiverCity:

Clyde,

Just thought I'd let you know I finally got the Rustic template to work properly. I don't know what was causing the problem but I had to delete all templates except for the default green one. I had to even delete the Glacial Age one I was using. I guess something had the install process locked up or something. Once I deleted all the templates except the default one, everything started working right.

Anyway, thanks for all the help,

Jim

glad you got it sorted

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

5 Jul 2009, 11:28 PM
#158
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Re: Rustic Template Support Thread

Clyde,

I just noticed that the catagory box is different than the others, I saw the fix you had and uploaded it but it didn't change, could you tell me if I'm missing something.

Thanks
Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!

5 Jul 2009, 11:50 PM
#159
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Rustic Template Support Thread

RiverCity:

Clyde,

I just noticed that the catagory box is different than the others, I saw the fix you had and uploaded it but it didn't change, could you tell me if I'm missing something.

Thanks
Jim

open includes/templates/rustic/css/stylesheet.css

find and change the following declarations as indicated by the highlighted portion(s)

#categoriesHeading {
margin: 0;
padding: 0.5em 0.2em;
background-image: url(../images/sb_header.gif);
background-repeat: no-repeat;
text-align: center;
font-weight: bold;
}

#categoriesContent {
padding: 0.4em 0.4em 10px 0.4em;
background-image: url(../images/sb_content.gif);
background-repeat: no-repeat;
background-position: bottom;
font-weight: bold;
}

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

6 Jul 2009, 12:00 AM
#160
rivercity avatar

rivercity

Zen Follower

Join Date:
Jul 2009
Location:
Arkansas
Posts:
178
Plugin Contributions:
0

Re: Rustic Template Support Thread

Fantastic, that got it to match the rest of the template but the font for the word, Catagories, is black instead of white like the others, can you point me to where I can fix that part?

Thanks
Jim

Jim Stiles
http://www.missyscollectibles.com
Coming home to Zen Cart!