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 08-09-2009 11:53:25

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Move related products

How do I change the layout to move the Related Products?
I'm adding the Tab feature (https://forum.kryptronic.com/viewtopic.php?id=19079) and want to move the related products in a tab, below the Add to Cart button.


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#2 08-09-2009 22:40:45

dh783
Moderator
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Move related products

You will probably have to make edits to the include "Product List Display" to get what you want. I am still quite uncertain as to how you would build the display as it may take some coding to get the job done but you might be able to get what you want in the foreach loop.

John

Offline

 

#3 08-11-2009 09:27:38

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

I'm sorry, but that doesn't make sense to me.
This should be a simple task to change the layout and move the position of the Related Products.
Can you kindly provide instructions how to move Related Products?


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#4 08-11-2009 10:59:40

dh783
Moderator
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Move related products

What exactly do you want to do with the related products? Are you wanting to place them inside a tab display?

John

Offline

 

#5 08-12-2009 11:25:51

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

Yes, inside the tab display.


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#6 08-12-2009 11:55:33

dh783
Moderator
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Move related products

Your wanting to move it up into the area where the description is or are you wanting to place it in a tab display in it's present position, below the add to cart buttons?

John

Offline

 

#7 08-12-2009 12:00:15

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

place it in a tab display in it's present position, below the add to cart buttons

The tab will be placed below the add to cart buttons.


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#8 08-12-2009 12:48:10

dh783
Moderator
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Move related products

That's what I originally thought, then my first post is still valid (given that I am looking a ccp7 name but it should not have changed from ccp6). The Product List Display include is what is building that display but it also builds the display for Featured Items, so you will have to include code to only get what you want on the pages that you want a tab display built. There is a foreach loop in that include that builds the display for each item in an array that is built by another script. To get a tab display your going too have to place code logic in that foreach statement to build the tab divisions needed to create the display and only for the page you want it on.

John

Offline

 

#9 08-18-2009 14:42:47

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

Okay - what's the file name? "Product List Display" tells me nothing.


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#10 08-18-2009 15:21:49

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Move related products

Blitzen wrote:

Okay - what's the file name? "Product List Display" tells me nothing.

Yes, it does.  It's the name displayed in admin under Home > ClickCartPro > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes

Offline

 

#11 08-18-2009 17:25:02

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

I assume you mean apps/ccp0/CCP/includes/prodlist.php
Well, how do I  the related products position. I have the tab feature in the product detail display template.
Thus, I need to move the related products to that template/namespace/file/.
The related products are written to the browser after proddetdisp, but I need it in proddetdisp.

p.s. I don't use the Admin interface. It takes too long to find things. Given just "Product List Display" didn't tell me it was in admin under Home > ClickCartPro > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes. I would have thought it might have been a "core" function.

Last edited by Blitzen (08-18-2009 17:30:29)


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#12 08-19-2009 18:41:35

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

Okay, let me rephrase this.
I need to move Related Products from one namespace to another.
Where, exactly, is the code where the Related Products are written to the browser?


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#13 08-20-2009 04:24:40

dh783
Moderator
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Move related products

In the private_dir/apps/ccp0/CCP_Prod/CCP_Prod.php in function prodshow just under

Code:

// +--
// | Handle related items now if we have them and we're allowed
// | to show them.
// +--

is where the related item array is set and the prodlist.php script is called. Just how you change that and get the array built and able to be pulled for the long description is more than I want to think about at the moment. Keep in mind that ccp does not allow or execute php for the long description by default so you would have to enable that to get this working first.

John

Offline

 

#14 08-20-2009 09:46:25

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

Thank you. I'll look there to determine how to move it to the other file.


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#15 08-21-2009 15:32:40

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

I simply want to move the related products to one of the proddetdisp namespaces.
Copying the code there just doesn't work.
I guess that I won't get any help on this issue.


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#16 08-22-2009 10:45:57

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

I copied the code to proddetdisp and it stops at this (I hardcoded the 'app').
$this->exec_namespace(array('app'       => 'ccp0',
                                 'namespace' => 'prodlist',
                                 'type'      => '*',
                                 'params'    => null));

What do I need to include to get this to work?


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#17 08-22-2009 13:53:43

dh783
Moderator
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Move related products

Fist have you made the edits necessary to get php to be executed in the long description? If not look .

Second you will need to add this line to your descriptions

Code:

<?php $this->include_namespace('ccp0','prodlist',array());  ?>

Third, you will need entries in the "Related Products" field for the item.

Forth, you will need to comment out this code in the prodshow function of CCP_Prod.php (near the end of the function), or you will have two occurrence of the related products display (this will affect all product that display related products)

Code:

$this->exec_namespace(array('app'       => 'ccp0',
                                 'namespace' => 'prodlist',
                                 'type'      => '*',
                                 'params'    => null));

John

Offline

 

#18 08-22-2009 15:03:03

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

Hi John,

Close but no cigars.
I did "second", "third" and "fourth".
BUT, "second" was put into Home > ClickCartPro > Displays: Skins, Menus, XHTML Includes and Messages > Manage Catalog Product Displays: Detail View.

I'm not putting this in ccp0_prod table "product description" field in the database.
The table, ccp0_proddetdisp needs to contain the code to display the Related Products.
(Or, Home > ClickCartPro > Displays: Skins, Menus, XHTML Includes and Messages > Manage Catalog Product Displays: Detail View.)

At the bottom, we're using a tab structure.
In this tab structure, we want the Related Products.

When I put what you suggested there, the program stops after listing 2 of the 6 related products.
Bluntly stops loading anything after that.
Any idea what's missing?


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#19 08-22-2009 15:06:42

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 929
Website

Re: Move related products

Never mind. I got it smile
Thank you John!

Last edited by Blitzen (08-22-2009 15:07:02)


W e b s i t e  E n g i n e e r i n g,   D e s i g n   &   M a n a g e m e n t
Knowledgeable, Experienced, Effective, Available ~ Reasonable prices
wwwBoulderWebsiteEngineering.com

Fast Servers & Reliable Hosting! Reasonable prices.
wwwEZP.net

And, Free Tibet!

Offline

 

#20 09-30-2009 05:59:11

osussat
Member
Registered: 04-16-2005
Posts: 128

Re: Move related products

Hi all
I am finding this a little tricky to follow....
Might you be able to write this solution down as a step-by-step?
Best
Oli

Offline

 

#21 04-23-2011 02:11:59

meshugy
Member
Registered: 12-18-2004
Posts: 348

Re: Move related products

I got this working in CCP7 except for step 4

Code:

$this->exec_namespace(array('app'       => 'ccp0',
                                 'namespace' => 'prodlist',
                                 'type'      => '*',
                                 'params'    => null));

Where do you make this change in CC7? I looked at the Product List Display but couldn't figure what to change to turn off the related products display.

Thanks!

Michael

Offline

 

Board footer