Forums / Addon Templates / Designer Monthly Boxes

Designer Monthly Boxes

Results 1 to 20 of 121
02 Jan 2007, 05:47
#1
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
4

Designer Monthly Boxes

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=438
New Contrib: Designer Monthly Boxes
zc 1.3.6 & zc 1.3.7 compatible


//-------------------------
What does this contrib do:
//-------------------------

Currently, the Monthly New Products, Monthly Featured Products, and Monthly Specials use a <div> tag based layout. This

is fine however it can be difficult to add subtle designs to their layout.

This contrib adds a few options
(these apply Monthly New Products, Monthly Featured Products, and Monthly Specials boxes only):

-- Add to cart OR more info (if options exist for that product) has been added to the boxes
-- <table> tag based products in the boxes.
-- Designer dotted divider line between each product
-- Ability to move the image around the text. Instead of default image over centered text, now you can have the image on the left, right, or top of the text. Currently this is settable inside the module files themselves:

modules/YOUR_TEMPLATE/featured_products.php
modules/YOUR_TEMPLATE/new_products.php
modules/YOUR_TEMPLATE/specials_index.php

If it is found useful I might add it to the Admin area, but its likely that the Zen-cart team might have other better plans for these boxes later so it might not be worth it.
//============================================================


Give it a try if you're interested. Let me know if you have any problems.
03 Jan 2007, 07:00
#2
dvasdekis avatar

dvasdekis

New Zenner

Join Date:
Nov 2006
Posts:
70
Plugin Contributions:
0

Re: Designer Monthly Boxes

Sensational! It works straightaway.

A few issues on smaller monitors though, but I think it's worth it.

My site with the contribution implemented.
03 Jan 2007, 07:40
#3
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Designer Monthly Boxes

A few issues on smaller monitors though

Works fine if you set text below and image above
in files residing in /modules/YOURTEMPLATE
i.e.
//--------------------------------------
$side_of_text = 0;
// 0 -> text below, image above
// 1 -> text on right, image on left
// 2 -> text on left, image on right
//--------------------------------------

Excellent contribution qhome, thank you
:cheers:
03 Jan 2007, 09:48
#4
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Posts:
554
Plugin Contributions:
1

Re: Designer Monthly Boxes

amazing - just what i was looking for! your mods rock dude :)
03 Jan 2007, 11:47
#5
dvasdekis avatar

dvasdekis

New Zenner

Join Date:
Nov 2006
Posts:
70
Plugin Contributions:
0

Re: Designer Monthly Boxes

misty:

Works fine if you set text below and image above
in files residing in /modules/YOURTEMPLATE
i.e.
//--------------------------------------
$side_of_text = 0;
// 0 -> text below, image above
// 1 -> text on right, image on left
// 2 -> text on left, image on right
//--------------------------------------


Doing this now puts the images to the left. Is there a way to have each small image centered in the square?

Thanks again qhome!
03 Jan 2007, 13:14
#6
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
4

Re: Designer Monthly Boxes

dvasdekis:

Doing this now puts the images to the left. Is there a way to have each small image centered in the square?

Thanks again qhome!


a value of 0 should put it centered so it looks like it used to. 1 would put images to the left, which is what i defaulted to.
03 Jan 2007, 13:28
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Designer Monthly Boxes

1 would put images to the left, which is what i defaulted to.

Agreed, but when tried this setting on fixed width template, center boxes
overlapped into right hand sideboxes, so disabling those right
hand boxes is only option for template to view correctly.
03 Jan 2007, 14:13
#8
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
4

Re: Designer Monthly Boxes

misty:

Agreed, but when tried this setting on fixed width template, center boxes
overlapped into right hand sideboxes, so disabling those right
hand boxes is only option for template to view correctly.


right. this is why i added the ability to change where the text is.. i just used 1 as the default is all.

UPDATE...

A few bugs I found so far:
- Forgot to add the "buy now" button for txtsides of 0 and 2. (Did most of my testing with 1)
- If a product is "Call for price" it still shows a Buy It Now button and actually bypasses the restrictions of not being able to add it. Which could technically be a potential security bug in Zen-cart. A user could clone a page, add an add to cart button, and manually enter the id of a Call for price item.

Other features I am looking at adding:
- enable/disable buy it now button/more info text.
- make the alignment of the <td> tags user settable (dunno if its really necessary tho)
03 Jan 2007, 14:37
#9
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Designer Monthly Boxes

Forgot to add the "buy now" button for txtsides of 0 and 2. (Did most of my testing with 1)

Noticed this
As at
http://dezinacart.co.uk/
but assumed you had left out that button deliberately..
So have you updated zip file(link in your initial post above) to
rectify this/your other latest findings please?
03 Jan 2007, 15:43
#10
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
4

Re: Designer Monthly Boxes

No.. i will post a new one soon..

Also need to add a class for the table and td so you can style them.
03 Jan 2007, 16:31
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Designer Monthly Boxes

Thank you, no rush, when you have spare moment is fine.
Very grateful you offered this contrib in first place.
:smile:
03 Jan 2007, 21:01
#12
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
4

Re: Designer Monthly Boxes

New Version: v0.2 - 03-Jan-2007

Only made changes to the 3 files in the modules folder.

- Added Class & ID tags to Table/td elements
- optimized code
- Fixed copy/paste bugs
- Fixed buy now button for all styles
- Added call for price/non-buyable validation
- Added flag to enable/disable buy now/more info button to top of module files
- Defaulted all 3 modules to standard centered view

Lemme know!
Enjoy!
Q.
04 Jan 2007, 07:53
#13
jvss avatar

jvss

New Zenner

Join Date:
Sep 2006
Posts:
12
Plugin Contributions:
0

Re: Designer Monthly Boxes

I tried installing it on ZC version 1.3.0.1

it would not display nothing correctly...
it said parse error line 28
in the modules folder featured products file....

I was wondering if you had any suggestions...
04 Jan 2007, 08:04
#14
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Designer Monthly Boxes

Tested on Zen Cart 1.3.0.2 and 1.37.. working fine.. thanks
04 Jan 2007, 08:10
#15
jvss avatar

jvss

New Zenner

Join Date:
Sep 2006
Posts:
12
Plugin Contributions:
0

Re: Designer Monthly Boxes

I use the same template as zencart was first installed in... does anybody have suggestions to what could do to make it work...???

I placed the module files in the classic folder

and I placed the template files in the template_default folder....

I would appreciate any help

thanks

JVSS
04 Jan 2007, 08:28
#16
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Designer Monthly Boxes

and I placed the template files in the template_default folder....

If you are using Classic template, the template files should go in Classic folder
04 Jan 2007, 08:37
#17
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Posts:
362
Plugin Contributions:
1

Re: Designer Monthly Boxes

JVSS:

I use the same template as zencart was first installed in... does anybody have suggestions to what could do to make it work...???

I placed the module files in the classic folder

and I placed the template files in the template_default folder....

I would appreciate any help

thanks

JVSS


Hi,

try to copy the following folders; COMMON, CSS & IMAGES to includes/templates/classic/ and the TEMPLATES folder to includes/templates/template_default/. For files in the MODULES folder, just replace the exixting files.
04 Jan 2007, 13:35
#18
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
4

Re: Designer Monthly Boxes

JVSS:

I use the same template as zencart was first installed in... does anybody have suggestions to what could do to make it work...???

I placed the module files in the classic folder

and I placed the template files in the template_default folder....

I would appreciate any help

thanks

JVSS



I'm not sure this works with 1.3.0.1. There were some changes to these files in 1.3.6, and this contrib has only been tested with 1.3.6 and 1.3.7 by me. Try upgrading Zen-Cart to the latest version.

For best practice, you should always use the zencart override system by using the name of the template you are using by renaming the "YOUR_TEMPLATE" folder to yours.. in this case.. classic.
04 Jan 2007, 13:40
#19
misty avatar

misty

Inactive

Join Date:
Apr 2004
Posts:
5,752
Plugin Contributions:
1

Re: Designer Monthly Boxes

I'm not sure this works with 1.3.0.1

Tested in 1.3.0.2, works fine for me
04 Jan 2007, 17:02
#20
jvoce avatar

jvoce

New Zenner

Join Date:
Jul 2006
Posts:
87
Plugin Contributions:
0

Re: Designer Monthly Boxes

I really like the mod that you've provided here.

I do have one question. How do I go about enlarging the image sizes?

I had my images size field set to 192width, and 150 height, for featured items. Where could I change the image size for this mod?

I'll keep looking myself, but if you know, please advise.

Thanks,

Jaret