Is it possible to add multi-select option with prices in the webshop for a product

Author Message

Corinne Collins

Tuesday 07 December 2010 7:45:35 am

Hello,

The owner of a shop I am working on sells furniture. He wants to be able to provide a multiple selection of additional furniture pieces along with their respective prices to go with a bed on the product page (the page that displays the product, price, and other options and add to cart button).For instance he wants to offer a dresser, a mirror, a nightstand as possible additional options to the bed.

Is it possible to do this with the ezPublish Webshop or will he have to add the additional pieces of furniture as individual products?

Thanks so much for any help or assistance.

Andrew Duck

Wednesday 08 December 2010 6:44:32 am

You can use pricing in multi-option2 attributes. It does have trade offs though. Normally you would use these as modifiers for a product, ie choosing the colour and sizing and print of a shirt which may influence pricing slightly but overall requires very little informationn. If you were looking to store a lot of product information about each of the addons and there is the possibility they could be bought on their own then they should be individual products. If you end up with them all as individual products you either need a modification to allow you to add multiple products to a cart in a single page or you need a modified options datatype that allows you to tie options to other products.

I've implemented all of the above on different projects, they each come with pros and cons.

Andrew Duck, Executive Director, Quiqcorp Limited
eZ Certified Developer and Trainer.
Member of the Community Project Board
http://quiqcorp.com | http://twitter.com/andrewduck

Corinne Collins

Thursday 09 December 2010 7:20:01 am

Thank you for your quick response. I think we'll probably go ahead and make them separate products.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:48:36
Script start
Timing: Jan 18 2025 02:48:36
Module start 'layout'
Timing: Jan 18 2025 02:48:36
Module start 'content'
Timing: Jan 18 2025 02:48:37
Module end 'content'
Timing: Jan 18 2025 02:48:37
Script end

Main resources:

Total runtime0.5861 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.3984152.6875
Module start 'layout' 0.00500.0032 741.085939.5313
Module start 'content' 0.00820.5764 780.6172533.9063
Module end 'content' 0.58460.0014 1,314.523412.2188
Script end 0.5861  1,326.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5501160.0002
Check MTime0.00130.2197160.0001
Mysql Total
Database connection0.00080.128610.0008
Mysqli_queries0.542992.6264570.0095
Looping result0.00060.0994550.0000
Template Total0.557395.120.2786
Template load0.00210.357820.0010
Template processing0.555294.722520.2776
Template load and register function0.00010.021410.0001
states
state_id_array0.00100.170110.0010
state_identifier_array0.00110.190520.0006
Override
Cache load0.00170.2889130.0001
Sytem overhead
Fetch class attribute can translate value0.00070.111620.0003
Fetch class attribute name0.00100.167340.0002
XML
Image XML parsing0.00090.152920.0004
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00070.1213180.0000
String conversion0.00000.001940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs