Relted Product – Upsell Product… which one… both not showing

Right been stuck on this today.

Have created a configurable product, that worked well & looks good, however this product requires batteries.

Have created a simple product for this, shows up in catagories & search,

However doesn’t show up on product page.

I have checked the JM_BAsetheme settings and they seem ok

I have tried adding it both as a related and upsell item.

I have a multistore which has borked JM_Basetheme slightly!

Nothing.

What am I doing wrong.

BTW the site is of a slight adult nature.

http://www.lovebliss.co.uk

Thanks

8 answers

Profile photo of Georgios Karapalidis 0.00 $tone April 11, 2014
Public

Hello ruffmen,

I had the same problem as well, the upsell products are shown as related products with this template for some reason. In order to make it visible in a product page, you need first of all to set the dimensions of the upsell image size in the Basetheme extension and then select the product you want as upsells, in the manage product page.

And don’t forget to reindex data under the index management. This might help too.

George

#1
Profile photo of Vinicius Silva 0.00 $tone April 13, 2014
Public

Hi,
I have this exact same problem with JM Crafts Theme. Related Products area is only displayed if I add the products as "Upsell". I can’t figure out how to make this work properly as I don’t want to mess with the catalog storing upsets as related which could cause me a lot of trouble if a fix is available in the future. I even tried to rewrite this parte of could replacing the "upsell" string with "related" but it didn’t work.

If anyone has a solution for this please let me know.

Cheers,
Vinny

#3
Profile photo of Vinicius Silva 0.00 $tone April 13, 2014
Public

Hi,
I’ve been tweaking with the code and this is what I figured out so far…

I had to add this line of code in "view.phtml" as stated in another forum thread:

PHP Code:

<?php echo $this->getChildHtml('related_products'); ?>


But nothing happened.

Then I opened "catalog.xml" and changed this following line:
From:

PHP Code:

<catalog_product_view translate="label">
        <
label>Catalog Product View (Any)</label>
        <!-- 
Mage_Catalog -->
        <
reference name="root">
            <
action method="setTemplate"><template>page/1column.phtml</template></action>
        </
reference




To:

PHP Code:

<catalog_product_view translate="label">
        <
label>Catalog Product View (Any)</label>
        <!-- 
Mage_Catalog -->
        <
reference name="root">
            <
action method="setTemplate"><template>page/2columns-left.phtml</template></action>
        </
reference




It also works with "2columns-right.phtml". In this case we must change these lines of codes shown down the code:

PHP Code:

<reference name="right">
            <
block type="catalog/product_list_related" name="catalog.product.related" as="related_products" before="-" template="catalog/product/list/related.phtml"/>
        </
reference




Now it shows related products but the whole layout is pretty messed up as it was not intended to work properly with related products.

I’ll see if it’s easy to try to solve this thing but I’m not a php developer or have design skills. I’m a Java programmer

Cheers,
Vinny

#4
Profile photo of Seoki Lee 1510.00 $tone April 15, 2014
Public

You are right, our JM Base theme does support multi stores at the moment. I’ve added code to resolve your problem, please check again:
http://lovebliss.co.uk/index.php/mini-rabbit.html

On Jm Craft theme, product detail displays upsell product, not related products. If you want to display related products without changing layout of product detail, please try follow steps:

1.Open the file ..\app\design\frontend\default\jm_crafts\layout\ca talog.xml

At line 186, after this code:

Code:

<block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">

Add this code:

Code:

<block type="catalog/product_list_related" name="catalog.product.related" as="related_products" template="catalog/product/list/related.phtml"/>

2. Open the file ..\app\design\frontend\default\jm_craftstemplate\ catalog\product\view.phtml

After this code:

Code:

<?php 
if($baseconfig['showupsell']):
    $upsell_products = $this->getChild('upsell_products');
    if($upsell_products) {
	    $upsell_products->setItemLimit("upsell",$baseconfig['upsellnumber']);
		if($upsell_products = $this->getChildHtml('upsell_products')): ?>
		   <?php echo $upsell_products; ?>
		<?php endif;
    }
endif;
?>

Add this code:

Code:

 <?php echo $this->getChildHtml('related_products'); ?>

Hope this helps.

#5
Profile photo of Vinicius Silva 0.00 $tone April 15, 2014
Public

Hi Lee,
Thank you very much for your help. In another thread I posted this exactly same solution!
Then I realized what you said: JM Crafts layout is not proper for Related Products. There isn’t enought room for this content in the layout. So, I gave up trying.

Regards,
Vinny

#6
Profile photo of Seoki Lee 1510.00 $tone July 15, 2014
Public

Did you disable your site’s cache in your admin?
If it still does not show, please PM me your site’s url, admin and ftp credentials, I will help you check it.

#8

Please login or Register to Submit Answer

Written By

Comments