We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36250
    • 4 Posts
    I am totally lost with this.
    First, can someone show me example with using VisionCart?

    I did this.
    I downloaded VisionCart. and Instal it. I am ok with that. smiley

    In the template I put this:
    <table cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td colspan="2">        [[$top_header]]</td>
            <td><div id="visioncart-shoppingcart"></div></td>
           <td width="200">       </td>
        </tr>
        <tr>
            <td width="400">[[!vcWayfinder]]</td>
            <td>[[*content]]</td>
            <td width="200">[[!Login?]]<hr />[[!vcGetBasket]]</td>
        </tr>
    </table>


    Then I made all the Resources like:
    - Webshop
    [[!vcGetCategories?parents=`0`]]

    - Order
    [[!vcOrderProcess]]

    - View order
    [[!vcOrderView]]

    - Order history
    <h2>Order history</h2>
    [[!vcOrderHistory?viewOrderResource=`id from the view order resource we just made`]]?

    - Login
    [[!Login]]

    -Profile
    [[!FormIt?preHooks=`vcFormItGetUser`&hooks=`vcFormItSaveUser`&submitVar=`vc_user_form`&validate=`fullname:required,address:required,zip:required,state:required,country:required,city:required`&clearFieldsOnSuccess=`1`&store=`1`]]
    <form action="[[~[[*id]]]]" method="post">
        <table>
            <tr>
                <td colspan="2"><strong>Shipping address</strong></td>
                <td colspan="2"><strong>Billing address</strong></td>
            </tr>
            <tr>
                <td><strong>Full name</strong></td>
                <td><input type="text" name="shipping_fullname" value="[[!+fi.shipping_fullname]]" /> [[+fi.error.shipping_fullname]]</td>
                <td><strong>Full name</strong></td>
                <td><input type="text" name="billing_fullname" value="[[!+fi.billing_fullname]]" /> [[+fi.error.billing_fullname]]</td>
            </tr>
            <tr>
                <td><strong>Adres</strong></td>
                <td><input type="text" name="shipping_address" value="[[!+fi.shipping_address]]" /> [[+fi.error.shipping_address]]</td>
                <td><strong>Adres</strong></td>
                <td><input type="text" name="billing_address" value="[[!+fi.billing_address]]" /> [[+fi.error.billing_address]]</td>
            </tr>
            <tr>
                <td><strong>Zip code</strong></td>
                <td><input type="text" name="shipping_zip" value="[[!+fi.shipping_zip]]" /> [[+fi.error.shipping_zip]]</td>
                <td><strong>Zip code</strong></td>
                <td><input type="text" name="billing_zip" value="[[!+fi.billing_zip]]" /> [[+fi.error.billing_zip]]</td>
            </tr>
            <tr>
                <td><strong>City</strong></td>
                <td><input type="text" name="shipping_city" value="[[!+fi.shipping_city]]" /> [[+fi.error.shipping_city]]</td>
                <td><strong>City</strong></td>
                <td><input type="text" name="billing_city" value="[[!+fi.billing_city]]" /> [[+fi.error.billing_city]]</td>
            </tr>
            <tr>
                <td><strong>State</strong></td>
                <td><input type="text" name="shipping_state" value="[[!+fi.shipping_state]]" /> [[+fi.error.shipping_state]]</td>
                <td><strong>State</strong></td>
                <td><input type="text" name="billing_state" value="[[!+fi.billing_state]]" /> [[+fi.error.billing_state]]</td>
            </tr>
            <tr>
                <td><strong>Country</strong></td>
                <td><input type="text" name="shipping_country" value="[[!+fi.shipping_country]]" /> [[+fi.error.shipping_country]]</td>
                <td><strong>Country</strong></td>
                <td><input type="text" name="billing_country" value="[[!+fi.billing_country]]" /> [[+fi.error.billing_country]]</td>
            </tr>
            <tr>
                <td colspan="2"><strong>Billing address same as shipping address</strong></td>
                <td colspan="2"><input type="checkbox" name="billing_as_shipping" value="1" [[!+fi.billing_as_shipping:FormItIsChecked=`1`]] /> (toggle)</td>
            </tr>
            <tr>
                <td colspan="4"><input type="submit" name="vc_user_form" value="Save" />
            </tr>
        </table>
    </form>


    Ok.Then I made chunk
    "vcGetCategories"
    CategoryRow: [[+name]]<hr />

    "vcGetProducts"
    <tr>
        <td>[[!vcGetProductImages?id=`[[+id]]`&prefix=`100_`&rel=`lightboxdemo[]`&limit=`1`]]</td>
        <td>
            <strong><a href="[[+url]]" title="[[+name]]">[[+name]]</a> ([[!vcGetProductCustomField?id=`[[+id]]`&field=`Publisher`]])</strong>
    <p>[[+vc.category.name]] | [[!vcGetProductCustomField?id=`[[+id]]`&field=`Release year`]] | PEGI [[!vcGetProductCustomField?id=`[[+id]]`&field=`PEGI`]] | Professionele beoordeling: [[!vcGetProductCustomField?id=`[[+id]]`&field=`Rating`]]
            <p>[[+description:ellipsis=`250`]]</p>
            <p><a href="[[+url]]" title="Lees meer">Lees meer...</a></p>
    <!--     [[!vcGetProductCustomFields?id=`[[+id]]`]]-->
        </td>
        <td>
            <p>Prijs: [[+vc.shop.config.currency]][[+price]]</p>
            <p>[[+stock:if=`[[+stock]]`:gt=`0`:then=`Op werkdagen voor 21:30 besteld, morgen in huis.`:else=`Levering 1 tot 3 werkdagen.`]]</p>
        </td>
    </tr>


    I create some categories, and products. I created all of them by Components.
    Categories are shown then, but I can not get in.
    Products are no show.

    Ok. If you can help, please sad
    You you think I am so damn lost, please say.
    I will get it as a friend note.

    Thx.

      Please help smiley