Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Programming glitch?

    Hi!

    I think I have discovered an error in 139d, not sure where to put it.

    I've scoured the forum, seen people post about the problem... but no solution.

    When you Configure your store, you are asked for STORE OWNER and STORE NAME. This information goes into the database and pops up all over the place, such as the Welcome email a customer receives after setting up an acct (etc, etc, etc).

    But the problem is that this information is later renamed (under Product Type Info Page Option it is called "Product Tagline"; if you click on Metatag button for a product, it is called "Title/Tagline"). This information is crammed into your meta title for every product.

    Even though the option is there to turn off the Title/Tagline, IT SIMPLY DOES NOT WORK!

    No matter what you do, you cannot turn it off!

    A possible solution is to manually edit the /includes/languages/english/meta_tags.php file to insert info into the HOME_PAGE_TITLE tag, then go back to admin/configuration/mystore and delete info in STORE OWNER and STORE NAME.

    But the problem with doing that is that when your site sends WELCOME emails or ORDER CONFIRMATION emails, your info is not going to be configured correctly.

    PLEASE CAN SOMEONE HELP ME WITH THIS?

    My guess is that the logic is screwed up on the product meta tag submit page and on the Product Type Options page... but I am not a programmer and have no clue how to fix.

    In my opinion, the BEST/EASIEST/FASTEST SOLUTION would be to simply find the php file that controls the product page calls for the Title/Tagline and comment out the call.

    Can someone please tell me which file does this and what lines need to be commented out?

    Thank you very much!
    Mike

  2. #2
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Programming glitch in 139d?

    Ok, here are some things I figured out....

    This is totally wrong:
    But the problem with doing that is that when your site sends WELCOME emails or ORDER CONFIRMATION emails, your info is not going to be configured correctly.
    The Title/Tagline is different from the info you put into STORE OWNER and STORE NAME. I was confused because I used the same info. The STORE OWNER and STORE NAME is the info that shows up in all your future generated emails (contact us, order confirmation, etc).

    So where does the Title/Tagline come from? Remember when you set up your store and had to get rid of that pesky "Zen Cart!, The Art of..."?

    The way you fixed it was by going to includes/languages/english/meta_tags.php and manually overriding them by entering new Title/Tagline.

  3. #3
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Programming glitch in 139d?

    Ok, I have deleted the content from the title/taglines. I would like to comment them out entirely, but I'm guessing it will kick off errors when the stupid cart calls for them later.

    I think the answer is in this file:
    /includes/modules/MY_TEMPLATE/meta_tags.php

    Please, can someone help me get rid of whatever lines are calling out for the Title/Tagline?

  4. #4
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Programming glitch in 139d?

    HOT DANG! Ok, I figured it out!!!!

    Here is the problem clearly stated:
    Even though the option is there to turn off the Title/Tagline meta tags, IT SIMPLY DOES NOT WORK!

    Here is the solution (backup the file first!):
    1. Open this file - /includes/modules/YOUR_DOMAIN/meta_tags.php
    2. Find this string of text -
    define('META_TAG_TITLE', str_replace('"','',$review_on . $meta_products_name . $meta_products_price . PRIMARY_SECTION . TITLE . TAGLINE));
    3. Delete what I bolded above so it reads like this -
    define('META_TAG_TITLE', str_replace('"','',$review_on . $meta_products_name . $meta_products_price));
    4. Save and you are done!!!



    I hope this helps others! I have scoured this forum, found tons of threads with people complaining about it but no solution.

  5. #5
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Programming glitch in 139d?

    rather than mesing with the code
    taking that section of code and using the developers toolkit would have shown you that you can just remove teh text from the define


    All solved the zen way
    Zen cart PCI compliant Hosting

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Programming glitch in 139d?

    I agree with Merlin. You're hacking code needlessly. Just update the /includes/languages/english/meta_tags.php file.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Programming glitch in 139d?

    Even though the option is there to turn off the Title/Tagline, IT SIMPLY DOES NOT WORK!
    Although I cannot confirm or deny the above statement, which is the reason for this thread, if it is true then it should be marked as a Bug and addressed. A code fix could be provided now with future versions providing a fixed solution.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Programming glitch in 139d?

    It works just fine, as long as you've actually set product-specific metatag keyword and/or description text.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Programming glitch in 139d?

    Hi,

    Thanks for the input you guys.

    Yea, I would not have "hacked" the code if there was a better way. I wish the Admin options to disable actually worked, then none of this would have been necessary.

    Merlin, removing the text from the define was one of the first things I did. Upon doing this, the meta tag title on EVERY single page still displayed the separator (" : "). This is a waste of 3 characters, pointless clutter, and looked stupid (it shows up in the browser bar and as the page title on search engines).

    Besides just being generally annoying, I had decided I kind of liked the Title/Tagline showing up on my EZpages, category pages, etc. So hacking the code as I did was targeted specifically to product info pages.

    Doing what I did will not cause any problems, will it?

  10. #10
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Programming glitch in 139d?

    Quote Originally Posted by Feznizzle View Post
    Hi,

    Thanks for the input you guys.

    Yea, I would not have "hacked" the code if there was a better way. I wish the Admin options to disable actually worked, then none of this would have been necessary.

    Merlin, removing the text from the define was one of the first things I did. Upon doing this, the meta tag title on EVERY single page still displayed the separator (" : "). This is a waste of 3 characters, pointless clutter, and looked stupid (it shows up in the browser bar and as the page title on search engines).

    Besides just being generally annoying, I had decided I kind of liked the Title/Tagline showing up on my EZpages, category pages, etc. So hacking the code as I did was targeted specifically to product info pages.

    Doing what I did will not cause any problems, will it?
    They do work
    But as Dr. Byte pointed out above you need to have:

    Meta Tag Title: for your product

    Meta Tag Keywords: for your product

    and

    Meta Tag Description: for your product

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Programming Attributes question
    By colortheworld in forum General Questions
    Replies: 4
    Last Post: 9 Aug 2010, 09:55 PM
  2. Attribute Based programming.
    By ramchandev in forum Setting Up Categories, Products, Attributes
    Replies: 12
    Last Post: 30 Jun 2009, 02:18 PM
  3. sql programming problems
    By newuser2 in forum General Questions
    Replies: 1
    Last Post: 26 Aug 2008, 11:32 PM
  4. Glitch?
    By lizar5- in forum General Questions
    Replies: 1
    Last Post: 23 Aug 2008, 07:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg