Jump to content

Question about editing 'Smarty Templates'


JamesyBHOY

Recommended Posts

I have a PHP shopping cart (X-Cart) that uses 'Smarty Templates' for it's layout, which are are CSS sheet & a bunch of TPL files.

[url=http://www.x-cart.com/articles/x-cart_templates.html]http://www.x-cart.com/articles/x-cart_templates.html[/url]

[url=http://smarty.php.net/whyuse.php]http://smarty.php.net/whyuse.php[/url]

Unfortunately I'm not really that familiar with it & so can only make the very basic of changes to the template. What I really would like to do is use a GIU, WYSIWYG type of interface to make my changes. Basically have a folder with the template, then load it in. The skin comes up & I can edit it directly, like what you can do in Coffeecup HTML Editor, SiteSpinner etc. Once I'm happy with the changes, I click save & the prog automatically updates the CSS & TPL files for me making all changes. Then I upload the files to my server & integrate them to my cart.

Because I'll always be making changes to where everything goes, such as adding banners, a new main logo to advertise special offers etc etc, then I'd rather have my own little prog to do this for me rather than hiring someone to design & make the changes for me in the long run.

I'm about to get some add-on mods done to my store, so I was wondering about getting him to make me something similar to what I described above.

So basically my question is, could this prog be done in PHP at all, or would it be too complicated? Thanks..
Link to comment
Share on other sites

Thanks for the reply, the cart already has a built in editor & I've already purchased it. However when you try to edit it from within the admin panel itself, it's all the source code. So I can only change basic things like the logo, colours etc.

I'm currently getting a couple of additions made to it by a programmer that I'm going to hire. However I've checked the net & although there are WYSIWYG Html editors etc, I haven't found any for Smarty Templates (CDD + TPL). So thought that I'd ask here to see if anybody who's a lot more experienced in PHP knows if it could possibly be done or not. Simply because I don't want to be paying out money to him to mess around only to find that it couldn't be done in the first place.

Simply a standalone PHP script, that I upload to my server, log in. Then click on the upload button, upload the folder that contains all the template files. Now I can see the template on the screen, then I'm able to make changes directly to it. Such as re-place text, move the search button to another location. Change ads to other parts of the page etc. Then once I'm happy at how it looks on screen. I click the save button. The prog then saves the modified code. Then I simply move the folder into my template directory of the cart. Log into the cart & change the skin etc.

I feel doing this will save me in the long run, hiring a smarty template editor a few times a year would be much more expensive than getting my own program to do this whenever I want.

It's just the fact that would you be able to create a GUI WYSIWG editor to edit all aspects of my store template without knowing any code. Not sure if I've made by requirements clear or not, it is to me but if anyone needs, then I can try & put it another way to try & make it more clearer.

Thanks..
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.