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
Forum Search
Google Site Search
Author « Topic »  

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/01/2019 :  08:45:21  
I'm trying to get the recommended products feature to display on my homepage with no success. Please advise. What am I missing? ( As suggested there: https://www.ecommercetemplates.com/help/home-page-display.asp)

Web site reference: lostbuckaroo.com/LBWP


On my homepage I've added the following code in the block I want the recommended products displayed:

<?php
$crosssellaction='recommended';?>
<?php include "vsadmin/inc/inccrosssell.php" ?>

On includes.php file I've added the following lines and now the crosselling section looks like this:

// Cross Selling / Upselling
$GLOBALS['crosssellaction']='bestsellers,related';
$GLOBALS['csbestsellerstitle']='Our best sellers';
$GLOBALS['csrecommendedtitle']='Recommended items';
$GLOBALS['bestsellerlimit']=180;
$csstyleprefix="cs";
$csnobuyorcheckout=TRUE; //This will remove the buy and checkout buttons from the display
$csnoshowdiscounts=TRUE; //This will remove the red discount text from the display
$csnoproductoptions=TRUE; //This will remove the product options from the display

On my main stlyle sheet (style3.css) I've added the following:

/* Cross Sell and Recommended Products
-------------------------------------*/


div.csproduct{
float:left;
width:23%;
margin:4px;
border: 1px solid #ccc;
border-radius:4px;
height:220px;
}

div.csproduct:hover{
border: 1px solid #F6B142;
}

div.quantitydiv, div.csprodid, div.csprodinstock, div.csprodrating, div.csproddateadded,div.csprodmanufacturer{
display:none;
}

div.csprodimage, div.csprodname, div.csprodprice{
width:100%;
text-align:center;
}

Vince
Administrator

42761 Posts

Posted - 07/01/2019 :  15:17:39  
Hi there
Looking at the code you seem to have the lines for the cross sell commented out...
<!--?php $crosssellaction='recommended';?-->
<!--?php include "vsadmin/inc/inccrosssell.php" ?-->
This should be say...
<?php $crosssellaction='recommended';?>
<?php include "vsadmin/inc/inccrosssell.php" ?>
But also, have you recommended products on the admin products page?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/02/2019 :  16:30:52  
Thank you I fixed the code on the homepage.. It's still not working however.

I've got 4 or 5 products with "Recommended" check on the admin page.

dbdave
ECT Moderator

USA
10410 Posts

Posted - 07/02/2019 :  17:46:00  
Hi, perhaps check the page (code) to be sure all of the standard include lines are there. They will be needed just the same as they are for the products.php and categories.php pages.
I am not sure about wordpress, but for the .php versions it will be something like...
<?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?>


I would just compare the top 5-10 lines in your home page versus the categories page for example.

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 07/03/2019 :  01:42:46  
Hi Carlos,
I think you need to be using the Wordpress plugin for that - https://www.ecommercetemplates.com/wordpress/wp-plugins.asp#home



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/03/2019 :  07:24:27  
Phil, I was trying to use the plugin but Andy recommended I go about it this way.

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 07/03/2019 :  07:30:32  
Oh okay, sorry didn't realise that.
If you still can't get it to work just mail me over the FTP details and I'll take a look for you.

Shouldn't this line $GLOBALS['crosssellaction']='bestsellers,related';
be $GLOBALS['crosssellaction']='bestsellers,related,recommended';



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 07/03/2019 07:32:11

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/03/2019 :  08:05:23  
I just need to get one or the other to work so I can display products on the homepage.

Using the homepage product plugin I'm getting the following error:

Warning: include(vsadmin/db_conn_open.php): failed to open stream: No such file or directory in D:\home\lostbuckaroo.com\wwwroot\LBWP\wp-content\plugins\ect-homepage-products\index.phpon line 69

Warning: include(vsadmin/db_conn_open.php): failed to open stream: No such file or directory in D:\home\lostbuckaroo.com\wwwroot\LBWP\wp-content\plugins\ect-homepage-products\index.phpon line 69

Warning: include(): Failed opening 'vsadmin/db_conn_open.php' for inclusion (include_path='.;C:\php\pear') in D:\home\lostbuckaroo.com\wwwroot\LBWP\wp-content\plugins\ect-homepage-products\index.php on line 69

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 07/03/2019 :  09:11:32  
Did you try my other suggestion?

quote:
Shouldn't this line $GLOBALS['crosssellaction']='bestsellers,related';
be $GLOBALS['crosssellaction']='bestsellers,related,recommended';




* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/03/2019 :  09:18:00  
Hey Phil yep I have the following in the wordpress head template:

<?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?>

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 07/03/2019 :  09:20:19  
I think you should have this in the vsadmin/includes.php

$GLOBALS['crosssellaction']='bestsellers,related,recommended';

Not $GLOBALS['crosssellaction']='bestsellers,related';



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/03/2019 :  09:35:36  
Thank you Phil,

vsadmin/includes.php now reads like this: (however products are still not showing on my homepage..

// Cross Selling / Upselling
$GLOBALS['crosssellaction']='bestsellers,related,recommended';
$GLOBALS['csbestsellerstitle']='Our best sellers';
$GLOBALS['csrecommendedtitle']='Recommended items';
$GLOBALS['bestsellerlimit']=180;
$csstyleprefix="cs";
$csnobuyorcheckout=TRUE; //This will remove the buy and checkout buttons from the display
$csnoshowdiscounts=TRUE; //This will remove the red discount text from the display
$csnoproductoptions=TRUE; //This will remove the product options from the display

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 07/03/2019 :  10:20:23  
Can you email me over the FTP details and I'll take a look for you.

I'll take a quick look now and email you back.

Edit - Have you created a standalone home page? I think that's what you'll have to do



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 07/03/2019 10:21:55

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/03/2019 :  10:46:33  
home page is static however it's not a permalinked page like the rest of the store pages are. products.php, proddetail.php, categories.php etc.

Could that be the problem?

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/03/2019 :  16:42:14  
So I did some testing a created a page with a permalink here: http://lostbuckaroo.com/lbwp/test.php

Inserting the following code seems to work fine for the recommended products on this page. Now to figure out why I cannot get it to work on the homepage.

<?php $crosssellaction='recommended';?>
<?php include "vsadmin/inc/inccrosssell.php" ?>

However the page was created and edited in dreamweaver.. then uploaded via filezilla.. completely bypassing wordpress other than creating a page and pointing to a permalink..

Edited by - lostbuckaroo on 07/03/2019 17:05:31

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 07/04/2019 :  01:35:56  
Glad you've got that sorted out.



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/04/2019 :  09:12:26  
I wouldn't quite say it's sorted out. I can't get it to work via wordpress page editor. If I'm unable to get this to work via Wordpress it sorta defeats the whole purpose of going to a wordpress based design. I'm trying to get away from dreamweaver.

Vince
Administrator

42761 Posts

Posted - 07/04/2019 :  09:53:54  
Hi Carlos,
quote:
I think you need to be using the Wordpress plugin for that - https://www.ecommercetemplates.com/wordpress/wp-plugins.asp#home
quote:
Phil, I was trying to use the plugin but Andy recommended I go about it this way.
Andy isn't around now but I've been trying this plugin and it seems fine and I'm not sure why Andy would recommend not to use it. It's being used on our Wordpress test store here...
http://ectwp.com/
Would this maybe be the way to go here?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/04/2019 :  10:23:16  
Hi Vince,

I get the following error when trying to use the plugin.. perhaps this is why he wanted me to go the other route

Warning: include(vsadmin/db_conn_open.php): failed to open stream: No such file or directory in D:\home\lostbuckaroo.com\wwwroot\LBWP\wp-content\plugins\ect-homepage-products\index.phpon line 69

Warning: include(vsadmin/db_conn_open.php): failed to open stream: No such file or directory in D:\home\lostbuckaroo.com\wwwroot\LBWP\wp-content\plugins\ect-homepage-products\index.phpon line 69

Warning: include(): Failed opening 'vsadmin/db_conn_open.php' for inclusion (include_path='.;C:\php\pear') in D:\home\lostbuckaroo.com\wwwroot\LBWP\wp-content\plugins\ect-homepage-products\index.php on line 69

Vince
Administrator

42761 Posts

Posted - 07/04/2019 :  10:44:03  
Hi Carlos
I think I can fix that if you could send the site FTP login details to my email (vince AT ecommercetemplates DOT com). Do you get the error on the home page or the plugin admin page?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

lostbuckaroo
Advanced Member

113 Posts

Pre-sales questions only
(More Details...)

Posted - 07/04/2019 :  10:51:22  
That error comes up via wordpress page admin..

I will email you with screen shots and info.

Thank you
  « 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