Author Topic: Creating a custom product  (Read 358 times)

EvanGR

  • Jr. Member
  • **
  • Posts: 284
Creating a custom product
« 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

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4072
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Creating a custom product
« Reply #1 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.

EvanGR

  • Jr. Member
  • **
  • Posts: 284
Re: Creating a custom product
« Reply #2 on: May 27, 2019, 13:12:31 pm »
Is there a way to load my custom javascript only for a specific product?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4072
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Creating a custom product
« Reply #3 on: May 27, 2019, 13:59:33 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

  • Jr. Member
  • **
  • Posts: 284
Re: Creating a custom product
« Reply #4 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.