Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Extra Field in product_listing.php


Palarn

Recommended Posts

Hey everyone :D

I have installed Product Extra Field on my motorcycle webshop.

Because I use exploded part view with numbers, I need a extra column with the number in- like this:

 

butikkdesign.jpg

 

As I have over 100.000 products, I also have to use Easy Populate.

Product Extra Field and Easy Populate will work together?

 

I installed Product Extra Fields in Product Listing Works with RC2.2 but when I take a look in the product_listing.php I see this:

 

102p0z5.jpg

 

 

I want it like this: http://www.wizardscupboard.com/singles-edition-c-100_3.html

 

Whats wrong??

Best Regards

Paal Martin

Link to comment
Share on other sites

Easy Populate works with extra products.

 

This layout works

 

v_products_model,v_products_extra_fields_name,v_products_extra_fields_id,v_produ

cts_extra_fields_value,EOREOR

VOGVFW165/SI,Our Part No,2,VOGVFW165,EOREOR

VOGVFW140/SI,Our Part No,2,VOGVFW140,EOREOR

19LS4D,List Price,1,£219.00,EOREOR

22LS4D,List Price,1,£259.00,EOREOR

KDL20B4050U,List Price,1,£399.00,EOREOR

KDL20S2020U,List Price,1,£419.00,EOREOR

 

Sorting out the report I'll leave to you.

Edited by geoffreywalton

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Thank you!

Is Product Extra Fields in Product Listing Works with RC2.2 the right contribution to use, when you want it as shown above? (On the 1st picture)

 

Something is wrong, see 2nd picture.. What should I do?

Link to comment
Share on other sites

Sorry for double post, but I replaced this:

$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';
           }
           break;

 

With this:

 

//PRODUCT EXTRA FIELDS IN PRODUCT LISTING - BEGINING

//$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . //$listing['products_name'] . '</a> ';

//            }
//            break;

$extra_fields_text = '';
                 $extra_fields_query = tep_db_query("
                     SELECT pef.products_extra_fields_status as status, pef.products_extra_fields_name as name, ptf.products_extra_fields_value as value
                     FROM ". TABLE_PRODUCTS_EXTRA_FIELDS ." pef
            LEFT JOIN  ". TABLE_PRODUCTS_TO_PRODUCTS_EXTRA_FIELDS ." ptf
           ON ptf.products_extra_fields_id=pef.products_extra_fields_id
           WHERE ptf.products_id=". (int) $listing['products_id'] ." and ptf.products_extra_fields_value<>'' and (pef.languages_id='0' or pef.languages_id='".$languages_id."')
           ORDER BY products_extra_fields_order");

 while ($extra_fields = tep_db_fetch_array($extra_fields_query)) {
       if (! $extra_fields['status'])
          continue;
	   $extra_fields_text = $extra_fields_text.
	'<font color="#000000">'.$extra_fields['name'].': </font>' . 
       '<font color="#006600">' .$extra_fields['value'].'<BR></font>'; 

 }		

             $lc_text = '<b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $fldname . '</a></b> <br>' . $extra_fields_text . '<br>';

           }
           break;

// PRODUCT EXTRA FIELDS IN PRODUCT LISTING - END

 

Something is wrong (see picture 2 above)

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...