Jump to content

drofe

Members
  • Content count

    40
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Judith Pearce

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. drofe

    In-stock only filter for 2.3

    By pattern matching I've managed to get the filter working in the basic search box. My code in bm_search.php now looks like this: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class bm_search { var $code = 'bm_search'; var $group = 'boxes'; var $instock; var $title; var $description; var $sort_order; var $enabled = false; function bm_search() { $this->instock = HEADER_INSTOCK; $this->title = MODULE_BOXES_SEARCH_TITLE; $this->description = MODULE_BOXES_SEARCH_DESCRIPTION; if ( defined('MODULE_BOXES_SEARCH_STATUS') ) { $this->sort_order = MODULE_BOXES_SEARCH_SORT_ORDER; $this->enabled = (MODULE_BOXES_SEARCH_STATUS == 'True'); $this->group = ((MODULE_BOXES_SEARCH_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function execute() { global $oscTemplate; $data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_SEARCH_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents" style="text-align: left;">' . ' ' . tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . ' ' . tep_draw_checkbox_field('instock', 1, false). HEADER_INSTOCK. ' ' . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: 75%"') . ' ' . tep_draw_hidden_field('search_in_description', '1') . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', MODULE_BOXES_SEARCH_BOX_TITLE) . '<br />' . MODULE_BOXES_SEARCH_BOX_TEXT . '<br /><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><strong>' . MODULE_BOXES_SEARCH_BOX_ADVANCED_SEARCH . '</strong></a>' . ' </form>' . ' </div>' . '</div>'; This is a great advance! Now all I need help with is to get the category and manufacturer filters working. I've compared my index.php code with the examples in the previous topic and can't see any notable differences.
  2. I have implemented Show soldout items for 2.3 and also Add in-stock only filter. This has added a working filter to advanced search in my shop. it is meant also to add the filter to categories and manufacturer displays but this doesn't work at all for me and was problematic for others as well, going on this topic. I'm also interested in implementing the filter in the basic search box. This can clearly be done, going on this topic and I see the filter is still working in Puggybelle's shop. Another option would at least be to sort the soldout items at the bottom of the list. I'm not a coder so I'm dependent on a revised addon in this area and wondered if someone was working on it.
  3. drofe

    Header Tags SEO

    Thanks Jack. I've solved the problem by using a different method of detecting if SSL is active or not as per CSS not working with secure pages in IE.
  4. drofe

    Header Tags SEO

    Has anyone encountered the problem reported here of only secure content being displayed on SSL pages? I am getting the problem with both IE 9 and Google Chrome and the linked topic suggests it is being caused by social bookmarks.
  5. drofe

    Header Tags SEO

    The previous message refers to problems with implementing 2,3,1 CKeditor with Header Tags SEO and the quote is from AtouchToomuch - #6054 - who provided a solution. Now that I have got CKeditor working, I'd like to use if for manufacturer descriptions too but I note Header Tags SEO doesn't have a configuration option for this.
  6. drofe

    Header Tags SEO

    The solution is to add only two lines from the CKEditor contribution to the template_top.php file just before the </head> tag: <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/ckeditor.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/adapters/jquery.js'); ?>"></script> and NOT to add the function definition called for by the CKEditor install instructions. Thankyou for this. I was about to give up and uninstall CKeditor. I found I needed to add these two lines before the Header Tags SEO cases for it to work.
  7. drofe

    Manufacturer Description

    I've implemented this now and it works nicely. I've found the header tag functionality useful too, but I think it would be quite easy to implement just the manufacturer description changes from the download if you didn't want the full addon. One thing I found odd was the hardcoding of <h2> around the manufacturer description and the setting of this to 14px in the stylesheet. I changed this to <p> and didn't bother with the stylesheet changes.
  8. I have surprised myself by successfully implementing the Show Sold Out Items addon in 2.3.1. My one problem now is to replace the gif Sold out button with one that matches the others in 2.3.1. I've defined it in includes/languages/english.php as define('IMAGE_BUTTON_SOLD', 'Sold'); and used this code in the relevant php files: echo tep_draw_button(IMAGE_BUTTON_SOLD) and it works, but the button is active and behaves like the Add to Cart button. (1) How do I disable it. (2) How do I add a little icon to it like the cart in Add to Cart.
  9. I have surprised myself by successfully implementing the Show Sold Out Items addon in 2.3.1. My one problem now is
  10. drofe

    Manufacturer Description

    Okay, I found this description of the contribution in one of the install files (it might be worth adding it to the download description.) This contribution allows a shop to have a unique title and meta tags for any page in the shop which is essential for having a shops pages listed well with the search engines. It also provides the option of adding category and manufacturer descriptions, using social bookmarks and optimizes many other parts of the shop for the search engines. This sounds useful so I'm going to give it a go - will report back later!
  11. drofe

    Manufacturer Description

    I implemented this in my MS2.2 shop using http://addons.oscommerce.com/info/6490. This contribution adds a manufacturers box with the manufacturers description to the body of the product info page, but I worked out a way of adding the info to the product listing page as well. I'm now looking for a v2.3.1 solution. I've been through the list of 2.3.1. addons and can't see anything there yet. There's been some mention that this can be done through the Header Tags SEO but I'm way out of my depth here.
×