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

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.

eZ debug

Timing: Jan 29 2025 13:47:02
Script start
Timing: Jan 29 2025 13:47:02
Module start 'content'
Timing: Jan 29 2025 13:47:02
Module end 'content'
Timing: Jan 29 2025 13:47:03
Script end

Main resources:

Total runtime0.2212 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.3125180.7969
Module start 'content' 0.00850.0080 769.109493.9141
Module end 'content' 0.01650.2046 863.0234522.4844
Script end 0.2211  1,385.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00331.5034200.0002
Check MTime0.00120.5510200.0001
Mysql Total
Database connection0.00140.624210.0014
Mysqli_queries0.167975.88861410.0012
Looping result0.00140.63811390.0000
Template Total0.204292.310.2042
Template load0.00100.432610.0010
Template processing0.203391.890310.2033
Override
Cache load0.00060.268010.0006
Sytem overhead
Fetch class attribute can translate value0.00110.486810.0011
XML
Image XML parsing0.00040.194010.0004
General
dbfile0.00442.0030200.0002
String conversion0.00000.002730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs