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
 All Forums
 Technical
 WordPress for Ecommerce Templates
 Recommended products on home page
Author « Topic »  

tgorski
Ecommerce Template Expert

USA
908 Posts

Posted - 12/05/2023 :  07:02:11  
I have recommended products setup on the homepage of a site using PHP version 7.6.3 and everything is displaying but it is also displaying product options that should not be there as I am using $csnoproductoptions=TRUE;
both in the includes.php file AND on the code directly on the home page include like this...
<?php
$crosssellaction='recommended';
$csnoproductoptions=TRUE;
?>
<?php include "vsadmin/inc/inccrosssell.php" ?>

Problem is that it is still showing the options... Please help!!


Tim Gorski

dbdave
ECT Moderator

USA
10405 Posts

Posted - 12/05/2023 :  07:53:37  
Hi Tim, this should help
https://www.ecommercetemplates.com/help/css-layouts.asp#crosssell

quote:
Cross selling layout
You can choose which elements to display in the cross selling with the following in vsadmin/includes.asp
csproductpagelayout="productimage,productname,options,price,addtocart"
or in includes.php
$csproductpagelayout='productimage,productname,options,price,addtocart';
..where you can choose any of the elements from the product page layout to add to the list.


Thanks,
David

tgorski
Ecommerce Template Expert

USA
908 Posts

Posted - 12/05/2023 :  08:57:46  
Thanks Dave. That was it.

Tim Gorski

dbdave
ECT Moderator

USA
10405 Posts

Posted - 12/05/2023 :  09:02:08  

LadyM
ECT Moderator

1716 Posts

Posted - 04/16/2024 :  08:55:38  
I have cross sales on my home page but can't seem to get the QuickBuy buttons there. They're on products just fine.

This is what I have. $GLOBALS['csproductpagelayout']='productimage, productname, price, detaillink, quickbuy';

Also, is there a wordpress code for the Google Text Elements? I have them in php but having to add the globals suffix to each line would be a pain. I can do it if that's the only way but thinking there should be some text somewhere?

tgorski
Ecommerce Template Expert

USA
908 Posts

Posted - 04/16/2024 :  09:13:13  
LadyM... This is from that same article that Dave sent me...

You will also want to define which elements you want to appear in the pop up window, and in which order. You can do that using the following in vsadmin/includes.asp

quickbuylayout="productimage, productname, productid, sku, manufacturer, discounts, dateadded, reviewstars, instock, description, listprice, price, currency, addtocartquant, detaillink"

or in includes.php

$quickbuylayout='productimage, productname, productid, sku, manufacturer, discounts, dateadded, reviewstars, instock, description, options, listprice, price, currency, addtocartquant, detaillink';

Tim Gorski

LadyM
ECT Moderator

1716 Posts

Posted - 04/16/2024 :  09:28:41  
I have that and it works on products. $GLOBALS['quickbuylayout']='productimage, productname, listprice, price, quantity,addtocart';

It's the cross sales on the home page that I can't get the Quickbuy on.

Thanks for your help though.

Vince
Administrator

42743 Posts

Posted - 04/17/2024 :  05:03:40  
Hi LadyM
Have you set this up with a shortcode given you are using the wordpress version? If so, have you set the csproductpagelayout parameter?

https://www.ecommercetemplates.com/wordpress/wp-plugins.asp#crosssell

Vince

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

LadyM
ECT Moderator

1716 Posts

Posted - 04/17/2024 :  07:34:42  
Yes. I added detaillink and quickbuy to that and it's working fine.

I'm so used to using the includes in php that I forgot a lot of stuff goes on in Wordpress.

Thanks, works perfectly.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000