Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove Product listing Product Description, and replace with stock info

Remove Product listing Product Description, and replace with stock info

Views: 1,661

Results 1 to 11 of 11
28 Jan 2012, 8:57 AM
#1
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Remove Product listing Product Description, and replace with stock info

Hi

If you look at this product listing:
pcselect.co.za/index.php?main_page=index&cPath=2_354

...you will see that there is a product image, product name, product quantity, and price column. Under each product name there is a 100 character product description. What I want to do is remove that 100 character product description and replace it with the product quantity.

This is how I would like it to look:

All help is appreciated

Thank you
S

28 Jan 2012, 12:10 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Remove Product listing Product Description, and replace with stock info

Start by setting Admin - Configuration - Product Listing - Display Product Quantity to 0.

We'll have to see what happens to the quantity after that.

28 Jan 2012, 12:33 PM
#3
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Remove Product listing Product Description, and replace with stock info

stevesh:

Start by setting Admin - Configuration - Product Listing - Display Product Quantity to 0.

We'll have to see what happens to the quantity after that.

Alright, done.

28 Jan 2012, 3:53 PM
#4
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Remove Product listing Product Description, and replace with stock info

Hey Steve

Just wondering if you've had time to look at this?

If it is too complicated to explain, or if it would be better if I got a freelancer to do it, please let me know.

Thanks for the help
S

28 Jan 2012, 4:09 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Remove Product listing Product Description, and replace with stock info

I'm still seeing a partial product description and no quantity field. Do you have everything set properly in Admin - Configuration - Product Listing ?

28 Jan 2012, 5:08 PM
#6
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Remove Product listing Product Description, and replace with stock info

Oh, I think you made a typo in your 1st post. You asked me set the Product Quantity to 0.

I have now set Product Description to 0.

It has just removed the description, the Quantity is in the same place. (By the way, quantity's value in product listing is set to 3)

Thanks for the help

28 Jan 2012, 5:39 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Remove Product listing Product Description, and replace with stock info

That was a typo - sorry. You'll need to do some coding to move the quantity inside the same div as the item name. Check post #50 here:

http://www.zen-cart.com/forum/showthread.php?t=100003

for Glenn's mod which may offer some help.

28 Jan 2012, 6:04 PM
#8
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Remove Product listing Product Description, and replace with stock info

stevesh:

That was a typo - sorry. You'll need to do some coding to move the quantity inside the same div as the item name. Check post #50 here:

http://www.zen-cart.com/forum/showthread.php?t=100003

for Glenn's mod which may offer some help.

Thanks for the link, but his SQL patch gives the following erro when I upload it:

1062 Duplicate entry 'PRODUCT_LISTING_LAYOUT_STYLE' for key 'unq_config_key_zen'
in:
[INSERT INTO zen_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:
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.

Any ideas as to why?

Thanks again
S

28 Jan 2012, 8:52 PM
#9
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Remove Product listing Product Description, and replace with stock info

bump

If this is going to require a freelancer, please say so. :smile:

Thanks

30 Jan 2012, 3:18 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove Product listing Product Description, and replace with stock info

Are you using v1.5.0? The SQL patch (which is identical to the Column Layout Grid SQL patch) is the same as it has been for several versions, and it is possible that it may need to be changed for v1.5.0; I would have to look at it in detail to find out. (If Column Grid is confirmed as v1.5.0 compatible, then Flexible Product Listing should be too.)

The actual issue here is that you had apparently installed Column Grid before, and the SQL was trying to repeat the db modification and failing as should be expected. The FPL readme notes that the SQL should not be rerun.

Do you now have the settings available in admin?

30 Jan 2012, 9:27 PM
#11
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Remove Product listing Product Description, and replace with stock info

gjh42:

Are you using v1.5.0? The SQL patch (which is identical to the Column Layout Grid SQL patch) is the same as it has been for several versions, and it is possible that it may need to be changed for v1.5.0; I would have to look at it in detail to find out. (If Column Grid is confirmed as v1.5.0 compatible, then Flexible Product Listing should be too.)

The actual issue here is that you had apparently installed Column Grid before, and the SQL was trying to repeat the db modification and failing as should be expected. The FPL readme notes that the SQL should not be rerun.

Do you now have the settings available in admin?

Hi

I am using 1.3.9h

I have never run this before, so this is the first time patching the SQL for this mod.

I do not have the "Product Listing sort order" in admin, so the install was definitely not successful.

Is there any more troubleshooting I can do?

Thanks for the help
S