Post by buypowerbg » Sun Mar 06, 2022 6:14 pm

Hi evryone,
I apologize if there is already such a topic, but I have been struggling with it for two days. I want logo, search bar and cart to be in one row for mobile view. My web is https://buypower.bg/ and version is 2.3.0 . Default theme i use.

Newbie

Posts

Joined
Fri Dec 04, 2020 12:00 am

Post by johnp » Sun Mar 06, 2022 10:03 pm

I'm guessing you need something like this but think it'll be a squeeze to get it all in. You may have to change the size of the search box. It's a starting point though and I'm sure some of the experienced coders can offer a better solution.

Code: Select all

<header>
<div class="container" style="relative;"> 

<div class="col-sm-4 col-xs-4"> 
<div id="logo">         
          <a href="https://buypower.bg/"><img src="https://buypower.bg/image/catalog/logo/SASHO-LOGO-small.png" title="Buy Power" alt="Buy Power" class="img-responsive" /></a> 
</div>     
</div>  
<div class="col-sm-6 col-xs-4"><div id="search" class="input-group"> 
<input type="text" name="search"  placeholder="Търсене" class="form-control input-lg" />  
<span class="input-group-btn">   
<button type="button" class="btn btn-primary-outline">
<i class="fa fa-search" style="font-size:36px" aria-hidden="true"></i>
</button>
</span>  </div>	</div>  

<div class="col-sm-2 col-xs-4">
<div id="cart" class="btn-group btn-block">
  <button type="button" data-toggle="dropdown" data-loading-text="Зареждане..." class="btn btn-inverse btn-block btn-lg dropdown-toggle"><i class="fa fa-shopping-cart"></i> <span id="cart-total"><span class="cart-count">0</span></span></button>
  <ul class="dropdown-menu pull-right">
        <li>
      <p class="text-center">Вашата количка е празна!</p>
    </li>
      </ul>
</div>
</div> 
</div>
</header>

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by buypowerbg » Mon Mar 07, 2022 3:47 pm

Done, thanks johnp.
In fact, it's not very pretty now. Now let it work to hide the search box and show it when clicked. I know I'm going to need javascript for this so I'm starting to work on it. If anyone has a solution or wants to help with something is welcome.

Newbie

Posts

Joined
Fri Dec 04, 2020 12:00 am

Post by cyclops12 » Mon Mar 07, 2022 8:40 pm


Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by johnp » Mon Mar 07, 2022 11:11 pm

buypowerbg wrote:
Mon Mar 07, 2022 3:47 pm
Done, thanks johnp.
In fact, it's not very pretty now. Now let it work to hide the search box and show it when clicked. I know I'm going to need javascript for this so I'm starting to work on it. If anyone has a solution or wants to help with something is welcome.
Personally I think it looks ok. That said, I would have the logo and cart button on one row and the search box underneath. Each to their own though. :)

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by buypowerbg » Thu Mar 10, 2022 7:58 pm

I don't know where I'm wrong, but I can't get it. I found an even easier example, but I don't have a result there either. In fact scrip tage where need to be post, in header.tpl or search.tpl? If any can't help litle I would be very grateful

Newbie

Posts

Joined
Fri Dec 04, 2020 12:00 am

Post by buypowerbg » Fri Mar 11, 2022 6:01 pm

No one can help. I got somewhere but obviously I can't guess the exact classes. :bash:

Newbie

Posts

Joined
Fri Dec 04, 2020 12:00 am
Who is online

Users browsing this forum: No registered users and 18 guests