Replace "cart" module

GK User
Wed Mar 14, 2012 11:16 am
Hi there, working with boutique 2.5.

Just need to use the cart module for a HTML personnalized module. It's nothing complicated, just as serie of icon with links.

I don't want the cart popup. I do not use online store. Just need the exact position for icon the same size as the basket icon that is normally there at "cart" position.

Here is an example of the content I want to put there:

You have a lot of 404 on the forum. I can't find anything today. Your SEF seems to have overwhelming problems. Couldn't access this thread along with others: 96-yourshop/71795-custom-add-search-align-with-cart.html

Cheers.
User avatar
Platinum Boarder

Konrad M
Wed Mar 14, 2012 12:36 pm
Hi
Unforunetly cart position is only for cart module. But you can unpublish cart module and add new postion module in same place. Here is lin khow add new module position https://www.gavick.com/documentation/jo ... -position/
User avatar

GK User
Thu Mar 15, 2012 11:38 am
Hi there,

I followed the instruction provided in the below mentioned article to add a module position without much progress.

My new module position is cart2:

-Edited templateDetails.xml line 162:
Code: Select all
        <position>cart2</position>   


-Edited gk.const.php at line 29:
Code: Select all
        'cart2' => 'none',


-I did not edit template.css as there's no instruction provided in your tutorial.

-Edited default.php around line 71-90:
Code: Select all
      <div id="gkPageWrap">
           <div id="gkPageTop" class="clearfix<?php if($this->getParam('top_color', 'dark') == 'dark') echo ' dark'; ?>">
              <?php $this->loadBlock('logo'); ?>

              <div id="gkMainMenu">
                 <?php
                    $this->menu->loadMenu($this->getParam('menu_name','mainmenu'));
                     $this->menu->genMenu($this->getParam('startlevel', 0), $this->getParam('endlevel',-1));
                 ?>

                 <?php if($this->modules('cart')) : ?>
                 <div id="btnCart"></div>
                 <?php endif; ?>
                                        <?php if($this->modules(‘cart2’)) : ?>
               <div>
               <jdoc:include type=”modules” name=”cart2” style=”<?php echo $this->module_styles['cart2']; ?>” />
               </div>
               <?php endif; ?>
              </div>
           </div>



Cheers.
User avatar
Platinum Boarder

Konrad M
Thu Mar 15, 2012 12:32 pm
Check in your default.php difrence between my "" and ' ' and yours. I guess you paste it. Prablby it can be reason why doesn't work. And please send me url to your site.
User avatar

GK User
Mon Mar 19, 2012 10:41 am
Konrad M wrote:Check in your default.php difrence between my "" and ' ' and yours. I guess you paste it. Prablby it can be reason why doesn't work. And please send me url to your site.


That solved the problem. Cheers.
User avatar
Platinum Boarder

Konrad M
Mon Mar 19, 2012 11:44 am
Great. Always check when you will paste some code.
User avatar

GK User
Thu Mar 22, 2012 8:58 am
Hi there, I got problems trying to figure out how to edit CSS from a newly created module. My module is a custom html that was added with the given procedure in this thread.

I do not know how to assign this new module "cart" to a CSS class or Div ID. I am a bit confused with those things. I tried to do it in the main template.css but without any success.

This is the php coding that was added in the /templates/gk_boutique/layouts/default.php at line 80:

Code: Select all
                               <?php if($this->modules('cart2')) : ?>
                                        <div>
               <jdoc:include type="modules" name="cart2" style="<?php echo $this->module_styles['cart2']; ?>" />
               </div>
               <?php endif; ?>


I need to add padding and margin to this module it's too low in the header
Any help appreciated. Thanks.
User avatar
Platinum Boarder

Konrad M
Thu Mar 22, 2012 1:11 pm
Try add some suffix in module settings. Than add css rules in override.css
User avatar

GK User
Sat Mar 24, 2012 7:11 am
Konrad M wrote:Try add some suffix in module settings. Than add css rules in override.css


It didn't work in the override.css. I think it's on the template management settings, I do not know what to set in order to have the override.css to take over the template.css file.

I did it directly in the template.css by giving an ID to the table I create in my custom html module for the icons. Seems to work now.

Cheers.
User avatar
Platinum Boarder

Konrad M
Sat Mar 24, 2012 8:43 am
Did you check in 'Advanced settings' section in template settings?
User avatar


cron