Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

On 1/24/2020 at 11:31 PM, Jack_mcs said:

A new version has been uploaded with these changes:

  • Corrected the code to add individual missing pages when the automatic page option is off.
  • Corrected the add missing pages code since it mangled the includes/header_tags.php file.
  • Corrected the code that adds categories and manufacturers to the titles so it doesn't apply when the parents setting is set to standard.
  • Corrected the duplicate product code in admin/categories.php.
  • Corrected the database installer so it did not delete previous tables.
  • Removed a call to language files no longer needed.

Is it compatible with Phoenix- 1.0.5.0?

Share this post


Link to post
Share on other sites
9 hours ago, radhavallabh said:

Is it compatible with Phoenix- 1.0.5.0?

Yes, it should. It was test in 1.0.4.4 and nothing was changed in the later versions of Phoenix that would cause problems.

Share this post


Link to post
Share on other sites

Hi, everthing worked great in phoenix 1.0.5.0  but in phoenix 1.0.5.2. the update buttom on the bottom in the Fill Tags Menu is gone.

fillinmenu.jpg

Share this post


Link to post
Share on other sites

@Rollo44 I don't have that version setup here so I can't test it but the following may work. In admin/header_tags_fill_tags.php, find

              <td align="center"><?php echo (tep_image_submit('button_update.gif', IMAGE_UPDATE) ); ?></td>

and replace it with

              <td align="center"><?php echo tep_draw_bootstrap_button(IMAGE_UPDATE, 'fas fa-save', null, 'primary', null, 'btn-success btn-block btn-lg'); ?></td>

 

Share this post


Link to post
Share on other sites

Thanks, that works, the buttom is back. Unfortunatly something else doesn't work. After pressing the update bottom its says that tags have been filled. But when you go to the category or product page the SEO fields are empty. But maybe its just my store.

Share this post


Link to post
Share on other sites

No, it's probably the code since the button has not been tested. You could try running the included cron file since that files empty tags and doesn't need a button. I don't recall if it will run manually but you could quickly setup a cron job for it. As for the button, I may work on that at some point. The problem is that every other version of Phoenix breaks code that has always worked and, as a developer, it just takes too much time to keep up with the changes.

Share this post


Link to post
Share on other sites

Jack using Pheonix 1.0.5.4 and trying to install. FIND (around line 787):

<?php
  } elseif ($action == 'new_product_preview') {
    $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id, pd.products_seo_title, p.products_gtin, pd.products_seo_description, pd.products_seo_keywords from products p, products_description pd where p.products_id = pd.products_id and p.products_id = '" . (int)$_GET['pID'] . "'");

REPLACE WITH:
 
<?php
  } elseif ($action == 'new_product_preview') {
    /*** Begin Header Tags SEO ***/ 
    $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id, pd.products_seo_title, p.products_gtin, pd.products_seo_description, pd.products_seo_keywords, " . GetHTSFieldListWithIDs() . " from products p, products_description pd where p.products_id = pd.products_id and p.products_id = '" . (int)$_GET['pID'] . "'");
    /*** End Header Tags SEO ***/ 

problem is  that I already replaced that area with Quantity Price breaks

<?php
  } elseif ($action == 'new_product_preview') {
    // BOF QUANTITY Price Breaks
    $product_query = tep_db_query("select p.*, pd.*, ptdc.discount_categories_id, dc.discount_categories_name from products p left join products_to_discount_categories ptdc on p.products_id = ptdc.products_id left join discount_categories dc using(discount_categories_id), products_description pd where p.products_id = pd.products_id and p.products_id = '" . (int)$_GET['pID'] . "'");

How can I combine them to work.

Thanks

 

 

 


"Do what I'm thinking Not what I said." https:windowanddoorparts.us

Share this post


Link to post
Share on other sites

@dewarsco2You can skip that step. Its purpose is to load in the new fields added by this addon. But in the newer versions of Phoenix, the code loads in all of the fields already so doing this step is not needed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×