Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Random Featured Products using Recommended Products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 11-01-2007, 05:39 PM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Random Featured Products using Recommended Products

I think the instructions are missing a key step. A mod to home.php. Add this:
Code:
if(!empty($active_modules["Recommended_Products"])) include "./recommends.php";
After the include of featured_products.php
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #12  
Old 11-01-2007, 08:02 PM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default Re: Random Featured Products using Recommended Products

Quote:
Originally Posted by geckoday
I think the instructions are missing a key step. A mod to home.php. Add this:
Code:
if(!empty($active_modules["Recommended_Products"])) include "./recommends.php";
After the include of featured_products.php


That was it !!!! Thanks geckoday. Its working now. Except I have no title bar or "Featured Products" I'm thinking im doing the label wrong.

I went into languages and added the label, but its not showing up.

http://www.systemskins.com/sscart/home.php

*** Edit ** That was wierd.. I went into webmaster mode and the "Featured Products" title bar appeared out of no where. Changed back to normal mode and it stayed. Guess something had it stuck and it got unstuck :P
__________________
Doug Rock
X-cart Gold 4.1.9
_____________________________________
Altered Cart: 1-Page checkout
Firetank: Feed Manager
Website CM: CDSEO PRO
Website CM: Product A-Z Map
Website CM: Review Approval
Website CM: Site Map Pro
Qualiteam: Sales & Stats (free version)
Reply With Quote
  #13  
Old 11-02-2007, 05:59 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Random Featured Products using Recommended Products

I was thinking that you needed to clear the templates cache. X-Cart 4.1.x caches language variables on a page by page basis. Webmaster mode may have rebuilt the cache for the page.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #14  
Old 11-02-2007, 09:07 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: Random Featured Products using Recommended Products

I just wanted to let everyone know that I have made a FREE mod to do this. It is available on our website.

This FREE mod is based on the random Recommends from X-Cart. It will generate a listing of Random Products to display in place of the normal Featured Products. The number of random products is configured within Admin.

The module it able to be enabled/disabled within Admin. When disabled, the Featured Products returns to normal operation. It will also follow the display templates used for Featured Products. This means that if you are displaying your featured products in a single column format or in a multi column format, so will this mod. It uses the same templates.

In addition I have added some extra data that is not normally available in the Recommends, such as product description and minimum availability so that it will function just like the featured products and allow you to use the "buy now" buttons.

You can get this mod at:
http://www.telafirma.com/store/product.php?productid=16141

Again - this is a free mod (since it was made using randoms.php as a base).
Reply With Quote
  #15  
Old 11-02-2007, 11:07 AM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default Re: Random Featured Products using Recommended Products

Thanks TelaFirma

Just downloaded it and gonna install, I'll let you know what I think.
__________________
Doug Rock
X-cart Gold 4.1.9
_____________________________________
Altered Cart: 1-Page checkout
Firetank: Feed Manager
Website CM: CDSEO PRO
Website CM: Product A-Z Map
Website CM: Review Approval
Website CM: Site Map Pro
Qualiteam: Sales & Stats (free version)
Reply With Quote
  #16  
Old 11-02-2007, 11:10 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: Random Featured Products using Recommended Products

Cool - I would be interested in any feedback.
Reply With Quote
  #17  
Old 11-02-2007, 03:35 PM
 
exsecror exsecror is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,284
 

Default Re: Random Featured Products using Recommended Products

The only problem I have with the stock recommended products mod from x-cart is that it's illogically pointless, it's just a badly written SQL query that does a RAND of products that have absolutely no correlation with the product the customer is viewing (it's also an instant server killer as we discovered since we have 10s of thousands of SKUs)
Reply With Quote
  #18  
Old 11-02-2007, 05:47 PM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default Re: Random Featured Products using Recommended Products

Ummmm

Correct me if I'm wrong (since I'm new to php and smarty as of 3 days ago)

But your Step 4. Shouldnt it say /xcart/home.php and not home.tlp?

Quote:
Step 4:
__________________________________________________ _

Edit the file /home.tpl and after the lines

if ($active_modules["Bestsellers"])
include $xcart_dir."/modules/Bestsellers/bestsellers.php";

insert the following lines

if ($active_modules["Random_Products"])
include $xcart_dir."/modules/Random_Products/randoms.php";
__________________
Doug Rock
X-cart Gold 4.1.9
_____________________________________
Altered Cart: 1-Page checkout
Firetank: Feed Manager
Website CM: CDSEO PRO
Website CM: Product A-Z Map
Website CM: Review Approval
Website CM: Site Map Pro
Qualiteam: Sales & Stats (free version)
Reply With Quote
  #19  
Old 11-02-2007, 05:58 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: Random Featured Products using Recommended Products

Yes - you are correct... that is a typo.... I will correct that.
Reply With Quote
  #20  
Old 11-02-2007, 06:12 PM
  SystemSkins's Avatar 
SystemSkins SystemSkins is offline
 

eXpert
  
Join Date: Oct 2007
Posts: 350
 

Default Re: Random Featured Products using Recommended Products

OK...

I have your mod installed and working correctly. I sent you PM's with a couple typos for your instructions.

Here is a working example:
http://www.systemskins.com/sscart/home.php

Feel free to constantly hit your browsers refresh, I have 375+ products getting randomized there. :P

Now... If I want to add that script inside a category (like say Xbox 360) and randomize only Xbox 360 products in that category only, how would I do that?
__________________
Doug Rock
X-cart Gold 4.1.9
_____________________________________
Altered Cart: 1-Page checkout
Firetank: Feed Manager
Website CM: CDSEO PRO
Website CM: Product A-Z Map
Website CM: Review Approval
Website CM: Site Map Pro
Qualiteam: Sales & Stats (free version)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:53 AM.

   

 
X-Cart forums © 2001-2020