X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Random Image or Random Products - Category Specific (https://forum.x-cart.com/showthread.php?t=17659)

nfc5382 06-22-2007 06:51 PM

Re: Random Image or Random Products - Category Specific
 
is there a mod to randomize the featured products? also to only randomize it every 24 hours or so? I hacked my featured products to sort by RAND but each page refresh causes the featured products to randomize. I keep it only b/c it keeps the main page changing.... however, i'd like a more user friendly randomizer for the featured products

inmotionmedia 09-21-2007 01:12 AM

Re: Random Image or Random Products - Category Specific
 
Hey you say in the forum that you hacked the random function for the featured products.
How and where is that possible? I want to show random products on the featured products list limited by an number. It may change every time that's no problem


tnx

shopccp 10-25-2007 11:51 AM

Re: Random Image or Random Products - Category Specific
 
There's a problem with this mod. The quantity field is not filled with a number, by default. The user is unable to put the item in the shopping cart from the buy now button.


Any ideas to fix???

TelaFirma 10-25-2007 05:05 PM

Re: Random Image or Random Products - Category Specific
 
I see by your sig that you are using X-Cart version 4.1.x - if you look at the date of the original post, it was in 2005. This was intended for version 4.0.x - not 4.1.x....

Quote:

Originally Posted by shopccp
There's a problem with this mod. The quantity field is not filled with a number, by default. The user is unable to put the item in the shopping cart from the buy now button.


Any ideas to fix???


shopccp 10-26-2007 02:25 AM

Re: Random Image or Random Products - Category Specific
 
OK. Sorry. So this mod is unsupported in 4.1.x

It seems to be a simple fix. Since it works in your ver 4.0.x. How hard is it to give the quantity field a number to add the item to the cart from the buy now button. Just exactly how the x-cart team did for the featured products - it should be the same for the random products.

TelaFirma 10-26-2007 03:00 AM

Re: Random Image or Random Products - Category Specific
 
Well - I agree but I have not had the time to look through this code again to make it work for 4.1.x.

In giving it a quick look the first thing that you need to look at is the product array that is being built and make sure that the "min_amount" has a value. The buy_now template uses this to determine what to do with qty. If "min_amount" is empty then you will need to look at the function used to do the search.

Quote:

Originally Posted by shopccp
OK. Sorry. So this mod is unsupported in 4.1.x

It seems to be a simple fix. Since it works in your ver 4.0.x. How hard is it to give the quantity field a number to add the item to the cart from the buy now button. Just exactly how the x-cart team did for the featured products - it should be the same for the random products.


shopccp 10-26-2007 09:23 AM

Re: Random Image or Random Products - Category Specific
 
The value is already assigned at 1. The featured products uses the same buy now template as the random products.

august 10-26-2007 12:18 PM

Re: Random Image or Random Products - Category Specific
 
http://forum.x-cart.com/showthread.php?t=34157

mpcommercial 10-07-2008 01:20 PM

Re: Random Image or Random Products - Category Specific
 
Hello:

Has anyone gotten this great mod to work in version 4.1x?

Makey2u 05-25-2011 03:37 PM

Re: Random Image or Random Products - Category Specific
 
anyone got this for 4.4.x??? working
oh man i would drool...


All times are GMT -8. The time now is 12:19 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.