Displaying Related Items on Shopping Cart Page

Started by Ollie, September 22, 2014, 06:58:44 AM

Previous topic - Next topic

Ollie

I'd like to display the related items (if any) on the Shopping Cart page. How can this be accomplished? I tried inserting this code where I want the items displayed, but it didn't work.

<?php if ($related_products) { ?><li><a href="#relatedproducts"><?php echo $tab_related; ?> (<?php echo count($related_products); ?>)</a></li><?php } ?>
Assistive technologies for people with special needs:
https://assistech.com/store/

yonghan

Hello,as abantecart was mvc based framework,so you need to check the controller file before you paste the code on tpl page.if the data was not passed from the related controller file,the in the template file will not show anything as there are no data.hope it helps.

Ollie

Quote from: handoyo on September 22, 2014, 08:04:41 AM
you need to check the controller file before you paste the code on tpl page
What do I need to look for in the controller file? Do I need to add anything?
Assistive technologies for people with special needs:
https://assistech.com/store/

Forum Rules Code of conduct
AbanteCart.com 2010 -