Jump to content
thirty bees forum

Community-Theme-Modded


toplakd

Recommended Posts

You can already show front page as wished:

-Image slider
-HTML block
-block cmsinfo
-Block Featured
....

There is no styling needed, just little creativity. And not to mention not to overload the custumers with 2meters long front page.

Link to comment
Share on other sites

I've decided to duplicate BlockCategories module so for mobile menu BlockCategoriesMobile is used.

BlockCategoriesMobile hooks itself into right column which is used for left sidebar on screen width up to 767px

That way one can set the copmputer Category root view independently of mobile view where Category root - home is the only option so categories are visible on any page by accessing navbar icon which opens sidebar.

Screenshot_2020-04-20 Xmass hats - My Store.png

 

487357043_Screenshot_2020-04-20ModulesandServicesMyStore.png.675a657b5cbf2c90cf7f727d137581fe.png

Edited by toplakd
  • Thanks 1
Link to comment
Share on other sites

Updated first post, with theme file for download

Install by clicking onto add new theme and upload zip file from computer.

Still needs some polishment here and there. But will get to that.

Edited by toplakd
  • Thanks 1
Link to comment
Share on other sites

18 hours ago, toplakd said:

Updated first post, with theme file for download

 

@toplakd - Thanks for this!  I downloaded and on the next rainy day will start testing on one of my shops.  Would it be possible to list the 1.1.0 theme files you changed?  That will make it easier to integrate with the mods I have already done.

Link to comment
Share on other sites

5 hours ago, toplakd said:

For finding out which files were modified you can copy whole modded folder into community-theme-default and check differences with core updater.

Thanks - cool method to find changes! 

For those interested, the attached text file shows the result listing the changed files toplakd modded.

Modded-files.txt

Link to comment
Share on other sites

@toplakd - this is awesome!  In addition to some mods unique to my shop, I'll provide another update others may want.  This formats customized products displayed in the checkout, pdf and history with each customization on a single line prefixed with a hyphen (-) to make it easier to read.  The annotated desktop display screen shot below shows this, along with other mods I've done including the "hide quantity" mod that prevents changing the quantity for products such as members registration.

Files modified in the template directory to format customizations on seperate lines are: order-detail.tpl, shopping-cart-product-line.tpl, and /pdf/invoice.product-tab.tpl with changes described below.

order-detail.tpl - about line 277 search for:

                    {else}
                    {$product.product_name|escape:'html':'UTF-8'}
                    {/if}

and replace with

                    {else}
		{$product.product_name|replace:' - ':':<br> - '|replace:', ':'<br> - '}
                    {/if}

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

shopping-cart-product-line.tpl - about line 40 search for:

      {if isset($product.attributes) && $product.attributes}
      <small><a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute, false, false, true)|escape:'html':'UTF-8'}">{$product.attributes|@replace: $smarty.capture.sep:$smarty.capture.default|escape:'html':'UTF-8'}</a></small>{/if}
    </div>

and replace with:

      {if isset($product.attributes) && $product.attributes}
      <small><a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute, false, false, true)|escape:'html':'UTF-8'}"> - {$product.attributes|@replace: $smarty.capture.sep:$smarty.capture.default|replace:' - ':':<br> - '|replace:', ':'<br> - '|replace:'<br> - or am':' or am'}</a></small>{/if}
    </div>

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

/pdf/invoice.product-tab.tpl - about line 68 search for:

				{else}
					{$order_detail.product_name}
				{/if}

and replace with:

				{else}
					{$order_detail.product_name|replace:' - ':':<br> - '|replace:', ':'<br> - '}
				{/if}

 

customizations-on-new-line.png

  • Like 1
Link to comment
Share on other sites

On 5/11/2020 at 8:32 PM, Rhapsody said:

For those interested, the attached text file shows the result listing the changed files toplakd modded.

There are not only changed files, there are also some extra files in theme which might show up in obsolete files (files for mobile menu)

Link to comment
Share on other sites

This file can be used for if someone would want to have tabbed style of "product description content" tabbed on product page (product.tpl)

Styling and script is inline, one should add own tab names which will suit the use.

testing.tpl

Edited by toplakd
Link to comment
Share on other sites

16 minutes ago, toplakd said:

This file can be used for if someone would want to have tabbed style of "product description content" tabbed on product page (product.tpl)

Styling and script is inline, one should add own tab names which will suit the use.

testing.tpl 51.62 kB · 2 downloads

I'm sorry, this is not the right solution.

It silently expects that only one module will provide tab content. This is often not true, there can be many modules each of them wanting to display their own tab. Your code would group content from all these modules under one tab, instead of creating separate tabs for all of them. Also, you the tab names are ignored.

Just saying 🙂

  • Like 1
Link to comment
Share on other sites

I know, that's why tabs are not the main goal and will never be included in main template file, as it's just a simple solution so one can check how tabs are made.
I personaly would not ever use them on product pages in my shop, as I do prefer that everything is visible on single product page due to later complications with customers, where they didn't see some information as it was on 2nd or 3rd tab.

 

Link to comment
Share on other sites

@toplakd - I have a request for the home button on the mobile menu.  The sites I run have a main site using WordPress that appear at the site root and the shop in its own directory that appears as https://root.com/shop 

Would it be possible to make the mobile menu home icon slide open a window similar to the other icons that allow the user to select Site Home or Shop Home? 

Below is some code that is close to what I want, but I'm not well versed in javascript code used in the header-mobile-menu.tpl template file.

 

    <li>
      <a href="{$link->getPageLink('index', true)|escape:'html':'UTF-8'}" title="{l s='Shop Home'}" rel="nofollow">
        {l s='Shop Home'}
      </a>
    </li>
    <li>
      <a {if $smarty.server.HTTPS eq 'on'}href="https://{else}href="http://{/if}{$smarty.server.HTTP_HOST}" title="{l s='Site Home'}" rel="nofollow">
        {l s='Site Home'}
      </a>
    </li>

 

Link to comment
Share on other sites

As home in shop has only one function, going to shop home, there is no need for extra slideout menu, therefore only button is enough.

Therefore if such modification is needed, you should check how the script is made and how other buttons open the menus, and adopt that change for your own needs.

Slideouts are made on following basis:

https://www.w3schools.com/howto/howto_js_sidenav.asp

 

Edited by toplakd
Link to comment
Share on other sites

Now there will 2 choices for Home button.

One will act as button for going home, other will open sidebar with following modules: blockLink, blockstore and blockcontactinfos.

Will upload the changes soon

 

Edited by toplakd
  • Thanks 1
Link to comment
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
×
×
  • Create New...