Jump to content

brainstorming

Members
  • Content count

    8
  • Joined

  • Last visited

Profile Information

  • Real Name
    Mark Melling
  1. brainstorming

    [Contribution] STS v4

    Thanks very much for the reply - I really appreciate the help! I must admit this solution sounds a bit complicated for me - not sure I can do this reliably! So I've decided to disable the product_info template and make the layout changes I need in the product_info.php file. But thanks again for the help.
  2. brainstorming

    [Contribution] STS v4

    STS plus Product Attributes Option Type I'm using STS 4.5.2 with HTCv 2.6.3, which are working really well. I'm now trying to use the contribution Product Attributes Option Type to add a text field where users can add a line of customisation text. PAOT is working well if templates are switched off. If I switch templates on, instead of a text field in the product_info.php page I'm getting a drop-down box containing the option type and attributes value price "Text +£1.00". This happens if I use a product_info.php.html template using the $optionchoices placeholder. If I switch off just the product_info.php.html template, the text field is displayed correctly. The product_info page still picks up basic page layout from the default sts_template.html, but I lose the simple control of layout that the product_info template provides. I have also tried using Option Type to add a textarea for a larger amount of text and that gives similar problems - but doesn't even display well if just the product_info template is switched off. I think I need to create a new placeholder for the text field and use that placeholder in my product_info.php.html template. But I'm not sure how to do it. Or would I be better just hacking the product_info.php page without a template to give me the layout I need? I appreciate that Option Type is not the subject of this forum, but I'd be really grateful for any advice.
  3. brainstorming

    [contribution] Simple Template System (sts)

    Re: Blank "all products" page when using STS/HTC. I resolved my problem of a blank all products page by editing catalog/includes/header_tags.php: - changed require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); - to require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); Does this sound OK? Something similar was suggested in the installation docs for HTC - although I was using your STS/HTC bundle. In the HTC docs, it suggested a similar edit - but to a different file (sts_display_output.php). Thanks.
  4. All Products plus STS/HTC. I resolved the problem of the blank all products page by editing catalog/includes/header_tags.php: - changed require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); - to require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); Does this sound sensible? Something similar was suggested in the installation docs for HTC if users of STS were having problems.
  5. Re: All products, STS, HTC I should have said that I'm using All Products v4.4g. Thanks.
  6. Re: All Products, Simple Template System (STS) and Header Tags Controller (HTC). I have posted this in the Simple Template System forum but maybe it belongs here - hope it's OK to post here. I started again with my site using "UK-based oscommerce" then installed "All Products" contribution then "STS v4.5.2 with HTC v2.6.3". Have not installed any other contribs. All products works fine if STS is switched off. But with STS switched on, the all products page is blank - and view source shows only this code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD><BODY></BODY></HTML> With STS on, all other pages look great and header tags are also working. I'm wondering whether the all products page isn't getting application_top.php for some reason? I'd be very grateful if anyone can point me in the right direction. Thanks.
  7. brainstorming

    [contribution] Simple Template System (sts)

    I'm still having problems - but at least they're different problems than before! I started again with my site using "UK-based oscommerce" then installed "All Products" contribution then "STS v4.5.2 with HTC v2.6.3". Have not installed any other contribs. All products works fine if STS is switched off. But with STS switched on, the all products page is blank - and view source shows only this code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> With STS on, all other pages look great and header tags are also working. I'm wondering whether the all products page isn't getting application_top.php for some reason? I'd be very grateful if anyone can point me in the right direction. Thanks.
  8. brainstorming

    [contribution] Simple Template System (sts)

    STS V4.5.2 AND HEADER TAGS CONTROLLER V2.6.3 I've installed the above contributions separately (unfortunately, I didn't see the bundled STS4 Power Pack until too late). STS is working really well. But HTC only works if I switch STS off. With STS off, title, description and keywords meta tags are all correctly included in index.php, category page, "all products" page and individual product pages. The admin side of HTC appears to be working fine and is allowing me to save meta tags. But with STS switched on, I get the default OSCommerce title and no decription or keywords meta tags. I've switched on STS debug mode and then can see my HTC tags displayed in the $sts->template['applicationtop2header'] section of the debug code as follows: <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="LTR" lang="en"> <head> <!-- ipl edit re Header Tags Controller --> <title>Welcome to Cumbrian food - Lake District food - fine food</title> <meta name="Description" content="We produce Cumbrian food, Lake District food, fine food." /> <meta name="Keywords" content="Cumbrian food, Lake District food, fine food" /> <meta name="robots" content="noodp" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- EOF: Generated Meta Tags --> <base href="http://localhost/catalog/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> But these meta tags are not being inserted into the pages. I installed STS first and wasn't clear how to install HTC. I have followed all the HTC installation instructions. 3 specific queries: 1. is it possible to get this working even though I've followed the full HTC 2.6.3 installation isntructions rather than allowing STS to auto-detect HTC? 2. in sts_display_output.php, I followed the following HTC instructions - the lines that are meant to be replaced were not present so I just inserted the new lines: require(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); require(DIR_WS_FUNCTIONS . 'header_tags.php'); CHANGE TO require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); require_once(DIR_WS_FUNCTIONS . 'header_tags.php'); 3. in the admin screens for STS, do I need to insert any HTC filenames in the boxes "files for normal template", "files for index.php template", "files for content template"? Thanks for any help.
×