Zen Cart Logo
Forums / Addon Templates / Product Listing-Layout Style HElp

Product Listing-Layout Style HElp

Locked

Views: 2,607

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
22 Nov 2010, 3:21 AM
#1
ms_x avatar

ms_x

Zen Follower

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

Product Listing-Layout Style HElp

Hi, I was just customising the look of my product listing page and in Admin I have selected:Product Listing-Layout Style (its value was rows) and I just wanted to see what happens if I try to change it... I clicked on "update" and then "edit" and it changed itself to blank...THere was nothing available to edit it but somehow it has change itself and now my product listing is empty. it looks like this:

Any ideas why it went that way?Please help to change it back:-)

TIA

22 Nov 2010, 3:33 AM
#2
ms_x avatar

ms_x

Zen Follower

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

Re: Product Listing-Layout Style HElp

I have just downloaded and tried to install this addon :
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=77

I have 1.3.9.g version of zen cart.

and when i run sql script through my admin:
INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order,
last_modified, date_added, use_function, set_function)
VALUES ('Product Listing - Layout Style', 'PRODUCT_LISTING_LAYOUT_STYLE', 'rows',
'Select the layout style:<br />Each product can be listed in its own row (rows option)
or products can be listed in multiple columns per row (columns option)', '8', '40', NULL,
now(), NULL, 'zen_cfg_select_option(array("rows", "columns"),');

INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order,
last_modified, date_added, use_function, set_function)
VALUES ('Product Listing - Columns Per Row', 'PRODUCT_LISTING_COLUMNS_PER_ROW', '3',
'Select the number of columns of products to show in each row in the product listing.
The default setting is 3.', '8', '41', NULL, now(), NULL, NULL);

and I get this error:

1062 Duplicate entry 'PRODUCT_LISTING_LAYOUT_STYLE' for key 2
in:
[INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Product Listing - Layout Style', 'PRODUCT_LISTING_LAYOUT_STYLE', 'rows', 'Select the layout style:<br />Each product can be listed in its own row (rows option) or products can be listed in multiple columns per row (columns option)', '8', '40', NULL, now(), NULL, 'zen_cfg_select_option(array("rows", "columns"),');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

what is it about and how can I change it?anyone installed this addon before?

thanks:-)

5 Dec 2010, 1:37 PM
#3
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Product Listing-Layout Style HElp

i have the fix for this. you must run the 'delete' key to remove the old sql code then run this CORRECTED sql patch. this will correct the rows/column selector in the admin also!!!