TextCommerce is an open source plugin for the popular content management system TextPattern. Here are a few reasons you might like TextCommerce:
  • Now, 1 solution manages your website and your e-store!
  • Easily pick and choose your features!
  • Written in PHP/MySQL, so most hosts support it!
  • It's open source!
Download Now!
Alpha 0.3
Dec 5

tc_simple_cart 0.1 release

We’re rolling out the features here slowly but surely. As always, we appreciate everyone’s support and patience. One major gap in our plugin suite was the lack of an actual shopping cart to add products to. I’m happy to release an implementation of just that. (Next up is the PayPal checkout but first things first.)

Download

tc_simple_cart.0.1.txt

Usage

This plugin is fairly simple and only contains two tags that need to be implemented.

tc_shopping_cart_add

This tag displays the “Add to cart” button for your product along with the functionality to actually add something to your cart.

Attributes

  • redirect_section: Optional. This is the name of the section to redirect to after a product has been added. If left blank, the product will be added to the cart but remain on the same page.
  • add_message: Optional. Whatever you want the add to cart button to say. Defaults to “Add to Cart”.

Example

<txp:tc_shopping_cart_add 
redirect_section="cart" add_message="Add to Cart!"/>

tc_shopping_cart_detail

This tag displays the shopping cart detail.

Attributes

  • checkout_section: Required. This is the name of the txp section that the ‘checkout’ button will take you to. Defaults to ‘checkout’.

Example

<txp:tc_shopping_cart_add checkout_section="checkout" />

Implementation Guide

Here’s some examples of how you might implement the plugin.

Create an article form to display your product:

product detail form

<h4><txp:title /></h4>
<h5><txp:tc_price /></h5>
<txp:tc_product_image_1 />
<txp:body />
<txp:tc_shopping_cart_add redirect_section="cart" add_message="Add to Cart!"/>

Be sure that you create a section to display your shopping cart detail table. In this example we’ve called the section “cart”. On the cart page we’ve put the following tag:

cart page html


<div id="content">
	<txp:tc_shopping_cart_detail />
</div>

That’s an example of how you can simply implement this plugin.

A word of caution:

We tried to keep our HTML markup very semantic with the shopping cart so be prepared to apply some CSS rules for everything to look good.

Otherwise let me know if you run across any bugs and have fun. Next up PayPal.

— Levi Nunnink

Ads help support TextCommerce

Comment [21]

Oct 17

Alpha 0.3 bug release

Hello everyone. I managed to fix a few of the bugs in alpha 0.2 which brings us alpha 0.3. I fixed the metric/imperial bug. Also the categories “vendors” and “products” are now created upon installation! Not a huge release but I hear our next step is to integrate the shopping cart plugin as well as a checkout feature. That will be nice when it’s done. Enjoy.

— JR Chew

Ads help support TextCommerce

Comment [13]

Oct 5

Bug Roundup

So it’s been a couple of weeks since the latest release and we’ve got some bugs to deal with. The next release is in the works and will address the following bugs:

Bugs

  • The default categories ‘Vendor’ and ‘Products’ need to be created by the install function.
  • Settings page does not update values until refresh.
  • Inconsistant appearence of the ‘Store’ tab. (Is anyone else having issues with this?)
  • Imperial settings not applied to the entire site.

These are fairly simple and should be out sometime next week. Stay tuned. If anyone has come across any other bugs please post them in the comments.

Also, we’ve got quite a few feature enchancement requests. I’m going to address these in another post soon.

Thanks!

— Levi Nunnink

Ads help support TextCommerce

Comment [3]

Sep 14

Alpha 2 Release

So we’ve finally managed to get another release out the door. This is much later than we intended. Yes we suck. Apologies all around and a hearty thank you! to everyone for their patience.

This one is mostly bug fixes and stabilizing the plugin for general consumption but there are some significant updates in here.

Updates:

  • Replaced Scriptaculous Javascript Library w/ Jquery
  • Plugin was split up into several different core libraries to avoid MySQL size errors
  • New install script eliminates the need to download a modded version of TextPattern. Just the plugins will do.

How to Install

Copy and paste the plugin code into the plugin field under Admin > Plugins. To avoid errors install tc_core_library.php first, followed by the rest of the plugins.

Plugin Descriptions

tc_core_library:

Holds all of the main functions for TextCommerce including the setup script which constructs the MySQL databases. It’s preferred that you install this first as to avoid any database problems.

tc_core_customers_library

Holds all of the functions for the customers tab.

tc_core_orders_library

Holds all of the functions for the orders tab

tc_core_products_library

Holds all of the functions for the product and products tabs

tc_core_settings_library

Holds all of the functions for the settings tab

Thanks

I’d specifically like to thank Gerhard Lazu and Anton Andreasson for all their help and support. Without Geri’s TextPattern knowhow, we’d still have to download a modded version. He’s truly a gentleman and a TextPattern whiz. Additionally Anton took the initiative to whip up some seriously awesome JQuery code when he heard we had the need. This release is mostly due to both of them. Thanks guys!

Please post bugs in the comments or email them to levi (at) culturezoo (dot) com.

Up next:

I’ve nearly got a shopping cart plugin completed. That plugin will be integrated w/ PayPal.

— Levi Nunnink

Ads help support TextCommerce

Comment [14]

Aug 20

What is going on??

Ok guys, an apology is in order. We hate to keep stringing you along, but next release is coming. We have just been super busy at Culturezoo. We don’t want any riots though so we’re going to make a special effort to get it out soon. Once again thanks for your patience.

— JR Chew

Ads help support TextCommerce

Comment [8]

Jul 13

Release coming soon!

Hey everyone,
I know you are all dying for us to release the next version of TextCommerce but you will have to wait a little bit longer with good reason. Thanks to Levi, the next release will have a built in shopping cart! We’re expecting to release the next version of TC sometime next week.

On the technical side, I split up the plugin into 6 main core files which eliminates the database size error. After beta testing, we decided it was really time to upgrade to jQuery. Once the upgrade is complete and all the bugs are worked out we will release it.

Thanks for being patient, as we are very busy at Culturezoo.

— JR Chew

Ads help support TextCommerce

Comment [6]

Jul 9

What to expect

In the next release of TextCommerce we are adding an all in one install script that will eliminate the need for you to download a modded version of TextPattern. Also, there should not be any plugin size errors in the next release, as we’re splitting up the plugin into a few different files which will not be so large. We’re also going to be breaking away from the Prototype JavaScript library. Instead we will be using the more favored jQuery. These updates should eliminate a lot of the bugs you have been running into. Thanks for your patience everyone.

— JR Chew

Ads help support TextCommerce

Comment [5]

Jun 29

Hello everyone, new repository w/ whiteboard!

Hello everyone, My name is JR Chew and I am a new developer for Levi’s company Culturezoo. I’m going to be helping out with TextCommerce a little bit.

Recently, we have set up a repository on Google Code, which you can check out right here. It includes a trunk section which will hold our current stable versions of TextCommerce, a development section for development, and a Whiteboard section that will allow you to download all of the experimental stuff created before it goes into the initial release of TextCommerce. Thats all for now.

— JR Chew

Ads help support TextCommerce

Comment [4]

May 25

A brief update

First off allow me to apologize for the lack of updates. For the last month my company has been completely overloaded with work. Combined with that and emergency server migrations of other projects, TextCommerce development has suffered.

The good news is, we’re currently interviewing candidates for web developers and expect to make a hire within the next few weeks. If all goes according to plan we may have a number of developers working on TextCommerce in their spare time instead of only me.

As it stands, I plan to make a bug fix release in the next few weeks that will address all the feedback I’ve recieved. Thank you everyone for your patience! Such is the world of open-source.

— Levi Nunnink

Ads help support TextCommerce

Comment [3]

Apr 25

tc_product_display 0.0.1

You asked for it, so here’s a small collection of tags to display data so far. It’s going to be growing but I wanted to get this out asap.

<txp:tc_price />

This tag displays the product price. It defaults to whatever the store currency is set to or, if no store currency has been set, USD.

Attributes

  • currency – Must be a valid ISO 4217 currency code. Defaults to ‘USD’ if no code has been specified in store preferences. Not required.

<txp:tc_weight />

This tag displays the product weight along with the proper weight units. It defaults to whatever the store weight units are set to. “Imperial” and “Metric” are the only two options.

Attributes

  • units – Must be either ‘metric’ or ‘imperial’. Not required.

<txp:tc_sku />

This tag displays the product sku number. No attributes.

<txp:tc_stock />

This tag displays how many items remain in stock. No attributes.

<txp:tc_vendor />

This tag displays the product vendor name. No attributes.

<txp:tc_product_image_1 />

This tag create an <img> tag of the first product image.

Attributes

  • size – Valid values are ‘small’, ‘meduim’, or ‘large’. Defaults to ‘meduim’. Not required.
  • class – Specifies a stylesheet class for the <img> tag. Not required.
  • alt – Specifies alt text for the <img> tag. Defaults to product name. Not required.

<txp:tc_product_image_2 />

Same as <txp:tc_product_image_1 /> .

<txp:tc_product_image_3 />

Same as <txp:tc_product_image_1 /> .

<txp:tc_product_image_4 />

Same as <txp:tc_product_image_1 /> .

Have fun. Let me know if you come across any bugs.

Download: tc_product_display.0.1

— Levi Nunnink

Ads help support TextCommerce

Comment [2]