Jump to content
Latest News: (loading..)

Recommended Posts

@@Tsimi

 

Hi Lambros,

 

I set 'Enable parent category link' to false in 'Horizontal Categories Menu' but 'XS Categories Menu' still shows the parent category links.  How do I let ''XS Categories Menu' inherit the setting in ''Horizontal Categories Menu''?

 

Thanks in advance for your help.

 

Cheers, Eddy

Share this post


Link to post
Share on other sites

@@Moxamint

 

Hi Eddy

 

Yeah, that function does not exist in the XS Categories Menu. You could add it though but then you might end up with some ugly space at the top of every categories listing.

If you wanna see what I mean just find this code inside the .../classes/catmenu_xs.php

// show parent category link //	    
$root_link_title =  '<strong><span class="fa fa-list fa-lg"></span> ' . $link_title . '</span></strong>';

and comment it out like this

// show parent category link //	    
//$root_link_title =  '<strong><span class="fa fa-list fa-lg"></span> ' . $link_title . '</span></strong>';

If you want to use the on/off switch from the "normal" Horizontal Menu module then change it to this.

// show parent category link //
if (MODULE_CONTENT_HEADER_CATMENU_PARENT_LINK == 'True') {			
  $root_link_title =  '<strong><span class="fa fa-list fa-lg"></span> ' . $link_title . '</span></strong>';
}

or create your own on/off switch inside the cm_header_catmenu_xs.php file


When you ask for help/support:

  • Always state your osCommerce version
  • If possible, list up installed add-ons
  • 3rd party templates are not supported in the forum

Latest osC: osCommerce CE (Community Edition aka. v2.3.4.1 Frozen)

 

Share this post


Link to post
Share on other sites

 

I see what you meant by 'ugly space' :D

 

I have not looked carefully into the code, but I managed to eliminate the ugly space by adding the condition

if (MODULE_CONTENT_HEADER_CATMENU_PARENT_LINK == 'True')

in front of

$result .= '<li><a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link) . '">' . $root_link_title . '</a></li>';

Is it the right way of doing it?

 

Thanks again, Eddy

Edited by Moxamint

Share this post


Link to post
Share on other sites

@@Moxamint

 

Yeah that seems to work just fine. I can't see any problem so far.

Your solution would require less code change which is better.

So ignore my codes from above and use only yours. You also could do the same for the other "normal" Horizontal Menu.

Edited by Tsimi

When you ask for help/support:

  • Always state your osCommerce version
  • If possible, list up installed add-ons
  • 3rd party templates are not supported in the forum

Latest osC: osCommerce CE (Community Edition aka. v2.3.4.1 Frozen)

 

Share this post


Link to post
Share on other sites

@@Tsimi

 

I just found an issue with 'XS Categories Menu'.  After I arrived desired category through clicking on the dropdowns built by either 'Horizontal Categories Menu' or 'XS Categories Menu', 'XS Categories Menu' stopped working.  The 'XS Categories Menu' would not pull down anymore until I refresh the browser.  The 'Horizontal Categories Menu' will still work as expected if I expand the browser window from small views to full size even when 'XS Categories Menu' has ceased functioning.

 

Still looking if it's an issue introduced by myself...

 

Thanks, Eddy

Edited by Moxamint

Share this post


Link to post
Share on other sites

@@Moxamint

 

Just tested. I don't get that problem. :wacko:

 

Which of the following is inside your template_top.php?

 

1.

 

<script src="ext/jquery/jquery-1.11.1.min.js"></script>

 

2.

 

<script src="ext/jquery/jquery-1.11.1.min.js" async></script>


When you ask for help/support:

  • Always state your osCommerce version
  • If possible, list up installed add-ons
  • 3rd party templates are not supported in the forum

Latest osC: osCommerce CE (Community Edition aka. v2.3.4.1 Frozen)

 

Share this post


Link to post
Share on other sites

Try and remove that async part and use only.

 

<script src="ext/jquery/jquery-1.11.1.min.js"></script>

 

Let's see if this is the culprit or not.

Edited by Tsimi

When you ask for help/support:

  • Always state your osCommerce version
  • If possible, list up installed add-ons
  • 3rd party templates are not supported in the forum

Latest osC: osCommerce CE (Community Edition aka. v2.3.4.1 Frozen)

 

Share this post


Link to post
Share on other sites

@@Tsimi

 

It does fix the problem by removing 'async' from that line.  This fix also solved the problem where the misbehaived 'list/grid' buttons sometimes threw me to the home page.

 

Thank for your help!

Share this post


Link to post
Share on other sites

My Spanish is a bit rusty. I understand what you are saying but i can't reply in your language, sorry. Maybe @@raiwa can help out here.

 

Which module did you install? What osCommerce version are you using?

Edited by Tsimi

When you ask for help/support:

  • Always state your osCommerce version
  • If possible, list up installed add-ons
  • 3rd party templates are not supported in the forum

Latest osC: osCommerce CE (Community Edition aka. v2.3.4.1 Frozen)

 

Share this post


Link to post
Share on other sites

thanks for this contribution.
 

my store only has few categories and products - but I change them often. 

 

Is it possible to display the products of such categories in the dropdown ?

 

Can someone please point me in the directions

 

thanks for any help :)

Share this post


Link to post
Share on other sites

Hi,

i want to know if it is possible to make an categorie invissible for the catmenu.

This is because my catmenu is completly full, but I do want to have an categorie for get one free products.

If I have serveral products with (get one free) I can put it all in one hidden categorie. Then I make a banner link in de header that is linking to that categorie.

Edited by dinopacha

Share this post


Link to post
Share on other sites

Hello @@Tsimi,

 

Using the xs menu I get the following error in the log:

PHP Fatal error:  Cannot redeclare class explode_category_tree_xs in /home/......../public_html/includes/classes/catmenu_xs.php on line 78

I'm using the xs menu for xs and sm together with the standard category box for md and lg.

It works all ok, just get this error logged.

 

regards

Rainer

Share this post


Link to post
Share on other sites

@@raiwa

 

You are not using the Horizontal Categories Menu BS addon only the Categories Menu XS? Is that correct?

 

I just installed the Categories Menu XS_ver1.0 only into a clean test store on my local server XAMPP.

I checked all error logs but I can't see any message related to the XS menu.

Edited by Tsimi

When you ask for help/support:

  • Always state your osCommerce version
  • If possible, list up installed add-ons
  • 3rd party templates are not supported in the forum

Latest osC: osCommerce CE (Community Edition aka. v2.3.4.1 Frozen)

 

Share this post


Link to post
Share on other sites

@@raiwa

 

You are not using the Horizontal Categories Menu BS addon only the Categories Menu XS? Is that correct?

 

I just installed the Categories Menu XS_ver1.0 only into a clean test store on my local server XAMPP.

I checked all error logs but I can't see any message related to the XS menu.

Yes, only Categories Menu XS_ver1.0, not the normal Horizontal Categories Menu BS, but together with the core categories box.

On unix server under php 5.5.

I'll try some more research.

Edited by raiwa

Share this post


Link to post
Share on other sites

Hello @@Tsimi,

 

OK, found it. I had the normal Horizontal menu add-on installed and just disabled in the module. This produces the error.

When I uninstalled the normal version the error message disappears.

 

Also to clear up:

On my local test installation under xampp php 5.4 the error doesn't appear neither in the error log with error_reporting=E_ALL
 

On the server installation under php 5.5 the error shows up.

 

Maybe just to add a stricter check somewhere.

 

regards

Rainer

Share this post


Link to post
Share on other sites

1. Fresh module install

2. Admin > install

3. Load catelog/index.php

4. Notice: Undefined variable: result in [...]includes/classes/catmenu.php on line 48

 

Solution:

function _buildHoz($parent_id, $level = 0) {
        if (isset($this->_data[$parent_id])) {
            $result = ''; // this line added
[...]

Share this post


Link to post
Share on other sites
[...]

function _buildHoz($parent_id, $level = 0) {
        if (isset($this->_data[$parent_id])) {
            $result = ''; // this line added
[...]

 

 

I've founded that it's better to declare $result before the if: in other case, if the if results false, the final sentence return $result; throws again a PHP Notice:  Undefined variable.

Then:

function _buildHoz($parent_id, $level = 0) {

        $result = ''; // this line added

        if (isset($this->_data[$parent_id])) {

Share this post


Link to post
Share on other sites

Thanks for the contribution.

 

Just wondering how can I make the menu bar a bit longer to align with the boxes below.

 

Please see the attachment.

 

Thanks

post-53090-0-67455000-1459604808_thumb.png

Share this post


Link to post
Share on other sites

@@shoshoni

 

That should not happen unless you changed something inside the header area.

I just downloaded and installed this quickly and it aligns nicely with the boxes.


When you ask for help/support:

  • Always state your osCommerce version
  • If possible, list up installed add-ons
  • 3rd party templates are not supported in the forum

Latest osC: osCommerce CE (Community Edition aka. v2.3.4.1 Frozen)

 

Share this post


Link to post
Share on other sites

isn't that caused by the row / column classes ?

I'm no bootstrap expert, but I think you might be missing a row declaration.

Typically the margins for the rows are set negative, so that it offsets the column margin.


KEEP CALM AND CARRY ON
FYI Upgrade to the highest PHP version you can( PHP 5.5/5.6 or 7.1  and get big performance improvements for free)

But be aware php 5.5 is more strict about things.
UTF8-without BOM, no extra spaces allowed at the beginning or end of your php file, or your redirects wont work.
No double declarations of functions allowed - used to slip through the cracks ...

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×