Post by Jassim1 » Wed Feb 05, 2020 9:05 pm

Hello everyone,,
how to add 2 Characters to all products and categories name
like wg- + product namehttps://speedtest.vet/ https://vidmate.bid/ https://123-movies.red/
want to add wg- to all products name.
Last edited by Jassim1 on Tue Feb 11, 2020 7:46 pm, edited 1 time in total.

New member

Posts

Joined
Thu Jan 16, 2020 4:55 pm

Post by straightlight » Wed Feb 05, 2020 9:14 pm

While the OC version has not been posted, by simply editing your catalog/view/theme/<your_theme>/template/product/product.twig file. Then, to follow this FAQ: viewtopic.php?f=134&t=215776#p718325 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by thekrotek » Wed Feb 05, 2020 9:16 pm

If this is a permanent change, use PHPMyAdmin for this (mind the prefix):

UPDATE oc_product_description SET name = CONCAT('wg-', name)

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by straightlight » Wed Feb 05, 2020 9:20 pm

Also take note that updating a database table is based on the data capacity which a server is limited into. If you use a mass amount of products and you'd simply like to add a '-', better to use a replace function in your TWIG file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by thekrotek » Wed Feb 05, 2020 9:36 pm

straightlight wrote:
Wed Feb 05, 2020 9:20 pm
Also take note that updating a database table is based on the data capacity which a server is limited into. If you use a mass amount of products and you'd simply like to add a '-', better to use a replace function in your TWIG file.
This particular query is extremely simple and will work on basically any amount of products. Usually, only complex queries fail on large number of entries.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by straightlight » Wed Feb 05, 2020 9:41 pm

It has also been seen despite on the small queries the limitations set by hosting providers regarding large amount of transactions on a database table that cannot be completed but rather the operation to expire before the process even completes. These events are encountered when using limited hosting packages versus the high amount of values that needs to be affected.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by HiperLynx007 » Mon Oct 14, 2024 4:01 pm

Hi,
My module Prodyuct Manipulator is able to mass change product names (and other product properties like price, model, options, attributes etc.)

Newbie

Posts

Joined
Wed Aug 28, 2024 8:22 pm

Post by paulfeakins » Mon Oct 14, 2024 5:47 pm

straightlight wrote:
Wed Feb 05, 2020 9:41 pm
It has also been seen despite on the small queries the limitations set by hosting providers regarding large amount of transactions on a database table that cannot be completed but rather the operation to expire before the process even completes.
No, you're talking utter nonsense as usual.

An SQL UPDATE to add a couple of letters to every product is not going to cause this kind of issue, and if it does you need to switch hosts immediately.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by paulfeakins » Mon Oct 14, 2024 5:48 pm

thekrotek wrote:
Wed Feb 05, 2020 9:16 pm
If this is a permanent change, use PHPMyAdmin for this (mind the prefix):

UPDATE oc_product_description SET name = CONCAT('wg-', name)
This is the correct answer here, ignore any of straightlight's ramblings about twig files.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: pprmkr and 26 guests