Page 2 of 2

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Sat Mar 09, 2013 9:34 pm
by Cleo
Hello

I noticed lately that for all the new product I am adding the tags are not showing.

So I ran this script, got the message tags converted and..... tags for new products still not showing, but it copied all my French tags over the English ones!!!!!!!!!! :'(

Around 400 product to go though one more time to fix those but that won't make the missing ones appear!!!

So I believe that it's not a good idea to run the script on a bilingual site!!!!

Anything else I should do to get the tags show?

tks
Cleo

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Tue May 28, 2013 1:08 am
by OpenCart Addons
Just used this on a client's site after upgrading, awesome work thanks!


Just one quick tidbit. She was using multi-language and I found the script wasn't adding the tags to the correct language. I change this line:

Code: Select all

$db->query("UPDATE " . DB_PREFIX . "product_description SET tag = '" . $db->escape(strtolower($row['xtags'])) . "' WHERE product_id = '" . (int)$row['product_id'] . "'");
To this:

Code: Select all

$db->query("UPDATE " . DB_PREFIX . "product_description SET tag = '" . $db->escape(strtolower($row['xtags'])) . "' WHERE product_id = '" . (int)$row['product_id'] . "' AND language_id = '" . (int)$result['language_id'] . "'");
and it worked perfectly.



Cheers,
Joel.

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Fri Jun 07, 2013 7:55 am
by themannn
Thank you for this, worked fine!

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Mon Jun 10, 2013 10:50 pm
by Qphoria
OpenCart Addons wrote:Just used this on a client's site after upgrading, awesome work thanks!


Just one quick tidbit. She was using multi-language and I found the script wasn't adding the tags to the correct language. I change this line:

Code: Select all

$db->query("UPDATE " . DB_PREFIX . "product_description SET tag = '" . $db->escape(strtolower($row['xtags'])) . "' WHERE product_id = '" . (int)$row['product_id'] . "'");
To this:

Code: Select all

$db->query("UPDATE " . DB_PREFIX . "product_description SET tag = '" . $db->escape(strtolower($row['xtags'])) . "' WHERE product_id = '" . (int)$row['product_id'] . "' AND language_id = '" . (int)$result['language_id'] . "'");
and it worked perfectly.



Cheers,
Joel.
Thanks for the update.... Yea I don't often think in multilingual terms.

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Tue Sep 17, 2013 2:04 am
by siteadvice
Extremely useful script - thank you.

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Thu Sep 26, 2013 4:14 am
by ddowdall
Qphoria Thank you for this fix! ;D

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Wed Oct 16, 2013 2:43 am
by hoze
Verry good script. Thank you!

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Fri Nov 08, 2013 5:06 am
by Vali_REK
Thank you.
1.5.1.3 to 1.6
perfect

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Sun Dec 08, 2013 3:13 am
by SystemTN
Works great! Thanks. Good work! I bad English, sorry!

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Fri May 02, 2014 10:31 pm
by labeshops
Just wondering if anyone knows if I need to run this from and update from 1.5.2.2 to 1.5.6.4 or has it been incorporated now? My tag fields seem to be blank on all products, but from the sounds of it, Q was going to include it in the upgrade script??

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Sun May 04, 2014 11:58 pm
by ADD Creative
I can't see it in the 1.5.6.4 code, so it looks like it's still needed. Remember to backup your database first.

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Fri May 09, 2014 10:07 pm
by Qphoria
labeshops wrote:Just wondering if anyone knows if I need to run this from and update from 1.5.2.2 to 1.5.6.4 or has it been incorporated now? My tag fields seem to be blank on all products, but from the sounds of it, Q was going to include it in the upgrade script??
It will never be part of the upgrade system. You will need it whenever coming from a 15x version prior to 1.5.4, regardless of what version you eventually use.

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Sat Jul 12, 2014 8:22 pm
by mutemancer
I have 1.5.2.1 It doesn't work. There is white page If I write http://www.verdtoneshop.com/tags-v154v2.php on browser. How can I do it ?

Re: [TAGS] 1.5.x to 1.5.4 Product Tag Conversion Script - FI

Posted: Sat Apr 11, 2015 10:55 pm
by whmteam
Hello admin i have pm you so pplease check and add me on skype i need upgrade services