Example Product

Top  Previous  Next

Below you see an example product definition to test page increments, features, feature options, surcharges and paper sizes. It is also found in the <SetupWizard>\Source\4all.EN\Products_demo.xml.

If the demo product is selected in the Publisher product wizard, the following options dialog appears:

 clip0016

 

lightbulb_on

You can add the demo product to your own products.xml to test the dynamic spine width for instance.
The corresponding attributes are marked red below.

  <PRODUCT id="fb0006" active="1" selected="0" groupid="bk1">

    <ShortName>Photo Book, portrait</ShortName>

    <LongName>Photo Book, portrait (demo product)</LongName>

    <ImageFile>images\fb0006.gif</ImageFile>

    <FoldFile>images\fold_gradient1.png</FoldFile>

    <PinchImageFileLeft Distance="0.3cm">images\pinch_left.png</PinchImageFileLeft>

    <PinchImageFileRight Distance="0.3cm">images\pinch_right.png</PinchImageFileRight>

    <Description format="text/html">Feature, Options and UpPrice demo product</Description>

    <BasePrice>25000</BasePrice>

    <REBATES>

      <Rebate amount="5" price="0.98" />

      <Rebate amount="10" price="0.97" />

      <Rebate amount="15" price="0.96" />

      <Rebate amount="20" price="0.95" />

    </REBATES>

    <VAT>1900</VAT>

    <InactiveMsg />

    <StatusMsg>Makes a great gift!</StatusMsg>

    <EasyMode></EasyMode>

    <ExpertMode>aGradient,aTexture</ExpertMode>

    <HiddenMode>aGroup,aUnGroup,aExpertMode</HiddenMode>

    <LayoutFile>layout_fb0006.dtp</LayoutFile>

    <TemplateFile>templates_fb0006.dtp</TemplateFile>

 

    <CHUNKS>

      <CHUNK title="cover">

        <Fixed>1</Fixed>

        <BasePageCount>1</BasePageCount>

        <BaseSpineWidth>3,5mm</BaseSpineWidth>

        <MaxPageCount>1</MaxPageCount>

        <UploadFormat>PDF</UploadFormat>

      </CHUNK>

      <CHUNK title="content">

        <Fixed>0</Fixed>

        <IconFile />

        <BasePageCount>20</BasePageCount>

        <PageIncrement>4</PageIncrement>

        <MaxPageCount>32</MaxPageCount>

        <UpPriceInc>2950</UpPriceInc>

        <UploadFormat>PDF</UploadFormat>

      </CHUNK>

    </CHUNKS>

 

    <FEATUREGROUPS>

      <FEATUREGROUP>                                                  //FEATURE GROUP: COVER

        <Name>Cover</Name>

        <FEATURE selected="1">

          <Name>Linen</Name>

          <ImageFile>images/linen_pgb.gif</ImageFile>

          <OPTION selected="0">

            <Name>Green</Name>

          </OPTION>

          <OPTION selected="1">

            <Name>Blue</Name>

          </OPTION>

        </FEATURE>

        <FEATURE selected="0">

          <Name>Artificial Leather</Name>

          <ImageFile>images/leather_bbr.gif</ImageFile>

          <UpPrice>5000</UpPrice>

          <OPTION selected="1">

            <Name>Black</Name>

          </OPTION>

          <OPTION selected="0">

            <UpPrice>1000</UpPrice>

            <Name>Black with gold edges</Name>

          </OPTION>

        </FEATURE>

      </FEATUREGROUP>

 

      <FEATUREGROUP>                                                  //FEATURE GROUP: BINDING

        <Name>Binding</Name>

        <FEATURE selected="1">

          <Name>Plastic</Name>

          <DisplayName>Plastic spirale</DisplayName>

          <OPTION selected="1">

            <Name>Metal</Name>

            <DisplayName>Metal spirale</DisplayName>

          </OPTION>

          <OPTION selected="0">

            <Name>Gold</Name>

            <DisplayName>Gold plated spirale</DisplayName>

            <UpPrice>1000</UpPrice>

          </OPTION>

        </FEATURE>

      </FEATUREGROUP>

 

      <FEATUREGROUP>                                                  //FEATURE GROUP: PAPER

        <Name>Paper</Name>

        <FEATURE selected="1">

          <Name>Recycled Paper</Name>

          <PaperThickness>0.2mm</PaperThickness>  //must include mm or µm; dynamically widens the cover spine,

                                                                   //when PageIncrements are added

        </FEATURE>

        <FEATURE selected="0">

          <Name>Premium Paper</Name>

          <PageUpPrice>10</PageUpPrice>           //both can also be defined inside OPTION, if a dropdown is 

                                                                   //preferred over an image

          <PaperThickness>0.4mm</PaperThickness>  //0.4 mm for testing the dynamic cover spine with PageIncrements

        </FEATURE>

        <FEATURE selected="0">

          <Name>Laminated Paper</Name>

          <UpPrice>1000</UpPrice>                          //= €1 general production surcharge for binding glue

          <OPTION selected="0" visible="1">       //0 = hidden, 1/missing = visible

            <Name>Matt</Name>

            <UpPrice>1000</UpPrice>               //= € 1 longer workflow surcharge

            <PageUpPrice>10</PageUpPrice>         //= 1 cent; don't confuse with UpPriceInc for chunk PageIncrement

            <PaperThickness>3µm</PaperThickness>

          </OPTION>

          <OPTION selected="1" visible="1">

            <Name>Glossy</Name>

            <PaperThickness>0.3mm</PaperThickness>

          </OPTION>    

        </FEATURE>

      </FEATUREGROUP>

 

      <FEATUREGROUP>                                                  //Hidden feature group, if not features are visible

        <Name>Hidden Group</Name>

        <FEATURE selected="1" visible="0">

          <Name>Hidden Feature</Name> 

          <OPTION selected="1" visible="0">

            <Name>Hidden Option</Name>

          </OPTION>          

        </FEATURE>

      </FEATUREGROUP>

    </FEATUREGROUPS>

  </PRODUCT>

 

lightbulb_onAn explanation of the attributes can be found here.

 

2015 © 3P Photobook Publisher