News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to add text/code to all produrcts at once?

Started by peaceandlove, February 15, 2015, 04:52:01 AM

Previous topic - Next topic

peaceandlove

We have around 1000 products, just after heading of product we want to add a plugin code

{some code} or you can say some text to all products.

Mnaullay adding them one by one is too large task, any way to add them quick.

The code is same for all products

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

in the template? GJC, come on.

No. The right way is to use a product Pattern (unpublished parent product). There you just add a customfield string without a check at "is input" and thats it. Is even using already the language keys so you can even make it translateable.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

GJC Web Design

swings and roundabouts....  if I want the same message on a huge % of products why not stick it in a template over ride?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

Overrides are not an enduser solution. And I invested a lot so that VM needs less overrides.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Jörgen

Hello Milbo

Sorry to break in like this. I understand that the idea You are proposing sounds nice when You start with no Products. But when You have over 1000 products there would be a lot of work adding an extra text string to each product. I understand that this can be done with a sql script, but this is also no enduser solution. My guess is that You eventually might end up with som adjustments for the layout that can´t be done with CSS alone, so You may need the override anyway.

Just my 2 cents

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Milbo

Quote from: Jörgen on February 17, 2015, 11:33:45 AM
But when You have over 1000 products there would be a lot of work adding an extra text string to each product.
Yeah if you setup your products without any structure. We use for all products a product pattern, so it is just one product, which need to be changed. The working with child works now very robust and stable.
Missing indeed is a button to assign an existing product to a parent, or maybe even with a bulk, or per category. So also endusers could easily use it for already existing products.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Jörgen

Hello Milbo
QuoteMissing indeed is a button to assign an existing product to a parent, or maybe even with a bulk, or per category. So also endusers could easily use it for already existing products.

This is what I mean :) Right now the solution that GJC proposed will be the right way to go. You can Always later apply these patterns, when the option is available.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.