Page 1 of 1

Integrating a cart system

Posted: Sat Sep 23, 2006 11:54 am
by solstice
Hi
I'm thinking of using CMSMS along with a cart system which I like (not one of the ones that there is a module for)

Normally when I integrate the cart system into  a standard HTML site  I just paste php includes lines (like this: ) into a table on the page, where I want.

Can I still just do that on the CMSMS template, or should I somehow be using tags ?

Andy

Re: Integrating a cart system

Posted: Sat Sep 23, 2006 12:21 pm
by tsw
its cleaner to create user defined tag and call it

btw, what is this cart system you are using?

Re: Integrating a cart system

Posted: Sat Sep 23, 2006 4:29 pm
by solstice
Thanks for that, and just to get me headed in the right direction, the tag would contain presumably this bit:
include "vsadmin/db_conn_open.php"
, not all the php code that is called by that?

The cart system is www.ecommercetemplates.com.  Not opensource, but not costly, very good support, and loads of features. I like it better than oscommerce which I've tried on a couple of sites. Its easy to slot into an existing site.

Andy

Re: Integrating a cart system

Posted: Sat Sep 23, 2006 7:27 pm
by tsw
cant really tell what the tag should contain.. Havent ever tested that cart system so its impossible to even start quessin what belongs where...

Good luck with it :)

Re: Integrating a cart system

Posted: Mon Oct 09, 2006 12:58 am
by iNSiPiD
solstice, your presumption was correct. Simply type the PHP you want into a tag and then call that tag from either a template or page.

I usually create a content block=header for my sites so that I can easily add custom scripts for any page that might require it.

Sounds like all that is required in this case is a php include. This then assumes that the include is responsible for displaying the cart content. In this case you would need to call the custom tag from a page's {content} block.

Check the code in the include file to make sure it's not creating full HTML and BODY tags. If it is, you should be able to strip it back and just wrap it in a DIV that you can then style as you wish.

Re: Integrating a cart system

Posted: Mon Jan 08, 2007 2:50 pm
by tbuzz88
Soltice. how have you got on with this? I've been looking at the same cart (highly recommended to me) for a charity site that wants to sell books, but I'm not too great on the php front. Is it as simple as using a UDT for each include? It would be a great help to know if it works as we have a very limited budget and don't want to waste money on a cart if we can't use it.

Thanks
Tim

Re: Integrating a cart system

Posted: Tue Jan 09, 2007 6:35 pm
by Pierre M.
tbuzz88, have a look at CMSms' modules. There may be one for osCommerce.
PM