VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: rippergr on April 01, 2013, 12:28:45 PM

Title: Can I add multiple descriptions to a product?
Post by: rippergr on April 01, 2013, 12:28:45 PM
Hello
Is there any way that I can add multiple descriptions and show them only in a specific shopper group to a product just like I do with price in virtuemart 2?
I don't mind if this is a hack or a plugin .
Thanks in advance
Title: Re: Can I add multiple descriptions to a product?
Post by: bdimov on April 02, 2013, 21:35:02 PM
You can copy products and then every product has 2 copies for 2 shopper groups... if u need more you can copy again...
Title: Re: Can I add multiple descriptions to a product?
Post by: rippergr on April 03, 2013, 09:58:45 AM
thanks for your reply.
I thought that solution but I was hoping something more easy , becuase that way I must alter many products and it will confuse the client.
Title: Re: Can I add multiple descriptions to a product?
Post by: alatak on April 03, 2013, 16:00:52 PM
Hello
You can also create custom fields, or content plugins.

Content plugins migth the easiest way.
Like this, you can add all the infos in the description, and the content plugin decides  wether the specific content is displayed or not.

Both solution requires PHP skills.
Title: Re: Can I add multiple descriptions to a product?
Post by: rippergr on April 05, 2013, 20:15:18 PM
I didn't understand how can I do that. What do you mean with content plugins? Can you give me an example to understand?
Thanks
Title: Re: Can I add multiple descriptions to a product?
Post by: romatvirtue on May 13, 2013, 15:35:27 PM
Hi there. I would also like to find out how to implement the contect plugin.

Thank you in advance.
Title: Re: Can I add multiple descriptions to a product?
Post by: jenkinhill on May 13, 2013, 15:45:29 PM
Content plugins are Joomla plugins See the docs for how to build them:  http://docs.joomla.org/Plugin_Development
Title: Re: Can I add multiple descriptions to a product?
Post by: romatvirtue on May 14, 2013, 06:10:26 AM
Quote from: jenkinhill on May 13, 2013, 15:45:29 PM
Content plugins are Joomla plugins See the docs for how to build them:  http://docs.joomla.org/Plugin_Development

Thank you for your reply. What I am really looking for is to have multiple descriptions for each product and display the descriptions individually based on what user clicks on. Consider the following example:

Link 1                Description 1
Link 2 Product 1 Description 2
Link 3                Description 3


When user clicks on Link 1, I need to display Description 1 for Product 1;
When user clicks on Link 2, I need to display Description 2 for Product 1;
When user clicks on Link 3, I need to display Description 3 for Product 1.


I am assuming I can do it with "if then else" statement, but not sure how... Any ideas on how to do this?:)


Thank you in advance,
Billy.
Title: Re: Can I add multiple descriptions to a product?
Post by: jenkinhill on May 28, 2013, 13:13:55 PM
To do that I suggest you use sourcerer so you can use whichever code method you like within the long description.   http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-content/5051