Jump to content



Photo
* * * * * 2 votes

[Contribution] Products Specifications


  • Please log in to reply
1050 replies to this topic

#1041   nafri

nafri
  • Members
  • 166 posts
  • Real Name:naf

Posted 24 June 2014 - 12:23

The center-column filters box is in /includes/modules/products_filter.php. It's included in /index.php by this code:
 


<?php
// Start Products Specifications
    if (SPECIFICATIONS_FILTERS_MODULE == 'True') {
?>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td>
<?php
      require (DIR_WS_MODULES . 'products_filter.php');
?>
        </td>
      </tr>
<?php
    }
// End Products Specifications
?>

 
Edit: The forum editor is really messing up the code. I can't do anything about that.
 
Check that you have that code in the proper location and that Show Filters Module is set to True in the configuration admin.
 
Regards
Jim

 

 

 

 

 

 

hi jim

 

Many thanks for replying.

 

I spent the whole day yesterday and i still cant get it to work.

 

I am using index.php file supplied in your addon.

 

I can get the filer on the side column to work.Which tells me the  filter is working and set-up right. but cant get it to show up in the middle column. i even did the whole thing from scratch.

 

New database and redid file edits.

 

 

Show Filters Module is set to True . THE  file DIR_WS_MODULES . 'products_filter.php  is present.

 

 

I am trying to show the filter on a sub category.Main category is 

 

 

Monitors, Tvs & Plasma =>Televisions   --Filter to show when clicked on Televisions .

 

Spec data has been added to products.

 

i am using latest 2.3.3.4 oscommerce.

 

regards

 

nafri



#1042   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,012 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 24 June 2014 - 17:18

That really should work. Try replacing this code:
 

    if (SPECIFICATIONS_FILTERS_MODULE == 'True') {

 
with this:
 

    if (SPECIFICATIONS_FILTERS_MODULE == 'True') {
      print 'This module should show!';

 
Then see if the text shows up on the page. If it does, move that print line inside the module and try again.
 
Regards
Jim

Edited by kymation, 24 June 2014 - 17:19.

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#1043   nafri

nafri
  • Members
  • 166 posts
  • Real Name:naf

Posted 24 June 2014 - 17:27

That really should work. Try replacing this code:
 


    if (SPECIFICATIONS_FILTERS_MODULE == 'True') {

 
with this:
 

    if (SPECIFICATIONS_FILTERS_MODULE == 'True') {
      print 'This module should show!';

 
Then see if the text shows up on the page. If it does, move that print line inside the module and try again.
 
Regards
Jim

 

 

hi

 

strange i get no text.. but i can see the entry in database



#1044   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,012 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 24 June 2014 - 17:32

Check that the database entry is True and not true or some other variation. Also check that SPECIFICATIONS_FILTERS_MODULE is not misspelled.

 

Regards

Jim


My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#1045   nafri

nafri
  • Members
  • 166 posts
  • Real Name:naf

Posted 24 June 2014 - 17:36

Check that the database entry is True and not true or some other variation. Also check that SPECIFICATIONS_FILTERS_MODULE is not misspelled.

 

Regards

Jim

 

 

 

Both are Spelled right..


Edited by nafri, 24 June 2014 - 17:36.


#1046   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,012 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 24 June 2014 - 17:43

Then this should be working. The only other possibility I can see is that that block of code is in some part of the page that is not being executed. Sorry, but I'm limited in what I can do here. You'll just have to continue debugging this yourself.

 

Regards

Jim


My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#1047   nafri

nafri
  • Members
  • 166 posts
  • Real Name:naf

Posted 25 June 2014 - 16:30

hi jim

 

thanks for your help.. i  finally got it working. i changed the database entry from True to true .. and the text showed up.I  then changed it back and  it still works.

 

I also had to add an  extra entry on the index.php file so  the filter can show up after 2nd level category.

 

My website shows prices with tax but the filter gets price directly from product price column which is without tax.any way to change this ?

 

i cant figure out how to get instock filter to work.I want customer to be able to choose between instock and out of stock.

 

 

regards

 

nafri



#1048   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,012 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 25 June 2014 - 16:41

The Products Specifications code checks the value of DISPLAY_PRICE_WITH_TAX and adds the tax if set. See the code for the function tep_get_filter_sql in includes/functions/products_specifications.php. That may be another of your weird database settings. I don't understand how your previous solution worked, so I can't predict what might happen with this one.
 
The values in the products_status field are 0 and 1. You would need some code to make that make sense to the customer.

 

Regards

Jim


My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#1049   nafri

nafri
  • Members
  • 166 posts
  • Real Name:naf

Posted 25 June 2014 - 17:14

hi jim

 

 

thanks for replying.   .

 

i will have a look..

 

i think it works not because of the database as i thought initially but because of moving the code in the right place in  index file.

 

regards



#1050   nafri

nafri
  • Members
  • 166 posts
  • Real Name:naf

Posted 27 June 2014 - 02:41

hi

 

at the moment i got 6 filters in one row. i want to show three filter per row.

 

With 6 filters it is pushing the filter box to right and messing up the display of the page

 

 

regards

 

nafri



#1051   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,012 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 27 June 2014 - 02:49

You might be able to do that with a bit of CSS, or you can modify the code to change the layout to suit your needs.

 

Regards

Jim


My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated