Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

npn2531

Pioneers
  • Posts

    1,159
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by npn2531

  1. Hi Lindsay, Check includes/template_top.php. The closing head tag is there above the opening body tag. That way if you want to add a javascript function site wide, you place it above the </head> in includes/template_top.php. If you want to place only on a specific page you place above <?php require(DIR_WS_INCLUDES . 'template-top.php'); ?> on the specific file.
  2. Mandy, this is a bug, I hope peculiar to your situation. If you open up the box and look down near the end, you will see a </div> closing tag with a conditional statement (if statement). If you experiment with removing this or just placing the </div> tag outside that statement you might be able to fix it.
  3. npn2531

    Hi Ricardo, if you have this msging system figured out, send me a msg and we can work out the best way to get you the article manager/blog files. They need work though.

  4. I really like the fly to cart feature, it is something I have wanted for my shop ever since I saw it on OpenCart. This is worth installing just for that. It really brings the customer's attention to the fact that the item has really been added to the shopping cart without the customer having to leave the page. Thanks! However, when you remove items from the shopping cart using the delete graphic on the shopping cart item line on shopping_cart.php, the shopping cart , and the shopping cart infobox update just fine, except that the price in the shopping cart infobox remains until you refresh the page. Otherwise, this is great and the cart updating without a page refresh is a real user friendly plus feature to add.
  5. It is common to have more than one javascript or jquery files referenced on webpages. What you have posted above should not be a problem at all. The conflict would be elsewhere, for example if you had more than one javascript or jquery program on the same page using the same id or class. (as in 'id' or "class" referenced in the html in the webpage) and even that wouldn't necessarily be an issue.
  6. Here is an easy one to use that google reads just fine: http://www.xml-sitemaps.com/
  7. Take the contact_us.php page you downloaded from Sam's Antihacker Mod. Upload it to where you have the OSC to CSS contribution installed, overwriting your existing contact_us.php. Then open up Sam's contact_us.php you know have in the OSC to CSS mod and 1) at the top Replace: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body> With this: <?php echo $doctype; ?> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <?php echo $stylesheet; ?> <?php require(DIR_WS_INCLUDES . 'template-top.php'); ?> 2)at the bottom replace : <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" summary="" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> with: <?php require(DIR_WS_INCLUDES . 'template-bottom.php'); ?> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 3) Now go through and delete every <table><tr> and <td>, making sure you don't delete anything else, no php, ?> or <?php tags. 4) From my examination of that page the programming should still work, and work in the OSC to CSS contribution, but nothing will be formatted, just stacked up down the page. However, it will look at whole lot more like the OSC to CSS contact_us.php page in an editor, and it should be easier to compare the two files and see where to cut and paste the div's and span's from the OSC-CSS page to the contact_us.php page from Sam' Hacker mod you just butchered.
  8. You can always remove the p element from the group it is in and style it separately. A better alternative may be to create a p element for a particular selector. For example p.pl-image Then that p element will only affect the class pl-image. A pretty good primer on this and other CSS issues is at http://www.w3schools.com/css/default.asp
  9. If the doctype doesn't solve the problem here are a couple of links to describe how to set up your stylesheet(s) to handle IE issues: http://www.positioniseverything.net/articles/cc-plus.html http://css-tricks.com/how-to-create-an-ie-only-stylesheet/
  10. bavautoM3 has the right answer to the problem. Getting the doctype up to date will most likely solve the IE issue. The first version of OSC to CSS had a variable only for the stylesheet in application_top.php. The doctype was hardcoded in each catalog page as it is in a stock OSCommerce installation. Subsequent versions add a variable, $doctype on each catalog page. Open a catalog page. Look just above the <head> tag where you would expect the doctype to be. You should see either the hardcoded doctype or echo $doctype; If you see the variable, then in application_top.php near the end, where the stylesheet is defined you should see: $doctype='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; If this is the case, then by changing the definition of the doctype in application_top.php, you easily change the doctype for the entire shop. If you have the older version then add $doctype='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; to application_top.php above or below the stylesheet definition and then for each catalog page replace the hard coded doctype with: echo $doctype;
  11. There are different CSS selectors for the product listings and for the product description or shopping cart. These selectors are added in includes/classes/boxes and on the page itself. Probably the most difficult way to match up selectors to what you see on the screen is to go through the programming. An easier way is the toolbar on Firefox, ( I'm sure other browsers have something similar as well). You just go to the page you want to locate the css selectors for in Firefox and then on the toolbar go information>Display ID & Class details. Then every element on the page is tagged with it's css selector. For example the product listing (includes/modules/product-listings.php) are selectors like .pl-name, .pl-buynow, .pl-image, etc. On product description (product_info.php) you will see selectors like .productprice On the shopping cart (shopping_cart.php) you will see selectors like .cartlisting-image, .cart-product, .cart-qty, .cartlisting-data
  12. As a granddad you get to have all the fun without the fuss and mess.
  13. I love the mod by the way, it works great. Thank you.
  14. I'm a grandfather, and find it amusing to be lectured.
  15. From now on I will make it my life's goal be perfect and flawless and never evoke the ire of the self-righteous.
  16. Okay, I got it. The last little bit of the two part admin install. Geez
  17. Well, almost fine: Do you have an idea what this error would be? It shows up in the Seo Uris 5 admin: Warning: call_user_func(tep_reset_cache_data_seo_urls) [function.call-user-func]: First argument is expected to be a valid callback in /home6/alphacle/public_html/clearadultacne/park/includes/functions/general.php on line 1500 Thanks!
  18. Thanks, that worked just fine. What had happened is that I copied the website and database from another site with the Ultimate Seo already installed. So when I ran the installer.php on the new site it gave a message that one of the tables it was trying to install was already installed. When I went to my database and dropped usu_cache, the installer was then able to run to completion and install the missing link in admin.
  19. I have this successfully installed on several sites. However, the last time I installed this mod, I find I do not have a link to configure the mod. Specifically in admin-> configuration ->, there is no link to 'Seo Uris 5' like I have on the other sites. I have gone backwards and forwards through the installation and just don't see where that link is added. What have I missed? Thanks!
  20. I see that there are some nice contributions for category drop-down or fly-out menu that display the categories and subcategories, as does the stock installed categories box. But is there a contribution for a navigation menu that drills down past the category or subcategory level to display individual products?
  21. This is the same spot from my includes/application_top.php $stylesheet='<link rel="stylesheet" type="text/css" href="templates/'.$template_name.'/stylesheet.css"> <link rel="stylesheet" type="text/css" href="templates/'.$template_name.'/superfish.css"> <link rel="stylesheet" type="text/css" href="templates/'.$template_name.'/superfish-navbar.css" /> <script type="text/javascript" src="includes/javascript/jquery.js"></script> <script type="text/javascript" src="includes/javascript/cart-toggle.js"></script> <script type="text/javascript" src="includes/javascript/top-navbar.js"></script> <script type="text/javascript" src="includes/javascript/superfish.js"></script> '; Note you can stack references to all the stylesheets and javascript files you want. Just watch the php punctionation.
  22. Yes, now you have it: This is what I see in your index.php <base href="http://www.simplyscent.co.uk/"> <link rel="stylesheet" type="text/css" href="templates/original/stylesheet.css"> Note you are correctly pulling the stylesheet from the templates/original folder.
  23. Actually if you just recopy the catalog pages (catalog pages only - not the admin or pages in the includes folder) from the OSC to CSS contribution download, you be set and all will work. If you don't do that you have to go back and to the catalog pages you added: <link rel="stylesheet" type="text/css" href="stylesheet.css"> to, re-replace with: <?php echo $stylesheet; ?> which is how it is originally in the OSC to CSS contribution.
  24. You still have <link rel="stylesheet" type="text/css" href="stylesheet.css"> showing up when I view the source code of your website. Be sure that in the header of index.php, in fact in all pages, that you have this in your header: <?php echo $stylesheet; ?> and not <link rel="stylesheet" type="text/css" href="stylesheet.css"> . In other words make sure that the stylesheet is not hardcoded in the header as it normally is in OSCommerce. Upthread Germ suggested that you: 'Yes you have to add the link to the stylesheet to all the main PHP files.' Good advice and correct, if you are using regular OSCommerce, but If you did that, if you have gone back and added: <link rel="stylesheet" type="text/css" href="stylesheet.css"> to all the pages then the template system will not work.
×
×
  • Create New...