View Single Post
  #6  
Old 05-07-2013, 01:01 PM
 
stonezafu stonezafu is offline
 

Member
  
Join Date: Dec 2012
Posts: 18
 

Default Re: Display first 3 products from selected categories on HP

OK - I get it.

If this were simple xhtml it would be dead easy. Truth is it's a major task to unpick X-Cart's combination of html, php, Smarty templates, Javascript and MySQL reads that generates the table you're targeting. I've had a look at the source code and dug briefly into the coding behind it but I reckon it's a week's work to unravel that lot.

Maybe someone else has a better idea of how to insert a heading into each new major 'chunk' of 3 items in the table. I have identified a single non-breaking space that's used as a separator (class="separator") in the source code but I can't track down how that's generated despite a complex 'grep' search for it inside the entire X-Cart code base. I guess it's created on the fly within the Javascript itself. If you can target that you can make it show a heading line, but finding it... Yikes!

So, alternative approach, if it's any use to you - you could use WebMaster Mode to modify the value of the 'Featured Products' label [to read, say: 'Sample our fine whiskies and tastings']. We use this approach on one site to add a message about free shipping on products over a certain value. However, the same value will pop up every time you use top-level Categories, so you'd need to consider the wording carefully.

Sorry not to be more help.

Cheers, John
__________________
Two client sites: 4.4.4 and 4.5.5
Coding since 1981. Using X-Cart since 2012
Reply With Quote