+ Reply to Thread
Results 1 to 6 of 6

Thread: Related Products

  1. #1
    Client
    Join Date
    Nov 2006
    Location
    Illinois
    Posts
    193
    Squirrelcart version
    v3.3.4

    Related Products

    is there anyway to add related products after the add to cart button, instead of just showing it in the side navigation?

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    By default, if you do not assign the Related Products nav block to your theme, related products appear below the product on it's detail page.

    Showing them after an item is added to the cart would require some custom code.

  3. #3
    Client
    Join Date
    Nov 2006
    Location
    Illinois
    Posts
    193
    Squirrelcart version
    v3.3.4
    jamie,

    I think that is what I want, but I can't seem to get it to show unless I enable the Nav Block, I'm not sure if I am missing a setting somewhere but in visual settings it does say to show 3, same thing with also ordered but I am not seeing anything anywhere.

    Not sure if I am having a dumb moment or what.

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Ah, OK. You are probably using a custom version of the product_detail.tpl.php template and are missing the variable for it. Take a look towards the bottom of squirrelcart/themes/squirrelcart/product_detail.tpl.php. You should find the variable. I *think* it's:
    PHP Code:
    <?php print $Related_Products ?>
    I am not at my computer at the moment but I think that is correct. If you add that towards the bottom of your custom version of that template it should work.

    The docs listing all the template changes will be available early tomorrow.

  5. #5
    Client
    Join Date
    Nov 2006
    Location
    Illinois
    Posts
    193
    Squirrelcart version
    v3.3.4
    no prob jamie, I can look at the 2 files and I'm sure i can figure it out, I totally forgot about the template files.

    Thanks, Now I have to stay up later and get it all good to go.

  6. #6
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    I can confirm that the code you need is:
    PHP Code:
    <?php print $Related_Products?>
    By default, it is right after:
    PHP Code:
    <?php print $Reviews?>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts