Working on a U7.4.3, M2.1.0, FT2.1.0 site and i have a question relating to products with options.
My example product has different options which each have a different price. Adding options to a product is very straightforward, and the drop down on the front end works well, but I can't see any way to set different prices for the different options. This may be by design, or I may be missing something.
An example of what I'm trying to achieve is - the product is a place on a training course. The options are to do with whether you'd like to book accommodation as well, and the different accommodation options have different prices associated with them (B&B, Hotel, Camping etc.).
Once I've got this working I then need to be able to put a price on the screen for the options currently selected - I guess this will be a bit of JavaScript tagged on to the onChange event of the option dropdown, but I'll need to get a list of the options and their prices out of the system when building the page.
If I understand what you are trying to do correctly, you could either completely override the addItem module, or redefine one or more of the methods to get it to do exactly what you want.
I've just realised that I've missed something very obvious which does exactly what I want to do - I hadn't spotted the 'Product Variants' tab which allow you to set different prices for each options combination.
Sorry to have bothered you ... must be sitting too close to the screen ...
Product Variants in FastTrack
Hi,
Working on a U7.4.3, M2.1.0, FT2.1.0 site and i have a question relating to products with options.
My example product has different options which each have a different price. Adding options to a product is very straightforward, and the drop down on the front end works well, but I can't see any way to set different prices for the different options. This may be by design, or I may be missing something.
An example of what I'm trying to achieve is - the product is a place on a training course. The options are to do with whether you'd like to book accommodation as well, and the different accommodation options have different prices associated with them (B&B, Hotel, Camping etc.).
Once I've got this working I then need to be able to put a price on the screen for the options currently selected - I guess this will be a bit of JavaScript tagged on to the onChange event of the option dropdown, but I'll need to get a list of the options and their prices out of the system when building the page.
Any suggestions appreciated.
Cheers,
Crac
If you look in the merchello.ui.js file the addItem module (source is here https://github.com/Merchello/Merchello/tree/merchello-dev/src/Merchello.Mui.Client/src/jquery/mui/modules/additem) constructs a
ProductDataTable
js object which contains a collection ofProductDataTableRow
js objects. One row represents the product itself and the rest (if any) of the rows will be varaints.If I understand what you are trying to do correctly, you could either completely override the addItem module, or redefine one or more of the methods to get it to do exactly what you want.
I'd be interested in hearing how it goes =)
Hi Rusty,
I've just realised that I've missed something very obvious which does exactly what I want to do - I hadn't spotted the 'Product Variants' tab which allow you to set different prices for each options combination.
Sorry to have bothered you ... must be sitting too close to the screen ...
Thanks for your help.
Cheers,
Crac
is working on a reply...