Author Topic: HACK: AutoGen Metadata Metatag. Product, Category. Title, Description, Keywords  (Read 336613 times)

wildwill

  • Jr. Member
  • **
  • Posts: 62
Hi Forest

So i have this VM 1.1.4 site and i have been using sh404sef for meta data, description keywords and general SEO.

I was wondering if i would have to disable this to use you SEO hack? also will your hack remove the multiple URLs for a single product/ cat?

Ww

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10401
  • VirtueMart Version: 3+
wildwill

The hack does not re-write urls. BUT you can set cannonical urls for categories, and products ETC. AND NOT use re-write. That would make your site faster.

As far as using both together, Forrest will answer that.

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

wildwill

  • Jr. Member
  • **
  • Posts: 62
Hmm ok so i have a copy of a site that i want to install this on and see how it works.

I have J1.5.18 and VM 1.1.4 and the site was working fine beofr ethe install.

I uploaded teh files and ran the SQL.

but now when i hit the frontend i a white page rendered it the browser and i also see the following error mssage in teh error log:

PHP Fatal error:  Call to undefined method ps_product_category::get_vmj_child_list() in /var/www/vhosts/sitename.co.uk/httpdocs/administrator/components/com_virtuemart/html/shop.index.php on line 26

Any ideas?

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
@Ww: To answer your previous question, yes, likely you'd have to disable parts, or all of the sh404sef... specifically the metadata writes. I think there is an option within sh404sef to turn of metadata.... but I'm not for sure.

As for your other problem... dunno. Sounds like something went wrong in the install. No other reports of this issue, so I can only guess it's something that failed in copying files or sql. Sry. Try again.
PS. Joomla version should have nothing to do with it, as it's only a VM modification.

And BanquetTables.pro is right on both regards.

diastasi

  • Jr. Member
  • **
  • Posts: 65
    • e-magazi the greek eshop
@diastasi: I'll take a look as this as well soon. I think I know the issue.
are there any news about UTF8 problem?

mbit

  • Jr. Member
  • **
  • Posts: 323
@diastasi: I'll take a look as this as well soon. I think I know the issue.
are there any news about UTF8 problem?
there is an issue with greek characters?

diastasi

  • Jr. Member
  • **
  • Posts: 65
    • e-magazi the greek eshop
Yes there is an issue. The Greek characters in Keywords are shown as ��������. All other (description etc.. are OK)

I want to use the categories Keywords as Products Keywords.
I have to make changes to shop.product_details.php in order to take Keywords from its Category. How is this possible?

mbit

  • Jr. Member
  • **
  • Posts: 323
diastasi i was to use greek characters also :)
simple adding encoding utf-8 doesnt work ?


diastasi

  • Jr. Member
  • **
  • Posts: 65
    • e-magazi the greek eshop
No.. δυστυχως!! :(
Im trying now some "magic" for having the Category Description and Keywords for all products in category.

diastasi

  • Jr. Member
  • **
  • Posts: 65
    • e-magazi the greek eshop
because I wanted "product" keywords and descroption to be the same from "category" keywords and descriptions , I modified a little the codes.

@Forrest Please check it if it works or I put some uneened codes inside. The changes was in shop.product_details.php

[attachment cleanup by admin]

diastasi

  • Jr. Member
  • **
  • Posts: 65
    • e-magazi the greek eshop
As I understood I think there was an issue with local Apache & PHP.
I tried this addon locally in Xampp and I had an issue with Greek.
I tried it online and Greek worked!!! maybe something with ereg (php).

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Great. I was thinking ereg may have had something to do with it. Never got a chance to check tho.

fabiogarcia

  • Beginner
  • *
  • Posts: 11
Hi there!

I'm getting this message at my admin page, at Product info tab:

Notice: Undefined variable: category_names_list in /home2/eurekas/public_html/administrator/components/com_virtuemart/html/product.product_form.php on line 818

This is the line 818:       $category_names_list .= ' '.$dbc->f('category_name');

How can I fix this?

Thanks,

Fábio Garcia

tankist

  • Beginner
  • *
  • Posts: 6
Forrest, i want to thank you for you great hack.
But +1 for a problem of diastasi. Only with russian characters.
UTF8 characters displayed like ��� in keywords. All others (description, title etc...) is ok. Where is a bug?

tax

  • Beginner
  • *
  • Posts: 5
tankist у меня была подобная проблема с русскими символами. Когда перенёс сайт с денвера на хостинг, то там всё заработало нормально. Скорее всего это траблы настроек денвера.