Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing in Columns v2.0


djmonkey1

Recommended Posts

I got it to work... (sorry for the numerous posts)

 

in the css file just use

TD.productListing-data {

 

font-family: Verdana, Arial, sans-serif;

 

font-size: 10px;

border-bottom-width:1px;

border-bottom-color: #000000;

border-bottom-style:solid;

 

}

 

in case anybody wants to know how to do this in the future.

 

Excellent- sorry about the red herring on "border-style-bottom", etc.

 

 

 

good job, I'm glad you didn't give up :)

 

Now if only I could solve my problem.....:(

 

Jeff-

 

You added "Custom sort order field for products in admin/categories.php" and now you get two "buy now" buttons? Was there a sql command that you ran for this contribution, and if so could you post it here?

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

  • Replies 456
  • Created
  • Last Reply

Top Posters In This Topic

you know, for about 15 minutes mine was showing the name of the item twice (and the links were not connected.... ie... if i moused over one, it did not affect the other)

 

the problem that i had was that I had a number in the model and in the name slot in the admin section....

 

now i understand tha tyou want the buy now button but try playing around maybe with the number that you are using for it..

 

But try this.... just for the hell of it..... give the Buy Now button.... the value of 1 in the control panel, and the name the value of 1......

 

then all we have to figure out is how to make the buy now button show up below the text....

 

 

Hmmm, I've tested this, you should be able to rank the product name as "1" and the buy now button as "2" and it will work fine:

 

http://www.besttestsite.com/sandbox/catalo....php?cPath=3_15

 

You are using different numbers for each option right? It's a ranking, not just an on/off scheme.

Edited by djmonkey1

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

Hmmm, I've tested this, you should be able to rank the product name as "1" and the buy now button as "2" and it will work fine:

 

http://www.besttestsite.com/sandbox/catalo....php?cPath=3_15

 

You are using different numbers for each option right? It's a ranking, not just an on/off scheme.

 

 

i understand that it is a ranking... but just try it and see what happens.... you will notice that now the buy now button, and the name only show up one time....

Link to comment
Share on other sites

i understand that it is a ranking... but just try it and see what happens.... you will notice that now the buy now button, and the name only show up one time....

 

Are you also running that contribution?

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

i am using the latest version of the product listing contribution....

 

And if you rank two options as "1" and "2" they don't show up in that order?

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

Hey Guys-

 

I'm sorry for the problems you're having- I'm going offlne for a little bit (hopefully only a few hours, but I'll just have to see) to try to resolve some Computer Issues I'm having. If all goes well with my motherboard and OS I will be able to look more closely at all of this and we can work out these kinks.

 

Thanks for all your help!

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

And if you rank two options as "1" and "2" they don't show up in that order?

they do show up in that order.... but he is having problems with things showing up twice.

 

i had that problem too.... just with the product names (that is all that i have showing on mine).... i am just saying what my problem was and how i fixed it...

Link to comment
Share on other sites

Found something interesting in modules/product_listing_col.php. Y Drive anyone? :)

<tr>
<td align="left" class="main"><!--a href="<//?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'file:///Y|/Documents/Websites/Best%20Test%20Site/catalog/includes/modules/%20', 'SSL'); ?>"><//?php echo tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT); ?></a--></td>
		<td align="right" class="main"><?php echo tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
 </tr>

Link to comment
Share on other sites

Hey guys, I'm away from the store for the night, so I can't troubleshoot anything now, but I will tomorrow. It would be great if we could get to the bottom of this one!

 

Here is the sql statement for the sort contrib:

ALTER TABLE products ADD products_sort_order INT( 4 ) DEFAULT '0' NOT NULL;

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('', 'PRODUCT_LIST_SORT_ORDER', '6', '', '0', '', now());

Link to comment
Share on other sites

they do show up in that order.... but he is having problems with things showing up twice.

 

i had that problem too.... just with the product names (that is all that i have showing on mine).... i am just saying what my problem was and how i fixed it...

 

hmmm....no luck for me: I set the name and buy now button both at 1 (everything else at 0) and now the button shows on top and the name shows doubled underneath, but the products are still sorted properly :). I tried just about every other combination of numbers lol. I think something needs changed to the code in products_listing_col.php since the product sort contrib has some edits in product_listing.php.........

 

Here are the changes the contrib calls for to product_listing.php....

 

=================================================================
catalog\includes\modules\product_listing.php
Line 64

Replace
if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {

with
//sort order
if ($column_list[$col] == 'PRODUCT_LIST_SORT_ORDER'){break;}
if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') && ($column_list[$col] != 'PRODUCT_LIST_MULTIPLE')) {
  // if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
//end sort order

------------------------------------------------------------------------------------------------------------------------
Line 95

Before

	switch ($column_list[$col]) {
	  case 'PRODUCT_LIST_MODEL':

Add

//sort order
	if ($column_list[$col] == 'PRODUCT_LIST_SORT_ORDER'){break;}
//end sort order

=================================================================

 

So is this anything that needs to be somehow integrated into product_listing_col.php? The code is so much different from product_listing.php that I don't know where to begin :P

 

jeffy,

 

put the link code for the buy now feature after the code for the Model or Name (whichever you have selected in the control panel) and see if it works.

 

What file are you referring to here?

Edited by jeffy777
Link to comment
Share on other sites

Found something interesting in modules/product_listing_col.php. Y Drive anyone? :)

<tr>
<td align="left" class="main"><!--a href="<//?php echo tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'file:///Y|/Documents/Websites/Best%20Test%20Site/catalog/includes/modules/%20', 'SSL'); ?>"><//?php echo tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT); ?></a--></td>
		<td align="right" class="main"><?php echo tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
 </tr>

 

 

That's in the file I uploaded? Well, at least I had the sense to comment it out.

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

I just tried using Product Listing in Columns v1.3 instead of of v2.1 and everything displays fine with the product sort contrib installed, but I'd much rather use v2.1 becasue of the attributes/add multiples.

 

So the problem with v2.1 must be with product_listing_col?

Edited by jeffy777
Link to comment
Share on other sites

I'd say the problem you're having is this:

 

CODE

=================================================================

catalog\includes\modules\product_listing.php

Line 64

 

Replace

if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {

 

with

//sort order

if ($column_list[$col] == 'PRODUCT_LIST_SORT_ORDER'){break;}

if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') && ($column_list[$col] != 'PRODUCT_LIST_MULTIPLE')) {

// if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {

//end sort order

 

------------------------------------------------------------------------------------------------------------------------

Line 95

 

Before

 

switch ($column_list[$col]) {

case 'PRODUCT_LIST_MODEL':

 

Add

 

//sort order

if ($column_list[$col] == 'PRODUCT_LIST_SORT_ORDER'){break;}

//end sort order

 

=================================================================

 

I'm stilll dealing with my pc issues, but once I get that taken care of I will install the product sort contribution and see what I can do with it.

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

I'd say the problem you're having is this:

I'm stilll dealing with my pc issues, but once I get that taken care of I will install the product sort contribution and see what I can do with it.

 

Cool, thanks for caring, I really appreciate it :thumbsup:

Link to comment
Share on other sites

Just thought I'd let you know about the y drive. my php skill sucks bad enough where I didn't notice it's commented out. :)

 

I do have one question.

 

For each product you have an opening <td with parameters> and then I can't find the closing </td>. I need to add an image to the closing one but I can't find it. I'm not using the attributes, just the plain one. Here is what i'm talking about. See each product has no bottom.

 

http://www.sromagazine.com/shop/index557.html

 

it's a great mod btw, i've been looking for this for a long time.

Link to comment
Share on other sites

Just thought I'd let you know about the y drive. my php skill sucks bad enough where I didn't notice it's commented out. :)

 

I do have one question.

 

For each product you have an opening <td with parameters> and then I can't find the closing </td>. I need to add an image to the closing one but I can't find it. I'm not using the attributes, just the plain one. Here is what i'm talking about. See each product has no bottom.

 

http://www.sromagazine.com/shop/index557.html

 

it's a great mod btw, i've been looking for this for a long time.

 

I see what you mean by having no bottom, but the finished code looks good:

 

<td style="background: transparent url(images/design/ryansbg.jpg) no-repeat scroll left top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; padding-left: 10px; padding-right: 10px;" class="productListing-data" align="center" height="100%" valign="top" width="50%"><br> <a href="http://www.sromagazine.com/shop/product_info.php?cPath=557&products_id=4629&amp"><img src="images/.thumbnails/15224.jpg" alt="PIAA Xtreme White Plus H4 Halogen Light Bulb (PIAA-15224)" title=" PIAA Xtreme White Plus H4 Halogen Light Bulb (PIAA-15224) " border="0" height="100" width="100"></a> <br> <a href="http://www.sromagazine.com/shop/product_info.php?cPath=557&products_id=4629&amp">PIAA Xtreme White Plus H4 Halogen Light Bulb (PIAA-15224)</a> <br>Sale Price:  $64.95 <br> </td>

 

I'm not quite sure what you're asking.

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

Cool, thanks for caring, I really appreciate it :thumbsup:

 

In product_listing_col.php->

 

Whereever you decided to put

 

//sort order
if ($column_list[$col] == 'PRODUCT_LIST_SORT_ORDER'){break;}
if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') && ($column_list[$col] != 'PRODUCT_LIST_MULTIPLE')) {
  // if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
//end sort order

 

delete it.

 

Follow all other instructions as provided with that contribution.

Edited by djmonkey1

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

Actually, I didn't make any edits to product_listing_col.php

 

Do you have the 2 contribs working together properly?

 

Yep, works great. Thanks for bringing it to my attention!

Edited by djmonkey1

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

so did you have to do anything to product_listing_col.php to get it to work? It's not working great for me...:(

 

Well, I should say the product sort is working fine, but the Product Listing in Columns v2.1 is not. :blink:

 

In product_listing_col.php:

 

at about line 79

 

Before

 

 switch ($column_list[$col]) {
	  case 'PRODUCT_LIST_MODEL':

 

Add

 

//sort order
	if ($column_list[$col] == 'PRODUCT_LIST_SORT_ORDER'){break;}
//end sort order

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

Sorry, for not following up on my initial sort post. i didn't realize i didn't subscribe to the topic. Sounds like you guys are making some serious progress. Any word of an updated contribution release with sorting? Do you guys need any help? I started messing with the index.php sql queries to see if i could sort the products, but then... i realized i posted something weeks ago here.

Most likely your question has been answered, please do a search first.

Link to comment
Share on other sites

at about line 79

 

Before

 

CODEswitch ($column_list[$col]) {

case 'PRODUCT_LIST_MODEL':

 

Add

 

CODE//sort order

if ($column_list[$col] == 'PRODUCT_LIST_SORT_ORDER'){break;}

//end sort order

 

this code really works guys.

 

 

BTW, since i use default setting 3 column, and i found out if the 3 items have different length of title, it causes the item has longer title take more space then the one has shorter title take less space, so it shows really unbalance.

 

 

any ideas how to fix that?

 

thanks

 

sean

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...