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
 sort home page products
Author    Topic »  

LadyM
ECT Moderator

1719 Posts

Posted - 12/07/2024 :  08:36:38  
Wordpress site, v.7.6.5. I'm unable to sort the home page products. I've tried changing to all selections on the main settings page and nothing happens. I've tried sorting by product order using the numbers system. Nothing happens. It's displaying alphabetically.

In appearance >customize I'm using "Use custom layouts - includes". I tried changing it to default and that does change the product layout but not the home page recommended products.

Where do I look? I've checked the includes and can't see any sorting there.

Vince
Administrator

42791 Posts

Posted - 12/07/2024 :  11:13:00  
Hi LadyM
Are you using the Homepage Products plugin still? How about trying the cross sell shortcode where you can specify the sort with "orsortby"?

Vince

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

LadyM
ECT Moderator

1719 Posts

Posted - 12/07/2024 :  16:10:44  
I don't have that plugin - just the ectwidgets.

I'll try this.
I do have this in the includes. Should I remove it to use the widget in Wordpress? (I just added the orsortby.)

$GLOBALS['ectqbuystyle']=1; // Can be 1, 2 or 3
$GLOBALS['ectproductstyle']=1; // Can be 1, 2 or 3
$GLOBALS['ectdetailstyle']=1; // Can be 1, 2 or 3
$GLOBALS['categorycolumns']=3; // Optional parameter to set initial category columns to other than default
$GLOBALS['productcolumns']=3; // Optional parameter to set initial product page columns to other than default
$GLOBALS['orsortby']=7;

Edited by - LadyM on 12/07/2024 16:22:41

Vince
Administrator

42791 Posts

Posted - 12/08/2024 :  01:46:32  

LadyM
ECT Moderator

1719 Posts

Posted - 12/09/2024 :  07:16:33  
I must be doing something wrong. I've removed that code from the includes, emptied the cache, forced a page refresh and it's still sorting the home page products alphabetically.

I changed the appearance to default and it still shows alphabetically. I put the code back with the sort by but it doesn't affect the home page cs products. What else can I look at?

dbdave
ECT Moderator

USA
10430 Posts

Posted - 12/09/2024 :  07:56:59  
You would also need to clear cookies as there would be one set for the sort, so be sure you have done that, or try browser you do not normally use.
Thanks,
David

Edited by - dbdave on 12/09/2024 07:57:22
     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