VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: EvanGR on May 27, 2019, 10:34:50 AM

Title: Creating a custom product
Post by: EvanGR on May 27, 2019, 10:34:50 AM
Hello,

We want to create a custom product page, with a unique interface and layout than the other products.

We want to add a javascript app on the page, to allow the customer to set up the product parameters. The parameters will be set up by our javascript code, but we need to (somehow) pass them to the product when it's added to the cart.

We then want to allow this product to be added to the cart, and be ordered as usual.

Specific questions:

1) Can we customize only selected product pages with our own template?

2) Which files do we need to tweak or extend, to provide for our javascript code to be used in a product?

Any suggestions for a starting place, or examples, are welcome.

Thanks
Title: Re: Creating a custom product
Post by: Studio 42 on May 27, 2019, 12:45:00 PM
Check in Virtuemart demo for a standard way to add custom fields values and replicate it with your javascript.
I really dont know why you have this question, check your browser console to see the serialized form values.
Title: Re: Creating a custom product
Post by: EvanGR on May 27, 2019, 13:12:31 PM
Is there a way to load my custom javascript only for a specific product?
Title: Re: Creating a custom product
Post by: Studio 42 on May 27, 2019, 13:59:33 PM
Quote from: EvanGR on May 27, 2019, 13:12:31 PM
Is there a way to load my custom javascript only for a specific product?
Do you know something about Joomla or coding ?
You can do a specific override for only some products if needed.
You can do your own custom field plugin to add your javascript and own HTML.
You have a lot of way to add javascript. Using a module, a Joomla plugin ... of course any solution need coding skills
Title: Re: Creating a custom product
Post by: EvanGR on May 27, 2019, 15:49:58 PM
I know how to code in PHP and Javascript.

I do not know about Joomla and Virtuemart, but I am willing to explore.