Jump to content

devilish

Member
  • Posts

    24
  • Joined

  • Last visited

Posts posted by devilish

  1. Hi again, I'm wanting to adjust in the main category, sub category image size as per these photo's.

    wanting the image to be around the size of  the featured products one

    image1.PNG

    The test2 sub-cat is too small

    image2.PNG

    I changed these values

    image3.PNG

    to this

    image4.PNG

    which didn't make difference.

    one again help appreciated. 

  2. 47 minutes ago, bsmither said:

    Ok, so with the URL removed (this is supposed to be a full and complete URL that points to a document somewhere, not ncessarily to your site, possible a PDF perhaps), everything is working as it should.

    CubeCart forms the real URL for the document "Test Category" (doc_id 2) as 'test-category-d2'.

    Thus, CubeCart forms the real URL for the category "Test Category" (cat_id 1) as 'test-category'.

    There should not be any more database errors "duplicate entry'. (Except for the Sale Items error message. That one is strange.)

    What we can try is to specify the full and complete URL for the "Test Category" category in the [destination] URL of the document.

    That seems to work except for the fact there is no drop-down for its sub-categories (sub-cat Test2).

    So, what is your intent? To combine categories and documents onto one bar? (Might run out of room!)

    ideally my intent is to combine categories and documents onto the main bar menu. the store policies link will have all the website policies on the one page.  contact link will stay in bar.
    menu bar will be structured with main categories then have sub categories on the main categories page which will remove the need for a drop down menu in the main bar.

    it's what i'm trying to achieve with your help

    thanks

  3. 1 hour ago, bsmither said:

    How did you create the document titled Test Category?

    Is this simply copying the actual category HTML into the Edit Document, Contents tab?

    See what happens when you delete the contents in the URL field of the Edit Document, General tab.

    Just created test category document then used the URL from the test category that I created in the category section of the admin

    test-category.html

    C1.PNG

    C2.PNG

     

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    C3.PNG

    C1.PNG

    here's the admin login details, I'll delete this info as soon as you reply to this post.

  4. 1 hour ago, bsmither said:

    I wonder if this setting will change things:

    admin, Store Settings, Search Engines, "Add subcategroies to category URL path", set to No.

    Didn't work, I cleared the cache.

  5. 4 minutes ago, bsmither said:

    I see what may be happening.

    I've made documents into categories, but not categories into documents.

    I will need to study this.

    Thanks, just to let know, I backed up all the changes we made to the Galaxy theme and have it on file, 
    Note: this current site is a new installation with data based tables dropped, The Galaxy theme was reinstall with a fresh original copy.

    I them over write the /public_html/skins/galaxyx/css files with my saved one's. the only other file changed was element.social.php

    Hope this helps

  6. 31 minutes ago, bsmither said:

    In box.documents.php, this part of the code:

    
          <ul class="main-menu">
             <li><a href="{$STORE_URL}" title="{$LANG.common.home}"><i class="fa fa-home"></i></a></li>
             {if isset($DOCUMENTS) && count($DOCUMENTS) > 0}
             {foreach from=$DOCUMENTS item=document}
             <li><a href="{$document.doc_url}" title="{$document.doc_name}" {if $document.doc_url_openin}target="_blank"{/if}>{$document.doc_name}</a></li>
             {/foreach}
             {/if}

    This shows the Home icon, then links to each document (Privacy, etc).

    What is missing is the code that puts the link to "Test Category" between Home and Privacy. Are you sure you are looking in the GalaxyX skin folder?

    For GalaxyX, it is not too strange that somehow, the skin is convincing CubeCart to load the categories in the document bar. And getting it wrong.

    Yes downloaded from server /public_html/skins/galaxyx/templates. this maybe the cause.

    I came up with a workaround regarding this topic you help me out with.

    I'm adding categories to the document bar via documents. 

    doc1.PNG

    doc2.PNG

    It fixes this issue we were having, I e-mailed the skin's publisher and have had no reply, this is why used this method.

    mobile1.PNG

    Fixed

    mobile2.PNG

     

  7. 3 minutes ago, bsmither said:

    Somehow, the code for the main nav menu is now inside the documents box. Nothing wrong with that.

    I don't have a copy of GalaxyX, so I can't give 100% advice.

    In /skins/galaxyx/templates/, look for box.documents.php, box.navigation.php, and element.navigation_tree.php.

    The <ul class="main-menu"> is what you are going to find first. Then determine where the list items come from.

    Hopefully, it will be obvious what is missing.

    for box.documents.php

    {*
     * CubeCart v6
     * ========================================
     * CubeCart is a registered trade mark of CubeCart Limited
     * Copyright CubeCart Limited 2015. All rights reserved.
     * UK Private Limited Company No. 5323904
     * ========================================
     * Web:   http://www.cubecart.com
     * Email:  [email protected]
     * License:  GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html
     *}
    <div id="box-documents">
       <nav>
          <ul class="main-menu">
             <li><a href="{$STORE_URL}" title="{$LANG.common.home}"><i class="fa fa-home"></i></a></li>
             {if isset($DOCUMENTS) && count($DOCUMENTS) > 0}
             {foreach from=$DOCUMENTS item=document}
             <li><a href="{$document.doc_url}" title="{$document.doc_name}" {if $document.doc_url_openin}target="_blank"{/if}>{$document.doc_name}</a></li>
             {/foreach}
             {/if}
             {if isset($CONTACT_URL)}
             <li><a href="{$CONTACT_URL}" title="{$LANG.documents.document_contact}">{$LANG.documents.document_contact}</a></li>
             {/if}
             {foreach from=$DOCUMENTS_LIST_HOOKS item=list_item}
             <li><a href="{$list_item.href}" title="{$list_item.title}">{$list_item.title}</a></li>
             {/foreach} 
             <div class="clear"></div>
          </ul>
       </nav>
    </div>

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    for box.navigation.php

    {*
     * CubeCart v6
     * ========================================
     * CubeCart is a registered trade mark of CubeCart Limited
     * Copyright CubeCart Limited 2015. All rights reserved.
     * UK Private Limited Company No. 5323904
     * ========================================
     * Web:   http://www.cubecart.com
     * Email:  [email protected]
     * License:  GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html
     *}
    {if $CATEGORIES}
    {$CATEGORIES}
    {else}
    <h3><i class="fa fa-ellipsis-h"></i> {$LANG.navigation.title}</h3>
    <div class="panel navigation">
      <ul> 
            {$NAVIGATION_TREE}
            {if $CTRL_CERTIFICATES && !$CATALOGUE_MODE}
            <li><a href="{$STORE_URL}/gift-certificates.html" title="{$LANG.navigation.giftcerts}">{$LANG.navigation.giftcerts}</a></li>
            {/if}
            {if $CTRL_SALE}
            <li><a href="{$STORE_URL}/sale-items.html" title="{$LANG.navigation.saleitems}">{$LANG.navigation.saleitems}</a></li>
            {/if}
         </ul>
    </div>
    {/if}

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    for element.navigation_tree.php

    {*
     * CubeCart v6
     * ========================================
     * CubeCart is a registered trade mark of CubeCart Limited
     * Copyright CubeCart Limited 2015. All rights reserved.
     * UK Private Limited Company No. 5323904
     * ========================================
     * Web:   http://www.cubecart.com
     * Email:  [email protected]
     * License:  GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html
     *}
    <li class="has-dropdown">
       <a href="{$BRANCH.url}" title="{$BRANCH.name}">{$BRANCH.name}</a>
       {if isset($BRANCH.children)}
       <ul class="dropdown">
          <li><h3 class="branch-name">{$BRANCH.name}</h3></li>
          {$BRANCH.children}
       </ul>
       {/if}
    </li>

  8. 25 minutes ago, bsmither said:

    This is what my browser sees:

    
    <div id="box-documents">
       <nav>
          <ul class="main-menu">
             <li><a href="https://wickedstuff.co.nz" title="Home"><i class="fa fa-home"></i></a></li>
                               <li><a href="test-category.html" title="Test Category" >Test Category</a></li>
                      <li><a href="https://wickedstuff.co.nz/privacy-policy.html" title="Privacy Policy" >Privacy Policy</a></li>
                      <li><a href="https://wickedstuff.co.nz/returns-policy.html" title="Returns Policy" >Returns Policy</a></li>
                      <li><a href="https://wickedstuff.co.nz/store-policies.html" title="Store Policies" >Store Policies</a></li>
             
                               <li><a href="https://wickedstuff.co.nz/contact-us.html" title="Contact Us">Contact Us</a></li>
                       
             <div class="clear"></div>
          </ul>
       </nav>
    </div>

    Please carefully note that the second list item, the one for the category, does not have a full and complete URL -- it is a relative path. Thus, the browser is attempting to figure out the complete URL and is inadvertently using the /test-category/ part of the path as the path to the actual site - as opposed to the path to the document.

    Compare the template code for these list items and note that all should have {$STORE_URL} (or something like it) as a lead-in.

    Also, since you are editing a template, have Cubecart clear it's cache (admin, Maintenance, Rebuild tab, Clear Cache).

    Thanks for the fast reply, sorry for dumb question, which file should I edit and what should I add? seo.class.php

  9. Hi, I'm getting a 404 - Page Not Found error when via this link https://wickedstuff.co.nz/test-category/test-category.html to create it 
    go to Test Category then to Test2 then Electronics Air-Fi and finally go back Test Category in the main menu. here's my error log.

    Your help will be much appreciated.

    09 Nov 2017, 19:11 File: [seo.class.php] Line: [662] "UPDATE `CCCubeCart_seo_urls` SET `type` = 'doc',`item_id` = '2',`path` = 'test-category',`custom` = '1' WHERE CCCubeCart_seo_urls.id = '18';" - Duplicate entry 'test-category' for key 'PRIMARY'
    09 Nov 2017, 19:10 File: [seo.class.php] Line: [662] "UPDATE `CCCubeCart_seo_urls` SET `type` = 'doc',`item_id` = '2',`path` = 'test-category',`custom` = '1' WHERE CCCubeCart_seo_urls.id = '18';" - Duplicate entry 'test-category' for key 'PRIMARY'
    09 Nov 2017, 19:08 File: [seo.class.php] Line: [662] "UPDATE `CCCubeCart_seo_urls` SET `type` = 'doc',`item_id` = '2',`path` = 'test-category',`custom` = '1' WHERE CCCubeCart_seo_urls.id = '18';" - Duplicate entry 'test-category' for key 'PRIMARY'
    09 Nov 2017, 19:06 File: [seo.class.php] Line: [662] "UPDATE `CCCubeCart_seo_urls` SET `type` = 'doc',`item_id` = '2',`path` = 'test-category',`custom` = '1' WHERE CCCubeCart_seo_urls.id = '10';" - Duplicate entry 'test-category' for key 'PRIMARY'
    09 Nov 2017, 19:05 File: [seo.class.php] Line: [662] "UPDATE `CCCubeCart_seo_urls` SET `type` = 'doc',`item_id` = '2',`path` = 'test-category',`custom` = '1' WHERE CCCubeCart_seo_urls.id = '10';" - Duplicate entry 'test-category' for key 'PRIMARY'
    09 Nov 2017, 19:01 File: [seo.class.php] Line: [662] "UPDATE `CCCubeCart_seo_urls` SET `type` = 'doc',`item_id` = '2',`path` = 'test-category',`custom` = '1' WHERE CCCubeCart_seo_urls.id = '10';" - Duplicate entry 'test-category' for key 'PRIMARY'
    09 Nov 2017, 18:59 File: [seo.class.php] Line: [662] "UPDATE `CCCubeCart_seo_urls` SET `type` = 'doc',`item_id` = '2',`path` = 'test-category',`custom` = '1' WHERE CCCubeCart_seo_urls.id = '10';" - Duplicate entry 'test-category' for key 'PRIMARY'
    09 Nov 2017, 08:01 File: [seo.class.php] Line: [666] "INSERT INTO `CCCubeCart_seo_urls` (`type`,`item_id`,`path`,`custom`) VALUES ('prod','1','test-category/test-product','0');" - Duplicate entry 'test-category/test-product' for key 'PRIMARY'
    09 Nov 2017, 08:01 File: [seo.class.php] Line: [666] "INSERT INTO `CCCubeCart_seo_urls` (`type`,`item_id`,`path`,`custom`) VALUES ('saleitems','','sale-items','0');" - Duplicate entry 'sale-items' for key 'PRIMARY'
    09 Nov 2017, 08:01 File: [seo.class.php] Line: [666] "INSERT INTO `CCCubeCart_seo_urls` (`type`,`item_id`,`path`,`custom`) VALUES ('prod','1','test-category/test-product','0');" - Duplicate entry 'test-category/test-product' for key 'PRIMARY'
    09 Nov 2017, 08:01 File: [seo.class.php] Line: [666] "INSERT INTO `CCCubeCart_seo_urls` (`type`,`item_id`,`path`,`custom`) VALUES ('prod','1','test-category/test-product','0');" - Duplicate entry 'test-category/test-product' for key 'PRIMARY'
  10. 2 hours ago, bsmither said:

    So, it seems the main-menu class is being targeted by javascript - when the hamburger/menu icon is clicked - to slide into position.

    However, having copied the div structure from the navigation code so that the documents code looks the same, means there is that same div structure:

    
    <div id="box-navigation">
      <ul class="main-menu">
    
    and
    
    <div id="box-documents">
       <nav>
          <ul class="main-menu">

    Thus, two panels slide into view.

    What needs to be done is three things:

    1. Make it clear to the javascript that the hamburger will slide $('#box-navigation .main-menu') into view,

    2. Copy the javascript routine so that a different icon will slide $('#box-documents .main-menu') into view,

    3. Add a similar looking button below <div id="box-newsletter"> so that it is the trigger to slide the docs menu into view.

    I do not have a copy of GalaxyX, so I do not know how much I can help.

     

    Thank for all your help, I looked at the javascript file and I'm at a complete lost.

    I've uploaded a copy of the my current galaxyx theme with all the mod's so far,
    deleted it after you have a look at the files.

    once again your help is really appreciated.

     

  11. 2 hours ago, bsmither said:

    In box.navigation.php, find:

    
    <h3><i class="fa fa-ellipsis-h"></i> {$LANG.something.something}</h3>
    <div id="box-navigation">

    Delete the entire line that has <h3>.

    that did the trick thanks. I'll have to donate a beer or coffee for being so helpful.

    To be a real pain, is there a work around to remove doc's from the drop down menu and have the categories showing instead? this menu is responsive and show when using a Iphone Samsung phones. in the image you see the categories loading up behind documents.

    Responsive menu photo below

    respmenu.PNG

     

  12.  That work great thank you. just one more thing how would I go about removing ...Shop By Category

    Your help has been much appreciated

    Cheers

    1 hour ago, bsmither said:
    
    In main.php, find:
    
    <div class="grid">
        <div class="col-1-1">
           <div class="content">
               {include file='templates/box.navigation.php'}
           </div>
    
    Change to:
    
    <div class="grid">
        <div class="col-1-1 footer">
           <div class="content">
               {include file='templates/box.navigation.php'}
           </div>
    
    In box.navigation.php, find:
    
    <div class="panel navigation">
      <ul>
    
    Change to:
    <div id="box-navigation">
      <ul class="main-menu">

    This should get you mostly to where I think you want to be.

    That work great thank you. just one more thing how would I go about removing ...Shop By Category

    Your help has been much appreciated

    Cheers

  13. Hi all, Could someone please help me sort this menu out or point me in the right direction.

    I'm using the Galaxy theme, I've moved the doc's menu from the top of the theme to the footer, with no issues.
    The trouble I'm having now is that I want to have the categories as the top main menu. If you take a look a the website https://wickedstuff.co.nz/ 
    you can see what I mean. I don't know which file/files I need to edit to render a normal menu style.

    here's the code I change to achieve where the themes at now.

     

    </div><!-- Header : End -->

    <div class="grid">
        <div class="col-1-1">
           <div class="content">
               {include file='templates/box.navigation.php'}
           </div>
        </div>
    </div>

    <div class="grid">
        
    <div class="col-1-1">
       <div class="content main">

        <div class="col-9-12">
           <div class="content main-body">
             {include file='templates/box.errors.php'}
             {include file='templates/box.progress.php'}
             {$PAGE_CONTENT}
           </div>
        </div>

        <div class="col-3-12">
           <div class="content sidebar">
             {include file='templates/box.featured.php'}
             {include file='templates/box.popular.php'}
             {include file='templates/box.sale_items.php'}
             {include file='templates/box.language.php'}
             {include file='templates/box.skins.php'}
           </div>
        </div>

       <div class="clear"></div>
    </div>


    <div class="col-1-1 footer">
      <!-- The Docs content moved to here. -->
    <!--  <div class="grid">
        <div class="col-1-1"> -->
           <div class="content">
               {include file='templates/box.documents.php'}
           </div>
    <!--    </div>
      </div> -->
      <div class="content">
          <div class="col-6-12">
            {include file='templates/box.newsletter.php'}

          </div>
          <div class="col-6-12">
            {$SOCIAL_LIST}
          </div>
        
        <div class="clear"></div>
      </div>
    </div>

    </div>

    <div class="copyright">

    any help would be very much appreciated.

    Cheers Peter

  14. On 6/11/2016 at 11:00 AM, bsmither said:

    Let's move the document bar to the bottom, just above the Mailing List - Social Icon bar:

    
    In the template main.php, find:
    
    Near line 117:
    <div class="col-1-1 footer">
      <div class="content">
          <div class="col-6-12">
            {include file='templates/box.newsletter.php'}
    
    Change that to:
    <div class="col-1-1 footer">
      <!-- The Docs content moved to here. -->
    
      <div class="content">
          <div class="col-6-12">
            {include file='templates/box.newsletter.php'}
    
    Then, near lines 77-83:
    <div class="grid">
        <div class="col-1-1">
           <div class="content">
               {include file='templates/box.documents.php'}
           </div>
        </div>
    </div>
    
    Cut that to the clipboard, and paste on the blank line just after the added comment:
    <div class="col-1-1 footer">
      <!-- The Docs content moved to here. -->
      <div class="grid">
        <div class="col-1-1">
           <div class="content">
               {include file='templates/box.documents.php'}
           </div>
        </div>
      </div>
      <div class="content">
          <div class="col-6-12">
            {include file='templates/box.newsletter.php'}
    
    There is now some redundant <div> blocks, so edit the group to look like:
    <div class="col-1-1 footer">
      <!-- The Docs content moved to here. -->
    <!--  <div class="grid">
        <div class="col-1-1"> -->
           <div class="content">
               {include file='templates/box.documents.php'}
           </div>
    <!--    </div>
      </div> -->
      <div class="content">
          <div class="col-6-12">
            {include file='templates/box.newsletter.php'}

    Thanks bsmither, not sure what I did wrong take a look http://devilish.co.nz/

    Your help is much appreciated

    That did the trick, thanks much appreciated  

  15. On 6/11/2016 at 11:00 AM, bsmither said:

    Let's move the document bar to the bottom, just above the Mailing List - Social Icon bar:

    
    In the template main.php, find:
    
    Near line 117:
    <div class="col-1-1 footer">
      <div class="content">
          <div class="col-6-12">
            {include file='templates/box.newsletter.php'}
    
    Change that to:
    <div class="col-1-1 footer">
      <!-- The Docs content moved to here. -->
    
      <div class="content">
          <div class="col-6-12">
            {include file='templates/box.newsletter.php'}
    
    Then, near lines 77-83:
    <div class="grid">
        <div class="col-1-1">
           <div class="content">
               {include file='templates/box.documents.php'}
           </div>
        </div>
    </div>
    
    Cut that to the clipboard, and paste on the blank line just after the added comment:
    <div class="col-1-1 footer">
      <!-- The Docs content moved to here. -->
      <div class="grid">
        <div class="col-1-1">
           <div class="content">
               {include file='templates/box.documents.php'}
           </div>
        </div>
      </div>
      <div class="content">
          <div class="col-6-12">
            {include file='templates/box.newsletter.php'}
    
    There is now some redundant <div> blocks, so edit the group to look like:
    <div class="col-1-1 footer">
      <!-- The Docs content moved to here. -->
    <!--  <div class="grid">
        <div class="col-1-1"> -->
           <div class="content">
               {include file='templates/box.documents.php'}
           </div>
    <!--    </div>
      </div> -->
      <div class="content">
          <div class="col-6-12">
            {include file='templates/box.newsletter.php'}

    Thanks bsmither, not sure what I did wrong take a look http://devilish.co.nz/

    Your help is much appreciated

     

  16. Help please, I purchased the galaxyx theme, I've been doing some customizing, here's the link http://devilish.co.nz/

    I'm trying to move the document menu to the footer and have categories to show in the main menu

    I tried commenting out {include file='templates/box.documents.php'} and replacing it with {include file='templates/box.navigation.php'} but it displays the top menu as it looks in the sidebar.

    </div><!-- Header : End -->

    <div class="grid">
        <div class="col-1-1">
           <div class="content">
               {include file='templates/box.navigation.php'}
           </div>
        </div>
    </div>

    I will remove the {include file='templates/box.navigation.php'} from the <div class="content sidebar"> as I don't want it there.

    <div class="col-3-12">
           <div class="content sidebar">
             {include file='templates/box.navigation.php'}
             {include file='templates/box.featured.php'}
             {include file='templates/box.popular.php'}
             {include file='templates/box.sale_items.php'}
             {include file='templates/box.language.php'}
             {include file='templates/box.skins.php'}
           </div>
        </div>

    Any help will be much appreciated

     

  17. Hi all, Great to see cubecart is now open sourced although paid for it a number of years ago.

    I'm wanting help with customizing my footer..

    Vision v6, devilish.co.nz I removed the follow us social area and the mailing list from the footer, I need help to remove the TEXT "information" and make the links go across the page.

    Your help will be much appreciated

×
×
  • Create New...