type:
integration
system:
MODx
name:
Product Options with Ditto
description:
Basic instructions to use Ditto and child documents to build product option select boxes.
tags:
cms,
product options,
tutorial

Product Options & Modifiers

What if you have a single product that comes in various sizes? Create a dynamically generated select box using Ditto:

<select>
[[Ditto? &parents=`id of container` &tpl=`Foxycart-select` &display=`all`]]
</select>

Where your template chunk Foxycart-select looks something like this (line breaks added for legibility):

<option name="size" value="[+ItemSize+]{p:[+ItemPrice+],w:[+ItemWeight+],c:[+PartNo+]}">
	[+ItemSize+]
</option>
 
integration/modx/productoptions.txt · Last modified: 2008/10/19 11:46 by 66.56.14.53
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki