Product type help!

Views: 1,718

Results 1 to 20 of 23
2 Jan 2011, 2:39 PM
#1
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Product type help!

I have successfully added a new product type, finally :clap:

I copied all the music/music_genre files to do so, shows in admin under extras, catalog/product type, can assign new product to that product type, all custom field show up on product type template_info page. That all works fine.

My problem is within the sideboxes. They show up, but the dropdown section has this .. instead of the name added in the extras section of admin. clicking it takes you to the correct page.

Any Ideas?

2 Jan 2011, 2:41 PM
#2
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Product type help!

have you a link to your site?

2 Jan 2011, 3:16 PM
#3
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

website is a work in progress but here is a link.

2 Jan 2011, 3:56 PM
#4
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Product type help!

Is the following css something you added yourself?

element.style  {
margin:auto;
width:90%;
}

In admin -> configuration -> Layout Settings there is a way to shorten bestsellers product names. Not sure if that is relevant, but you could Try changing these settings about to see if it extends text.

2 Jan 2011, 4:26 PM
#5
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

element.style {
margin:auto;
width:90%;
}

is in the standard tpl_music_genres_select.php file

&

truncate the names is not relevant, some are 2 letter names such as 3D

2 Jan 2011, 5:01 PM
#6
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Product type help!

Is this a sidebox you created, or have you modified one of the others?

In the developers toolkit, do a search for ```
option value="1"


Hopefully someone else has a better answer in the meantime.
2 Jan 2011, 5:10 PM
#7
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

I simply copied the music_genres sidebox

When entering option value="1" in developers tool kit it only returned in this file

tpl_modules_listing_display_order.php

2 Jan 2011, 5:16 PM
#8
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Product type help!

music_genres sidebox is controlled in admin -> Configuration -> Maximum Values.

Change some of the settings in that to see if it helps.

2 Jan 2011, 5:24 PM
#9
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

my extra sideboxes can also be controlled via admin -> Configuration -> Maximum Values

I changed the values but nothing

2 Jan 2011, 5:27 PM
#10
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

even changes from a Dropdown List to a scrollbox if the value is setabove 1. I just cannot figure this one out. Sad part is it took me 3 days to get the rest working properly.

ZEN CART IS GREAT BUT WHEN IT COMES TO ADDING PRODUCT TYPES WE NEED TO MAKE IT EASIER!

2 Jan 2011, 5:31 PM
#11
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

You know what is weird, after clicking on the "empty" list item in the drop down it redirects you to that page and the drop down now has the - RESET - link and it shows

2 Jan 2011, 5:32 PM
#12
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Product type help!

I am not sure m8.

I checked the file modules_listing_display_order.php and there's nothing relevant there.

You could always download this module http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_52&products_id=532

or the blank sidebox module and try again. It could be something to do with that particular sidebox which is causing the problem.

2 Jan 2011, 6:01 PM
#14
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

nothing happened - same

2 Jan 2011, 6:16 PM
#15
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Product type help!

zen cart is great cart when you get it all setup, but the changing of core code has turned my hair grey over the last few months, especially being a complete amateur at these things.

I am out of ideas apart from making a new blank sidebox to test if it works.

2 Jan 2011, 6:24 PM
#16
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

I too am a amateur at zen cart, php, css but sifting and playing with zen cart files, I have learned.

BTW I got it to work :clap:

3 Jan 2011, 4:35 PM
#17
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Product type help!

How did you fix it?

3 Jan 2011, 5:37 PM
#18
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

I have a few more kinks to work out with the whole adding a product type. When I am finished and know it works 100% I am going to add it for Free Software Add Ons.

I am getting a new error in admin now:

Fatal error: Call to a member function MoveNext() on a non-object in public_html/ADMIN/includes/modules/product_tv/collect_info.php on line 89

3 Jan 2011, 6:02 PM
#19
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

O.K. I got the fatal error to go away, in admin when I choose product type and click "New Product" everything works fine.

When I click an existing product from within a category, none of the product information is there and I get this error:

"Warning: reset() [function.reset]: Passed variable is not an array or object in /public_html/ADMIN/includes/classes/object_info.php on line 29"

Any Suggestions?

3 Jan 2011, 7:10 PM
#20
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Product type help!

Just an update, fixed that issue.