Product Code on Category Product Listing Pages - Ecommerce Forums
Results 1 to 3 of 3

Thread: Product Code on Category Product Listing Pages

  1. #1

    Product Code on Category Product Listing Pages

    Hello,

    We are interested in having the product code show up on the product listings on the category pages. We have the product code showing up on the main product pages but it would benefit our customers if they would also show up on the product category listing. I have attached a couple of graphics to outline what we are looking for.

    Does anyone have any suggestions as to how we can achieve this?

    Thank you for your help!


    current set up - no product code.jpgproduct code goal.jpg

  2. #2
    Something like this should work in javascript/jQuery.

    Code:
    jQuery(function($){
    	$('.v65-productDisplay .productnamecolor').each(function(){
    		var pcode = $(this).attr('href').split('-p/')[1].replace('.htm','');
    		$(this).after("<br/>Product Code: "+pcode.toUpperCase());
    	});
    });
    Extract all product codes from the links, then place it below the link.

  3. #3
    Thanks, demitrius! I will give it a try!

Similar Threads

  1. Product Listing for More Than ONE Item Per Purchase?
    By GentleBath in forum Setup & Configuration
    Replies: 4
    Last Post: 02-04-2013, 05:07 PM
  2. Quick product turnover = lots of 404 pages
    By bty_marketing in forum Search Engine Optimization
    Replies: 12
    Last Post: 01-08-2013, 11:50 AM
  3. Just made a Google Product Listing Adwords Campaign
    By shamieya in forum Pay Per Click
    Replies: 48
    Last Post: 12-04-2012, 07:16 PM
  4. Replies: 9
    Last Post: 08-06-2012, 09:22 AM
  5. Using REGEX to add product pages as a layer in funnels
    By Ben in forum Search Engine Optimization
    Replies: 3
    Last Post: 07-05-2012, 07:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •