News:

Support the VirtueMart project and become a member

Main Menu

Creating a custom product

Started by EvanGR, May 27, 2019, 10:34:50 AM

Previous topic - Next topic

EvanGR

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

Studio 42

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.

EvanGR

Is there a way to load my custom javascript only for a specific product?

Studio 42

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

EvanGR

I know how to code in PHP and Javascript.

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