Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Yet another template (+/- system) question

This is a discussion on Yet another template (+/- system) question within the Templating, CSS, Design forums, part of the osCmax V2.5 Forums category; Hi All, Sorry if this is a real nube question (but, to be fair, i am a nube!). I’ve just ...

      
  1. #1
    New Member
    Join Date
    Jun 2012
    Posts
    7
    Rep Power
    0


    Default Yet another template (+/- system) question

    Hi All,

    Sorry if this is a real nube question (but, to be fair, i am a nube!).

    I’ve just installed oscmax (version 2.5.1) and already im loving how feature-rich and flexible it is. Ive got things working pretty much how i want them now but unfortunately i’m really not great with php. I would likt to make an HTML template to customize the shop look.

    I would like to be able to:

    1)***** Customise the background, font, etc using html and css

    2)***** Move info boxes around in the pages (eg search info box at top)

    3)***** Manipulate info boxes (eg so rather than shopping cart info box listing all products in cart, just say the total price of what’s in the cart with a link to cart itself)

    4)***** Keep all the functionability of oscmax

    I have read around the forums here and it seems oscmax is designed to make template design fairly easy, and there a number of contribs that can be added to make it even easier! I have been playing around with these and following advice on the forums, but none seem to be able to let me do what i want to do (or, more likely, i just cant work out how to do it!).


    The ideas i have found so far:

    A)**** Edit the inbuilt fallback-html mainpage.** So far this has the advantage of meaning everything still works as it should (except AddThis, which stops working if you make this your template). However, the big disadvantage is that the template on mainpage.html is pretty limited. The tags only let you move (for example) ‘left column’, rather than individual infoboxes (so cant do ‘2’ above).

    B)***** *STS for BTS.* I like the idea of this as i have previously used STS so i know a bit about it. The problem is that it stops a lot of the stuff i liked about oscmax from working (eg ajax search suggest stops working,* xsell and recently viewed product boxes disappear, etc... It seems basically anything that STS doesn’t have a tag for (so cant do 4 above)

    C)***** HTML template system for BTS.* Simply never got this working. Followed the install instructions (ie just upload HTML folder to templates) but all that happened when i selected this template from admin was to make index.php show me the template page as you would see it in dreamweaver (or whatever) design mode (ie, just a load of $tags, not the content they should display, if that makes sense).

    Does anyone have any ideas about how i can use one of these systems to achieve 1-4 set out above (preferably STS but im willing to try anything, its the only way to learn i guess!).* From my experience so far it seems like ‘3’ is the most difficult of these to achieve?

    Thanks in advance for any replies, sorry this is so wordy.

    Matt

  2. #2
    Active Member niallb's Avatar
    Join Date
    Sep 2010
    Posts
    243
    Rep Power
    3


    Default Re: Yet another template (+/- system) question

    Before you start changing the current template MAKE A COPY OF FALLBACK and re-name it, then make your changes on this. DO NOT CHANGE FALLBACK, if your changes do not work your site can always FALLBACK onto this template.
    Sometimes you just can't see the wood for all those damned trees

  3. #3
    New Member
    Join Date
    Jun 2012
    Posts
    7
    Rep Power
    0


    Default Re: Yet another template (+/- system) question

    Quote Originally Posted by niallb View Post
    Before you start changing the current template MAKE A COPY OF FALLBACK and re-name it, then make your changes on this. DO NOT CHANGE FALLBACK, if your changes do not work your site can always FALLBACK onto this template.
    Hi and thanks for the quick reply. Sorry i should make clear that from my reading around the forums, that particular bit of wisdom has been well drilled in. As a matter of habit i have been only editing renamed copy templates of both the fallback and fallback-html, when dealing with these templates.

    Best,

    Matt

  4. #4
    New Member
    Join Date
    Jun 2012
    Posts
    7
    Rep Power
    0


    Default Re: Yet another template (+/- system) question

    Quote Originally Posted by OscMacs View Post
    B)***** *STS for BTS.* I like the idea of this as i have previously used STS so i know a bit about it. The problem is that it stops a lot of the stuff i liked about oscmax from working (eg ajax search suggest stops working,* xsell and recently viewed product boxes disappear, etc... It seems basically anything that STS doesn’t have a tag for (so cant do 4 above)
    Ah, noticed nothing javascript based seems to work using STS for BTS. I have been trying various things (including copying all the js files from fallback into STS folder but just cant seem to get things working.

    Any help at all would be hugely appreciated.

    Thanks,

    Matt

  5. #5
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,121
    Rep Power
    55


    Default Re: Yet another template (+/- system) question

    1)***** Customise the background, font, etc using html and css
    Just change your stylesheet.css file in your template

    2)***** Move info boxes around in the pages (eg search info box at top)
    Just take the code out of the catalog/includes/boxes and paste it into the main_page.tpl.php

    3)***** Manipulate info boxes (eg so rather than shopping cart info box listing all products in cart, just say the total price of what’s in the cart with a link to cart itself)
    Just paste this where you want it: <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>"><?php echo $cart->count_contents(); ?> items - <?php echo $currencies->format($cart->show_total()); ?></a>

    Job done.
    pgmarshall
    _______________________________

  6. #6
    New Member
    Join Date
    Jun 2012
    Posts
    7
    Rep Power
    0


    Default Re: Yet another template (+/- system) question

    Pgmarshall you are a hero! In the end i managed to get HTML template working so have been using that as i find it pretty difficult to follow the php. This has of course led me to the problem that your fix below doesnt work any more
    3)***** Manipulate info boxes (eg so rather than shopping cart info box listing all products in cart, just say the total price of what’s in the cart with a link to cart itself)
    Just paste this where you want it: <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>"><?php echo $cart->count_contents(); ?> items - <?php echo $currencies->format($cart->show_total()); ?></a>
    is there a way to get it to say "number of items in cart: X", with the text being a link to cart? I guess edit the cart info box code in includes to output this, and then just use the {cartbox} tag in the HTML template? Problem is i have no idea how to edit the php to output. Any help would be appreciated. Thanks again.

    Matt

  7. #7
    New Member
    Join Date
    Jun 2012
    Posts
    7
    Rep Power
    0


    Default Re: Yet another template (+/- system) question

    Also, any idea about how to get AddThis to work when using the fallback-html template? Cheers.

  8. #8
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,121
    Rep Power
    55


    Default Re: Yet another template (+/- system) question

    AddThis should work out of the box ... it does for me ... what is not working for you?

    Not really up to speed on the HTML template - but I suspect you are right just put the code you want to run into the code file and call it from the html template.

    Regards.
    pgmarshall
    _______________________________

  9. #9
    New Member
    Join Date
    Jun 2012
    Posts
    7
    Rep Power
    0


    Default Re: Yet another template (+/- system) question

    AddThis should work out of the box ... it does for me ... what is not working for you?
    Humm... Nope doesnt work for me for some reason. Have tried a fresh install to no avail. In fact, i have noticed a number of javascripted things dont seem to work in falback-html that do work in fallback. For example cloudZoom and lightbox also do not work (lightbox just shows large image alone onclick of product image, and cloudzoom just doesnt happen). The problem that you get with Addthis, is that there is a grey outline box where the addthis buttons should be (and are when calling the 'fallback' template) but nothing inside this.

    Comparing the two html files (html output from product_info.php using fallback vs fallback-html), the javascript code looks quite different, much lighter in the fallback-html code. Do you know which files this javascript is called from? (i dont mean the .js files, but the javascript called directly into the document from (presumably?) a php file). I was thinking i could just go there and manually add the missing javascript (would that work?)

    Any ideas to try would be great?

    Thanks!

    Matt

  10. #10
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    3,121
    Rep Power
    55


    Default Re: Yet another template (+/- system) question

    The stylesheet for fallback-html might not have been updated ... CloudZoom needs to go in there.

    Regards.
    pgmarshall
    _______________________________

Page 1 of 2 12 LastLast

Similar Threads

  1. [Template System] regarding template system
    By anu16gupta in forum Templating, CSS, Design
    Replies: 6
    Last Post: 08-09-2011, 02:23 AM
  2. [osCmax v2.5x] Quick question on the template system
    By Luxoria in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 12-27-2010, 07:45 PM
  3. bts template system with html template
    By silverping in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 10-08-2009, 09:12 AM
  4. Simple Template System (STS)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-12-2007, 07:22 AM
  5. Simple Template System (STS)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-03-2007, 02:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •