jasonb Posted August 21, 2008 Share Posted August 21, 2008 We've just set up the store over at http://www.smokeit.tv/store selling electronic cigarettes. We cant get any of our products to display in the "FEATURED PRODUCTS" section. Does any one know how to get them to display there?Also... We cant change any of the wording on the About us, TOS, Legal ect.. pages. We're actually currently using the prestashop theme. Also does anyone know how to create products to come up as specials? Thanks a lot Link to comment Share on other sites More sharing options...
jtyana Posted August 21, 2008 Share Posted August 21, 2008 1. Featured Products - add that product to the "home" category2. Changing wording - edit the tpl files mostly found in the block folders3. Specials - put the product on special and "Mark as on Sale"My question is how to smoke an electronic cigarette :coolsmile: Link to comment Share on other sites More sharing options...
pcbob Posted August 21, 2008 Share Posted August 21, 2008 Hi Jason, You're not\playing enough To show featured products you need to check the "HOME" in each product to display it on the home page.To change any of the documents you need it edit the .tpl files which reside in the themes/prestashop folder. eg about-us.tpl there is also conditions.tpl and mentions.tpl (this is legal stuff I guess, but can be anything) - If you are really stuck PM me and I'll help you outTo create specials - is basically discounted products - after ading the retail price enter a price in the Reduction amount and the check mark the Mark this product on-sale - thus giving you a final price below.Hope it helpsBob Link to comment Share on other sites More sharing options...
Paul C Posted August 21, 2008 Share Posted August 21, 2008 2. Changing wording - edit the tpl files mostly found in the block folders I wouldn't do that. It makes it a pain to upgrade. Change the copy of the default theme you made instead..... you DID make a copy of the theme before you started changing it didn't you...... Paul Link to comment Share on other sites More sharing options...
jtyana Posted August 21, 2008 Share Posted August 21, 2008 I wouldn't do that. It makes it a pain to upgrade. Change the copy of the default theme you made instead..... you DID make a copy of the theme before you started changing it didn't you...... Paul I keep a copy of the original download so it's always availableThe theme is in a folder of its own, easy to copy back6 of one and half a dozen of the other Link to comment Share on other sites More sharing options...
Paul C Posted August 22, 2008 Share Posted August 22, 2008 It's more that if you change the template files in the blocks, then your changes have to be made again every time you upgrade (potentially, it depends if there have been any changes to the blocks you've modified). Apart from a couple of specialised blocks that keep data within their directories (and probably shouldn't), most of the same changes can be made through the theme and css. If you want to display additional data, then a new block is the way to go.All mothods work, it's just a case of avoiding problems/work in the future!Paul Link to comment Share on other sites More sharing options...
CJ Tyler Posted August 22, 2008 Share Posted August 22, 2008 I'm sensing danger here. I too want to populate the info. boxes, but don't want to mess with the .tpl files if it's not necessary. Here was my intended posting before I found this thread.At the moment I'm getting my contact address in conditions and legal, some default text in delivery and nothing in about us. Do I need to manually edit the .tpl files pertaining to each of those or is there a back office solution I've missed?The problem with editing the .tpl is I can't get HTML to function within the [ ] Normal text shows up but anything within <HTML></HTML> just blanks out the page and removes the right column.Any ideas?But it does look like simple text in the .tpl files is mandatory. Correct? Link to comment Share on other sites More sharing options...
Paul C Posted August 22, 2008 Share Posted August 22, 2008 The tpl files in the theme directory can be edited at will, as they're expected to be different. The "standard" modules CAN be changed, but you do so at your own peril The template files use a library called "smarty" which separates your presentation (html) from your code (php). Information is passed to the template via variables (you'll see them in the .tpl files as {$Variable}. These variables can contain just text or a whole block of html. They can also be an array of items that can be listed out using smarty's macro language.This is quite handy if you're in to template design: http://hasin.wordpress.com/2006/06/10/smarty-cheat-sheet-version-20/Any "text" you use for your conditions etc. (which will be inserted into the page via the template) should be able to support html formatting tags, but you don't create an entire html page, jus the bit to be "inserted". There's no need for <html> <body> or <head> tags, as that's all handled by the overall template page structure.Paul Link to comment Share on other sites More sharing options...
CJ Tyler Posted August 22, 2008 Share Posted August 22, 2008 So it's like I format it on a 'Word' page (yes, I admit it) then copy and paste the formatted text inbetween [ and ] in the .tpl file and smarty does all the clever stuff for me? Link to comment Share on other sites More sharing options...
Paul C Posted August 22, 2008 Share Posted August 22, 2008 CJ you could do it that way, but I suggest you don't!In the Back Office (or Admin) you can enter this information by going to Tools-->Translations. Select your language by clicking the flag in the top section and you'll get a list of all the text items in the store with fields for you to paste YOUR version. The default contents are shown to the left of the input boxes.If you scroll down you'll see a section headed "conditions". You can change the title (e.g. to "Terms & Conditions"), the actual terms (default [Your conditions]) and a box called "Home" which allows you to change the link text at the bottom that users use to return to your home page.In the theme directory, where you see something like: {l s='Conditions'} That means that there's a substitution in the back office under translations (in this example it's the text "Conditions" as described above).Paul Link to comment Share on other sites More sharing options...
CJ Tyler Posted August 22, 2008 Share Posted August 22, 2008 This is quite handy if you're in to template design: http://hasin.wordpress.com/2006/06/10/smarty-cheat-sheet-version-20/Paul Thanks for that - I've had a look and decided that template design's not for me after all. Link to comment Share on other sites More sharing options...
CJ Tyler Posted August 22, 2008 Share Posted August 22, 2008 Thanks Again Paul,That's where this forum (and the other one) are going to plug the gaps. I oft referred to the OSCommerce instructions for stuff like this. Why is this important stuff under 'Translations'? It's as clear as mud to me, that one. Shouldn't it be under 'Changing Important Stuff (using whatever language befits your store)'You don't happen to know if there's a funny way in to apply shipping charges when they're not showing up. I'll talk to pcbob later on this one.I'd like to give you karma but the forum's hidded that one too! Link to comment Share on other sites More sharing options...
Paul C Posted August 22, 2008 Share Posted August 22, 2008 It does seem a bit "hidden" but language translations are a key design element in PrestaShop which I think gives it a great competitive edge. US projects tend to have such features as a "bolt-on-later" and they rarely work properly because of it!Many changing the name of the menu to better guide people to it would be a good idea. On the list of "Urgent New Features for PrestaShop" - Documentation is #1I'm hoping to develop some nice guides from the information we're (still slowly guys!) collecting on the club forum. These can then be posted here too (in the Wiki?) for everyone to enjoy :-) Paul Link to comment Share on other sites More sharing options...
CJ Tyler Posted August 22, 2008 Share Posted August 22, 2008 Just a note about this one. The content boxes refuse to accept more than a single paragraph. I had a formatted Word document with numbered bullets, which I stripped out and saved as a text file.Copy and paste the whole document and it only accepts the first paragraph. As each statement I have is a new paragraph, I'm looking at maybe 50 copy and pastes - yuk. Kettle on. Link to comment Share on other sites More sharing options...
Paul C Posted August 22, 2008 Share Posted August 22, 2008 To be honest I wouldn't use Word. I would suggest looking at a wysiwyg html editor like CoffeeCup instead. The html that word produces is, well quite frankly - rubbish !There are several html editors out there at low cost (some even free) that are better for this job.Paul Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now