Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Category Sidebox - Change Specials Link?

Category Sidebox - Change Specials Link?

Locked

Views: 4,118

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
17 Nov 2006, 8:45 PM
#1
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Category Sidebox - Change Specials Link?

I am trying to change the Category Sidebox - Specials category link to reference the Specials Sidebox > Specials (more) sidebox link because I would like my customers to be able to see all my specials on one page if they click on that link.

I tried this...

in /includes/templates/MYTEMPLATE/templates/
tpl_categories.php

changed this...

if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
      $show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");
      if ($show_this->RecordCount() > 0) {
        $content .= '<a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . '<br />' . "\n";
      }
    }

to this...

if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
      $show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");
      if ($show_this->RecordCount() > 0) {
        $content .= '<a class="category-links" href="http://www.oldwestgames.com/specials.html">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . '<br />' . "\n";
      }
    }

but that didn't work.

any suggestions?

mafiasam

18 Nov 2006, 3:54 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Category Sidebox - Change Specials Link?

The two links already go to the same page ...

What have you changed on your site that you are seeing differently?

18 Nov 2006, 5:36 PM
#3
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Category Sidebox - Change Specials Link?

Ajeh:

The two links already go to the same page ...

What have you changed on your site that you are seeing differently?

well one displays differently than the other.
i want the category - specials link to display like sidebox - specials(more) link

it seems like there are two different pages for the specials which are the specials you create and then there are the specials you link into the specials category.
understand?

18 Nov 2006, 5:55 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Category Sidebox - Change Specials Link?

"Your" site displays different "pages" specials ...

"Zen Cart" displays the same "page" for specials ...

You have a Category filter running on your specials page ...

Are you using an add-on? Did someone work on your site and change the code for you from the original code?

18 Nov 2006, 11:58 PM
#5
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Category Sidebox - Change Specials Link?

Ajeh:

"Your" site displays different "pages" specials ...

"Zen Cart" displays the same "page" for specials ...

You have a Category filter running on your specials page ...

Are you using an add-on? Did someone work on your site and change the code for you from the original code?

I do use SEO URL's but that is not the concern I have. If they are the same exact links then why do they display the specials differently?

there is a category for specials (catalog>categories/products>specials)

and there is the selection for adding the date range and prices of your specials (catalog>specials)

what I want is the link in the Categories sidebox to match the link for Specials sidebox header because I can configure the display in the admin to display as many items as I want using configuration>maximum values>products on special and that way my customers can see every item on special without having to page through them.

and no one besides me has done any work on my site.

19 Nov 2006, 12:13 AM
#6
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Category Sidebox - Change Specials Link?

mafiasam:

I do use SEO URL's but that is not the concern I have. If they are the same exact links then why do they display the specials differently?

there is a category for specials (catalog>categories/products>specials)

and there is the selection for adding the date range and prices of your specials (catalog>specials)

what I want is the link in the Categories sidebox to match the link for Specials sidebox header because I can configure the display in the admin to display as many items as I want using configuration>maximum values>products on special and that way my customers can see every item on special without having to page through them.

and no one besides me has done any work on my site.

I think I understand what you are saying now. You are saying that for some reason my cart is not acting like a normal cart? am i right?

well the only changes I made to that code is displayed in my first message.

how can i make it so that the category specials link is the same as the Specials sidebox header link?

19 Nov 2006, 3:54 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Category Sidebox - Change Specials Link?

Looks like you have changed the original code ...

Perhaps compare your original files to a clean Zen Cart v1.3.6 ... downloaded via the Download link at the top of your screen ...

Then make sure you do not have templates and overrides changing them ...

19 Nov 2006, 10:54 PM
#8
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Category Sidebox - Change Specials Link?

Ajeh:

Looks like you have changed the original code ...

Perhaps compare your original files to a clean Zen Cart v1.3.6 ... downloaded via the Download link at the top of your screen ...

Then make sure you do not have templates and overrides changing them ...

which files?

tpl_categories.php and?

20 Nov 2006, 3:18 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Category Sidebox - Change Specials Link?

/includes/templates/template_default/sideboxes/tpl_categories.php

/includes/templates/template_default/sideboxes/specials.php

20 Nov 2006, 3:20 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Category Sidebox - Change Specials Link?

Note: you may also need to check the code for:

/includes/templates/template_default/common/tpl_box_default_left.php
/includes/templates/template_default/common/tpl_box_default_right.php

For how the $title_link is handled ... that is defined in the sidebox ...

21 Nov 2006, 9:16 PM
#11
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Category Sidebox - Change Specials Link?

Ajeh:

Looks like you have changed the original code ...

Perhaps compare your original files to a clean Zen Cart v1.3.6 ... downloaded via the Download link at the top of your screen ...

Then make sure you do not have templates and overrides changing them ...

Looked at all the files you suggested the only one different was the one I initially changed so I overwrote that and it still doesn't work.

22 Nov 2006, 12:38 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Category Sidebox - Change Specials Link?

Is that Specials link at the top of your Categories sidebox a Category or the Specials link?

That is looking like a Category Link vs the Specials Link that we have built into the Categories sidebox ... now that I look at it more ... :unsure:

22 Nov 2006, 5:49 PM
#13
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Category Sidebox - Change Specials Link?

Ajeh:

Is that Specials link at the top of your Categories sidebox a Category or the Specials link?

That is looking like a Category Link vs the Specials Link that we have built into the Categories sidebox ... now that I look at it more ... :unsure:

it's a category link.
that's what has got me so confused.
I just need to change that one link.
I had even tried to shut off the categories sidebox link for specials because it wasn't displaying right and I have the specials sidebox displayed but it won't go away.

26 Nov 2006, 4:21 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Category Sidebox - Change Specials Link?

The Specials sidebox is taking you to the Specials page ...

The Specials Category is taking you to a different page as it is showing you products in a given Category ...

The Specials Link that you turned off on the Categories Sidebox would take you to the same Specials Page that the Specials sidebox takes you to ...

Now the question is ... what is the real link you want to go to from both of these?

If it is to the Specials Page like the sidebox takes you to, then you do not need that Special Category, just turn on the Specials Link in the Categories Sidebox in the Configuration ... Layout Settings ...

26 Nov 2006, 6:25 PM
#15
mafiasam avatar

mafiasam

Zen Follower

Join Date:
Jan 2006
Location:
Portland, Oregon
Posts:
256
Plugin Contributions:
0

Re: Category Sidebox - Change Specials Link?

Ajeh:

The Specials sidebox is taking you to the Specials page ...

The Specials Category is taking you to a different page as it is showing you products in a given Category ...

The Specials Link that you turned off on the Categories Sidebox would take you to the same Specials Page that the Specials sidebox takes you to ...

Now the question is ... what is the real link you want to go to from both of these?

If it is to the Specials Page like the sidebox takes you to, then you do not need that Special Category, just turn on the Specials Link in the Categories Sidebox in the Configuration ... Layout Settings ...

Thank you. That was simpler than I made it seem. Turned on the link and deleted the category. Thanks.

27 Nov 2006, 4:31 AM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Category Sidebox - Change Specials Link?

You are most welcome and thanks for posting the solution and cause of the issue was trying to maintain a category of Products on Special and then trying to have the Specials category and Specials link resolve to the same URL ...

The Specials Link in the Categories sidebox is designed to only show if:

1 you have Specials

2 it has been enabled to show