test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • sfpkent Friend
    #134543

    Hi,

    I want to remove category at the top of each page. attached with picture file. I know we can comment it out but I want to know how to do it?

    Thanks ang God bless!
    Kent


    1. remove-category
    John Wesley Brett Moderator
    #276011

    Hi Kent,

    I don’t have this particular template loaded but I’ll take an educated guess.
    In your VirtueMart control area where categories are listed…click on the category you are wanting to hide…and then look at the parameters. There should be a “Show Category Title” area…and select “hide” or “no”.

    If you would share a URL of your site…I could pin point other ways to get rid of it.

    Thanks,
    John.

    shertmann Friend
    #276067

    that must be a code included in the template and you must find in the particular document to see waht line of code it is.

    tell me it is in the products flypage or in the browse category page that you have this???

    i ha ve made some tweekings yet with one sites i work for and i will point you in the right direction

    the way to comment in php is as it

    if you want to comment one line use the following
    //

    if you want to comment a block of code use the following
    /* */

    mj1256 Friend
    #276075

    did you install the VM theme that came with mesolite?

    sfpkent Friend
    #276077

    Hi,

    I have already install VM theme for JA Mesolite.

    Shertmann is right. I have actually done it once before but I forgot which file I should go for to comment out. I login to virtuemart.com, but the stupid website doesn’t load.

    Honestly speaking, joomlart is more active and more helpful than virtuemart.com.

    Anyway, I will search for it and get back here.

    Kent

    sfpkent Friend
    #276168

    Hi,

    I used the same way to comment out and delete the codes below, it worked on other template but not on JA Mesolite.

    <?php
    defined( ‘vmToolTipCalled’) or define(‘vmToolTipCalled’, 1);
    echo $vendor_store_desc.”<br />”;
    echo “<br /><h4>”.$VM_LANG->_(‘PHPSHOP_CATEGORIES’).”</h4>”;
    echo $categories; ?>
    <div class=”vmRecent”>
    <?php echo $recent_products; ?>
    </div>
    <?php

    change to

    <?php
    defined( ‘vmToolTipCalled’) or define(‘vmToolTipCalled’, 1);
    echo $vendor_store_desc.”<br />”;
    //echo “<br /><h4>”.$VM_LANG->_(‘PHPSHOP_CATEGORIES’).”</h4>”;
    //echo $categories; ?>
    <div class=”vmRecent”>
    <?php echo $recent_products; ?>
    </div>
    <?php

    even delete them:

    <?php
    defined( ‘vmToolTipCalled’) or define(‘vmToolTipCalled’, 1);
    echo $vendor_store_desc.”<br />”;

    <div class=”vmRecent”>
    <?php echo $recent_products; ?>
    </div>
    <?php

    but not worked on JA Mesolite, it worked on other templates, any advice?

    Thanks!
    Kent

    sfpkent Friend
    #276170

    Hi,

    Forgot to tell, the file I edited is shopIndex.tpl.php, file location at:

    mywebsitecomponentscom_virtuemartthemesja-mesolitetemplatescommon

    Thanks!
    Kent

    sfpkent Friend
    #276174

    Hi,

    I have tried another way but still not working (because the code is not there at all), I believe that the JA Mesolite VM theme has been changed.

    Here is another way I found, the code is not in this file:

    Edit the file ps_product_category.php, located at:

    administrator/components/com_virtuemart/classes

    So, what can I do now?

    Thanks!
    Kent

    sfpkent Friend
    #276175

    Hi,

    Sorry forgot to attached the code, I am really headache because of this, already few days, keep wasting time only looking for this solution:

    In that file, around line 884 comment out or delete the line that says:-
    $html .=$VM_LANG->_PHPSHOP_MORE_CATEGORIES.'<br />’;

    Kent

    sfpkent Friend
    #276176
Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 10 replies, has 4 voices, and was last updated by  sfpkent 16 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum