Treasurechest modx integration

TreasureChest is an easy to use eCommerce system for MODx CMS/F. It is a 100% MODx native shopping cart, product manager, inventory manager, shipping assistant, and sales tracking solution which uses PayPal Website Payments Standard for payment processing. Further Reading here Treasurechest

Step 1 Download Treasurechest

Please download TC using below link also read the installation guide its simple after download unzip and upload to your root directory of modx installation.

Download at TC site Download at MODX

Step 2 Install Treasurechest

Open your web browser and navigate to your MODx website url /install/ (e.g. http://www.yoursite.url/install/) and enter your MODx Manager credentials to authenticate and authorize the installation. Agree to the license then click the “Install” button. After installation is complete, log into the MODx Manager, you will see module treasurechest added.

2010-02-02_00041

Step 3 Create Cart Document

Create new resource (new page or document) name it cart or any name you like and follow the settings below i also set the paramater cart_template for cart layout chunk when you will click later on view cart you will see this chunk in action.

uncheck the searchable from the setting of resource or page, remember the id of the card or newly created resource it will be used in configuration of treasurechest in next step.

2010-02-02_0011

Step 4 Configure TreasureChest

To configure TC click on modules than on treasurechest you will see product manager and sales manager icons click on product manager on this page you will see list of products and paypal email configuration on top right corner find the Edit Configuration button and click on it. change the cart id field with your newly (cart) document id and save that’s it your cart is setup :)

2010-02-02_0022

Step 5 Create chunk for Cart

Remember i used the cart_template paramater in cart document snippet call in Step 3 now its time to create that chunk[!TreasureChest? &service=`cart` &cart_template=`tcCartItem`!]
Create new chunk name it tcCartItem and paste below code in chunk code field.

[+cart.item_name+] value="[+cart.quantity+]" size="3" maxlength="3" /> $[+cart.amount+] ea. Remove [+cart.option_name_0+] [+cart.option_value_0+] [+cart.option_name_1+] [+cart.option_value_1+]


2010-02-02_0031

Step 6 Create a product page

Create new resourse name it product_name fill the longtitle and summary field with some dummy data and paste below code in resource content field.
[!TreasureChest?&item=`1`!]

Product Details

[+introtext+]

[+treasure.image.thumb.thickbox+]
Item Name: [+treasure.item_name+]
Price: $[+treasure.amount+]
Shipping Cost: $[+treasure.shipping+]
[+treasure.add+]

Thant’s all your treasurechestcart is ready to go live :)

4 Responses to “Treasurechest modx integration”

  1. Ricky  on February 13th, 2010

    How can I display all products on single page????

    Thanx

  2. Yasir Haleem  on February 27th, 2010

    @Ricky just create a page e.g give it some category name and create all pages(products) under this cateogry and in category content area make a ditto call :) so this way you will also be able to create categories i hope it will help.

  3. themia  on May 4th, 2010

    Can you place several items in one page?
    Such as:
    [!TreasureChest?&item=`1`!]
    and then
    [!TreasureChest?&item=`2`!]
    then
    [!TreasureChest?&item=`3`!]

    Etc . . .

    When trying to do so, all I get on that page is the information for item3 and it ignores 1 and 2.

    How do you do this?

  4. Yasir Haleem  on May 10th, 2010

    @themia sorry for the late reply…i don’t use this way how i do is, using ditto—i create parent and create resource under this parent and call ditto on parent documetn area…than link to cart info page. i hope it will help.


Leave a Reply