Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 09-22-2024 06:29:20

Graham
Member
Registered: 09-30-2004
Posts: 986
Website

Add featured product to left side bar

I'm trying to add a featured product at the top of the left sidebar, above the main menu list but I can't get it to appear where I want.

I tried creating a widget with a display group of SIDEBAR0 and edited skin.php as follows:

Code:

<div id="kskin_col2" class="kgridbox kgridxcol25 kgridwidethin kflex2thin kflex2mid kflex1wide">
<div class="kgridmidhalf">
<?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR0', 'display' => 'flex-separate')); ?>
</div>
<?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR1', 'display' => 'flex-separate')); ?>
</div>
<?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR2', 'display' => 'flex-separate')); ?>
</div>

I have the Main Menu on the left as SIDEBAR1 and some banner ads below in SIDEBAR2, however when I try to add the featured product, it appears with the other banner adverts.

I've also tried chaning the Display Order, but that still doesn't work.

If you look at https://affordableleather.co.uk/ it's the guitar pedal that appears in between PayPal and Free Delivery.

This is very frustrating, please can someone tell me how to fix this?

Last edited by Graham (09-22-2024 06:29:52)

Offline

 

#2 09-23-2024 10:39:37

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19829
Website

Re: Add featured product to left side bar

You've got a div open and two div closures in there that are messing with your view.  Change to:

Code:

<div id="kskin_col2" class="kgridbox kgridxcol25 kgridwidethin kflex2thin kflex2mid kflex1wide">
<?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR0', 'display' => 'flex-separate')); ?>
<?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR1', 'display' => 'flex-separate')); ?>
<?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR2', 'display' => 'flex-separate')); ?>
</div>

Nick Hendler

Offline

 

#3 09-24-2024 18:18:11

Graham
Member
Registered: 09-30-2004
Posts: 986
Website

Re: Add featured product to left side bar

Damn, I am *SO* out of practice with hacking code...!

I should have noticed that :-(

Thanks.

Offline

 

#4 09-26-2024 08:05:37

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19829
Website

Re: Add featured product to left side bar

It happens to the best of us smile


Nick Hendler

Offline

 

#5 10-02-2024 04:49:18

frankenstein
Member
From: United States
Registered: 09-09-2024
Posts: 1

Re: Add featured product to left side bar

e beam sterilization equipment

Last edited by frankenstein (10-02-2024 04:51:40)

Offline

 

Board footer