Zen Cart Logo
Forums / Addon Sideboxes / Scrolling Specials Sidebox v1.1

Scrolling Specials Sidebox v1.1

Locked

Views: 13,967

Results 1 to 20 of 48
This thread is locked. New replies are disabled.
4 Aug 2006, 11:12 AM
#1
sn0ut avatar

sn0ut

New Zenner

Join Date:
Oct 2005
Location:
UK - London
Posts:
56
Plugin Contributions:
3

Scrolling Specials Sidebox v1.1

Hi all, sorry I haven't been around much lately I have been so busy with work!!!

I have had chance to look and update the scrolling specials sidebox, it now works good without any problems as far as I can see.

Update:

  1. Fixed the problem where the first two products displayed were the same.

  2. Changed code so it uses zen_small_image instead of the full size image scaled down.

  3. Fixed the alt tag for the image it was displaying a number before and now it displays the product description.

To do:

  1. Make the speed, size, direction updatable from admin (learning curve here)

  2. Get rid of the marquee tag and use DHTML for a smoother scroll.

I have submitted the file to the download section, in the mean time I have attached to the post for you to use:

5 Aug 2006, 1:23 AM
#2
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Scrolling Specials Sidebox v1.1

hi sn0ut,

thanx for spending your precious time looking into the mod! but likely it doesn't work on ZC v1.3x. i got these error,

Fatal error: Call to undefined function: zen_get_small_image() in c:\program files\easyphp1-8\www\eshop\includes\templates\template_default\sideboxes\tpl_specials.php on line 21

5 Aug 2006, 1:49 AM
#3
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Scrolling Specials Sidebox v1.1

sn0ut,

just ignore my previous post as i just managed to fix your mod to be compatible with ZC v1.3.x but without utilising the zen_get_small_image function! thanx mate for this great contribution! :thumbsup:

5 Aug 2006, 7:24 AM
#4
vr4indian avatar

vr4indian

Zen Follower

Join Date:
Apr 2006
Posts:
141
Plugin Contributions:
0

Re: Scrolling Specials Sidebox v1.1

where to downlaod this gr8 tool..

give me link please

5 Aug 2006, 7:54 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Scrolling Specials Sidebox v1.1

vr4indian:

where to downlaod this gr8 tool..

give me link please
At the top of this page, there is a "downloads" link. From that link, click on Sideboxes. You'll find the contribution in the list.

7 Aug 2006, 12:42 AM
#6
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Scrolling Specials Sidebox v1.1

sn0ut,

attached is the scrolling special sidebox 1.3.x compliant! i just change a little bit of your original codes to make it work with current version! :D

<snip ... attachment removed -- available in downloads area>

7 Aug 2006, 1:15 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Scrolling Specials Sidebox v1.1

Tajul,

Can you please post this as an update to the contribution in the downloads section?

7 Aug 2006, 3:06 AM
#8
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Scrolling Specials Sidebox v1.1

DrByte:

Tajul,

Can you please post this as an update to the contribution in the downloads section?

can i do it without the permission of the original author? because i intend to do it after i get permission to upload it from sn0ut... that is why i am uploading it as an attachment for sn0ut to review it! :laugh:

if it is okay, i will upload it a.s.ap!

7 Aug 2006, 4:00 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Scrolling Specials Sidebox v1.1

Permission is always nice.
However, it can also be uploaded, and if there is a problem, a new version can be posted to replace it, etc.

As a sidenote, if I recall correctly, the one sn0ut originally posted for 1.2.7 appeared to have image-handler code in it. I didn't look in great detail, but I think I saw that in there... Not sure if that was intended. I might be eating too many marshmallows though and be way off track...

7 Aug 2006, 4:30 AM
#10
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Scrolling Specials Sidebox v1.1

thanx DrByte! i am not so sure about that image handler function as i only make minor changes by not utilising the zen_get_small_image function, that's all! this is also because of the files structure of the latest version. the rest is still the original coding from sn0ut! its working well at my site...

7 Aug 2006, 9:44 AM
#11
cplam999 avatar

cplam999

New Zenner

Join Date:
Jun 2006
Posts:
17
Plugin Contributions:
0

Re: Scrolling Specials Sidebox v1.1

this mod is very nice!:thumbsup:

does this mod have version for : new prodcuts and featured product?
I hope my new and featured product have a scrolling too.:lol:

thank you!

7 Aug 2006, 11:06 AM
#12
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Scrolling Specials Sidebox v1.1

I am also using this mod. Since there is such a demand for it I will be uploading the 1.3.0.2 compatible version for inclusion in the Downloads section.

I added two lines to the top and one at the bottom to make the sidebox 1.3.0.2 "DIV" compatible. Without these lines you may loose the bottom border of your sidebox on some templates (eg. nightfall)

Time for me to start giving something back to the community. Full credit still goes to the original author though.

7 Aug 2006, 1:39 PM
#13
sn0ut avatar

sn0ut

New Zenner

Join Date:
Oct 2005
Location:
UK - London
Posts:
56
Plugin Contributions:
3

Re: Scrolling Specials Sidebox v1.1

Hi all, I am glad you are finding my mod useful. I have updated the archive to be 1.3 compliant and submitted it to the download section.

8 Aug 2006, 8:31 AM
#14
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Scrolling Specials Sidebox v1.1

sn0ut:

Hi all, I am glad you are finding my mod useful. I have updated the archive to be 1.3 compliant and submitted it to the download section.

sn0ut,

Check out the download section. The version you uploaded still do not contaon the .DIV statements required for 1.3.0.2. I see the moderators also added my changed version to the download section. This version does contain the .DIV statements and is working perfectly on my store. Your version still drops the bottom border.
Please note that all credit for this mod remains with you. I am just trying to assist.:cool:

8 Aug 2006, 8:46 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Scrolling Specials Sidebox v1.1

If you can collaborate and determine which one is most correct and which one to remove, I can deactivate the incorrect one.... without necessarily needing another upload. However, if another upload is needed due to additional changes, go ahead.

8 Aug 2006, 9:07 AM
#16
sn0ut avatar

sn0ut

New Zenner

Join Date:
Oct 2005
Location:
UK - London
Posts:
56
Plugin Contributions:
3

Re: Scrolling Specials Sidebox v1.1

DrByte can you remove my last submission and leave Louis one as the most current, thanks.

Thanks Louis :)

8 Aug 2006, 9:21 AM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Scrolling Specials Sidebox v1.1

Done .

26 Aug 2006, 1:15 PM
#18
mole69 avatar

mole69

New Zenner

Join Date:
Jun 2005
Posts:
49
Plugin Contributions:
0

Re: Scrolling Specials Sidebox v1.1

Is there a way to limit the number of specials it uses. It is loading all my specials which it making the page take a long time.

26 Aug 2006, 1:39 PM
#19
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Scrolling Specials Sidebox v1.1

Just add the following to the end of the first query in the file

limit ??? where ??? is the number of items you wish to display.

or

replace the query with the following where I added a limit of 5.

$random_product_query = "select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$_SESSION['languages_id'] . "' and s.status = '1' order by s.specials_date_added DESC limit 5";

The file to be updated is includes\templates\YOUR-TEMPLATE\sideboxes\tpl_specials.php

26 Aug 2006, 5:21 PM
#20
mole69 avatar

mole69

New Zenner

Join Date:
Jun 2005
Posts:
49
Plugin Contributions:
0

Re: Scrolling Specials Sidebox v1.1

Thank you. I have 1 more question do you know how to make it take more of a random selection, instead of the same ones each time.