Forums / Templates, Stylesheets, Page Layout / What Did I Do Wrong?

What Did I Do Wrong?

Views: 1,432

Results 1 to 15 of 15
18 Oct 2012, 9:21 AM
#1
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

What Did I Do Wrong?

I changed the buttons for Prev/Listing/Next. Prev and Next turned out fine, but I changed the text on Listing and that didn't work out too fine.

After changing the text I went to:

Includes/languages/English/Piccadilly_posh>button_names.php

and made the change here:

define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see-all-products-by-this-designer.gif');

This is what I ended up with:

http://designerperfumesnob.authsafe.com/bvlgari-omnia-amethyste-eau-de-toilette-spray-22-oz-by-bvlgari-for-women-p-4918.html

You'll note the same in the search header submit button. I changed the png to GO, from a magnifying glass, and changed the define to go, and got the same result.

What did I do wrong?

18 Oct 2012, 1:59 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: What Did I Do Wrong?

Check your server that the image is there for the button ... I do not see it in my browser at:
/includes/templates/piccadilly_posh/buttons/english/see-all-products-by-this-designer.gif

nor in:
/includes/templates/template_default/buttons/english/see-all-products-by-this-designer.gif

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Oct 2012, 7:01 PM
#3
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: What Did I Do Wrong?

The image for the button "button_search-header.png" is in:

includes/templates/piccadilly_posh/buttons/english

When I view the button I can see the new image, but it won't come up on my site.

I changed the defines in:

define('BUTTON_IMAGE_SEARCH_HEADER', 'GO.png');

The image for the button "button_return_to_product_list.gif"

is showing the transfer in FileZilla and the new filesize, but it won't show the new image. I did change the defines and corrected the dashes to underscores here:

define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif');

http://designerperfumesnob.authsafe.com/bvlgari-omnia-amethyste-eau-de-toilette-spray-22-oz-by-bvlgari-for-women-p-4918.html

18 Oct 2012, 7:23 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: What Did I Do Wrong?

Are you saying this define:

define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif');

is also in youte templates and override directories?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Oct 2012, 8:52 PM
#5
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: What Did I Do Wrong?

define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif');

Is in includes/languages/english/piccadilly_posh/button_names.php

define('BUTTON_IMAGE_SEARCH_HEADER', 'GO.png');

Is in includes/languages/english/piccadilly_posh/button_names.php

I'm so confused now, I thought I had it in another defines and now I can't remember. Can you please tell me the path of any places this should go in. That might be the way to go instead of me confusing both of us.

18 Oct 2012, 9:00 PM
#6
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: What Did I Do Wrong?

I wanted to add that both images are now showing up in the button gif list so the problem lies in the defines, I guess.

18 Oct 2012, 11:48 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: What Did I Do Wrong?

Go to your Zen Cart Admin to the Tools ... Developers Tool Lit and in the bottom input box enter:

button_next.gif

What comes up?

Now enter:

button_search.gif

what comes up?

Now enter:

see_all_products_by_this_designer.gif

what comes up?

Now enter:

GO.png

what comes up?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Oct 2012, 12:19 AM
#8
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: What Did I Do Wrong?

I get: No matching Configuration Keys were found for all of the searches.

19 Oct 2012, 1:06 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: What Did I Do Wrong?

When you enter them in the input box, select CATALOG in the dropdown then click SEARCH ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Oct 2012, 4:08 AM
#10
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: What Did I Do Wrong?

OK, following your search directions...

Go.png:

/home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php

Line #38 : define('BUTTON_IMAGE_SEARCH_HEADER', 'GO.png');

see_all_products_by_this_designer.gif :

/home/a132536/public_html/includes/languages/english/button_names.php

define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif');

and

home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php

Line #35 : define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif');

button_search.gif :

/home/a132536/public_html/includes/languages/english/button_names.php

define('BUTTON_IMAGE_SEARCH', 'button_search.gif');

and

/home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php

Line #37 : define('BUTTON_IMAGE_SEARCH', 'button_search.gif');

and

/home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

Line #37 : define('BUTTON_IMAGE_SEARCH', 'button_search.gif');

button_next.gif:

/home/a132536/public_html/includes/languages/english/button_names.php

define('BUTTON_IMAGE_NEXT', 'button_next.gif');

and

/home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php

Line #32 : define('BUTTON_IMAGE_NEXT', 'button_next.gif');

and

/home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

Line #32 : define('BUTTON_IMAGE_NEXT', 'button_next.gif');

Thanks for working with me!!

19 Oct 2012, 4:12 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: What Did I Do Wrong?

Now for each of the defines that were located, do a search on the constant in each, example:
define('BUTTON_IMAGE_NEXT', 'button_next.gif');

in the bottom input box enter:
BUTTON_IMAGE_NEXT

select Catalog ... clock SEARCH ...

What shows up on each of them?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Oct 2012, 6:07 AM
#12
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: What Did I Do Wrong?

Search for BUTTON_IMAGE_NEXT:

/home/a132536/public_html/includes/languages/english/button_names.php

define('BUTTON_IMAGE_NEXT', 'button_next.gif')

/home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php

Line #32 : define('BUTTON_IMAGE_NEXT', 'button_next.gif');

Here's something new:

/home/a132536/public_html/includes/modules/product_prev_next.php

Line #119 : $next_item_button = zen_image_button(BUTTON_IMAGE_NEXT, BUTTON_NEXT_ALT);

home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

Line #32 : define('BUTTON_IMAGE_NEXT', 'button_next.gif');

I have a question. Am I SUPPOSED to have an includes/templates/includes/languages/english/piccadilly_posh/button_names.php ? It makes me wonder because of the double use of includes in the name.

Search for BUTTON_IMAGE_SEARCH:

/home/a132536/public_html/includes/languages/english/button_names.php
define('BUTTON_IMAGE_SEARCH', 'button_search.gif')

/home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php
Line #37 : define('BUTTON_IMAGE_SEARCH', 'button_search.gif');

Line #38 : define('BUTTON_IMAGE_SEARCH_HEADER', 'GO.png');

home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

Line #37 : define('BUTTON_IMAGE_SEARCH', 'button_search.gif');

Line #38 : define('BUTTON_IMAGE_SEARCH_HEADER', 'button_search_header.png'); FOUND THIS AND CORRECTED IT TO GO.png

/home/a132536/public_html/includes/templates/piccadilly_posh/sideboxes/tpl_search.php

Line #17 : $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);

Line #20 : $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == '' . HEADER_SEARCH_DEFAULT_TEXT . '') this.value = '';" onblur="if (this.value == '') this.value = '' . HEADER_SEARCH_DEFAULT_TEXT . '';"') . '<br />' . zen_image_submit(BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);

/home/a132536/public_html/includes/templates/piccadilly_posh/sideboxes/tpl_search_header.php

Line #16 : $content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 100px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == '' . HEADER_SEARCH_DEFAULT_TEXT . '') this.value = '';" onblur="if (this.value == '') this.value = '' . HEADER_SEARCH_DEFAULT_TEXT . '';"') . ' ' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);

Line #18 : $content .= zen_draw_input_field('keyword', '', 'size="6" class="search-header-box" maxlength="30" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == '' . HEADER_SEARCH_DEFAULT_TEXT . '') this.value = '';" onblur="if (this.value == '') this.value = '' . HEADER_SEARCH_DEFAULT_TEXT . '';"') . ' ' . zen_image_submit (BUTTON_IMAGE_SEARCH_HEADER,HEADER_SEARCH_BUTTON);

home/a132536/public_html/includes/templates/template_default/templates/tpl_advanced_search_default.php

Line #71 : <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEARCH, BUTTON_SEARCH_ALT); ?></div>

Search for BUTTON_IMAGE_RETURN_TO_PROD_LIST:

/home/a132536/public_html/includes/languages/english/button_names.php

define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif'

/home/a132536/public_html/includes/languages/english/piccadilly_posh/button_names.php

Line #35 : define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif');

/home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

Line #35 : define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'button_return_to_product_list.gif'); FOUND THIS AND CORRECTED IT!

/home/a132536/public_html/includes/templates/piccadilly_posh/templates/tpl_products_next_previous.php

Line #26 : <div class="navNextPrevList"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LIST, BUTTON_RETURN_TO_PROD_LIST_ALT); ?></a></div>

/home/a132536/public_html/includes/templates/template_default/templates/tpl_products_next_previous.php

Line #26 : <div class="navNextPrevList"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LIST, BUTTON_RETURN_TO_PROD_LIST_ALT); ?></a></div>

I was so sure when I changed the two that had the old names it woud be corrected, but it still shows no image.

19 Oct 2012, 6:25 AM
#13
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: What Did I Do Wrong?

I looked for instructions on changing the buttons for zen cart and it just says to enter changes in includes/languages/english/button_names.php.

The Go.png was not in there, nor was any define for the search header.
The button_next.gif and the button_prev.gif were in there.
The button see_all_products_by_this_designer.gif was in there.

19 Oct 2012, 9:40 PM
#14
traytray avatar

traytray

Totally Zenned

Join Date:
May 2012
Posts:
566
Plugin Contributions:
0

Re: What Did I Do Wrong?

OMG I fixed it! I took a look at the define in:

includes/languages/english/piccadilly_posh from the list you had me make up and something didn't look right.

home/a132536/public_html/includes/languages/english/button_names.php

define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'see_all_products_by_this_designer.gif');

I had omitted the word "button" from the new name! I checked and I did the same thing for the GO.png

I'd still like to know if this is a valid file:

/home/a132536/public_html/includes/templates/includes/languages/english/piccadilly_posh/button_names.php

the double use of the word includes has me puzzled. The php file inside is called button_names 3.php

After all of this I'm wondering if I should change the colors of the prev/see all etc./next buttons. I couldn't duplicate the other buttons I have and this almost looks like a poor attempt at doing so. What do you think of black with white lettering to match the header bar?

Let me take this opportunity to thank you for your patience and help. If you hadn't suggested a list of the words, I don't think I ever would have caught the error.

21 Oct 2012, 5:01 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: What Did I Do Wrong?

Thanks for the update that you were able to get everything sorted out and that these hints were able to lead you in the right direction ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!