Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Soft Cart Related not working
Author « Topic »  

Marshall
Ecommerce Template Guru

USA
1874 Posts

Posted - 06/23/2019 :  09:30:11  
PHP v7.0.5
Have this in the includes.php
$crosssellsectionmax=3;
$softcartrelated=TRUE;
$softcartrelatedheader="Frequently bought with this item";
$screlatedlayout="productimage,productname";

var=softcartrelated=TRUE; shows in the page's source code, but nothing else does.



Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Andy
ECT Moderator

95440 Posts

Posted - 06/23/2019 :  10:02:44  
Hi Marshall

That should work fine. Have you double checked the obvious, that there are related items, that they're not already in the cart and the version?

Andy

Please feel free to review / rate our software

Marshall
Ecommerce Template Guru

USA
1874 Posts

Posted - 06/23/2019 :  10:13:51  
Yep. And I am using it fine on another site. Here is the CSS I have set up
#softcartrelated{text-align:left}
div.scrproduct{width:31%;display:-moz-inline-stack;display:inline-block;vertical-align:top;margin:4px;zoom:1;*display:inline;_height:180px;}
h1.scrheader{font-size:16px;color:#000 !important;font-weight:bold !important;margin:4px 8px;border-bottom:1px solid #EC971F;background:transparent !important;}
div.scrproduct div{text-align:center;padding:4px 0px;margin:0px 2px}
div.scrimage{padding:4px;max-width:300px;max-height:300px;overflow-y:hidden;}
img.scrimage{max-width:99%;height:auto;margin-right:auto;margin-left:auto;}
div.scrprodname{background:transparent !important;}
div.scrprodname a.ectlink{font-size:12px;color:#255628;border-bottom:1px dotted #030;text-decoration:none;}
div.scrprodname a.ectlink:hover{color:#EC971F;border-bottom:1px dotted #030;text-decoration:none}
div.scrproddescription p{margin:0px}
div.scrprodprice{font-weight:bold}
@media screen and (max-width: 560px) {
div.scrproduct{width:48%;}
}
@media all and (max-width:480px) {
div.scrproduct{width:98%;}
}

You can check it here. There are 2 related products https://www[dot]grabbarspecialists[dot]com/proddetail.php?prod=GBS-1IN-PC-ROLLED-STEEL-AL
Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Edited by - Marshall on 06/23/2019 10:17:13

Andy
ECT Moderator

95440 Posts

Posted - 06/23/2019 :  10:28:09  
Is that using the Alt Prod ID feature, if so can you make sure the hidden product is related?

Andy

Please feel free to review / rate our software

Marshall
Ecommerce Template Guru

USA
1874 Posts

Posted - 06/23/2019 :  10:42:17  
I assumed that would cover the Alt IDs. Guess I was wrong. Have to admit, that makes setting it up more time consuming. Thanks Andy.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000