News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Specific related product on specific product page, almost there...

Started by CasperH, January 03, 2015, 16:47:32 PM

Previous topic - Next topic

CasperH

Ok, I searched a bit on JED and through google but besides a lot of fancy scroll extensions I could not find a simple module/extension that does what I want.

Here is the situation, we have a shop with about 20 products. We know certain products relate to others or are "improved" versions of the other. So I'm looking for showing these related products in a side bar module similar to how its currently possible to show featured products.

Either way, I am very close, but not quite there yet.

To only show a specific module on a specific page, I use the Meta Mode plugin (basic): http://www.metamodpro.com/ with the following php recipe:

$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ($vm->check( "pagetype = productdetails" ) ) {

  $product_id = $vm->info( "product_id" );

  /* modules that should appear for specific products */
  if ($product_id == "27") return 171;
}


That bit works very nice and I can already return a featured product module with that.

However, where I'm stuck at is, for certain product I only want to show one specific product id. I could do this with a custom html module, but that is a bit "hard coded" and would not update the product price or name if we choose to change that later.

I did find this website/plugin, but also for this one you have to fill in a list of text that does not get updated if the product info changes: http://www.kaizenmediaworks.com/virtuemart-20-show-product-module

I'm surprised this is so difficult, or am I overlooking something?  :-\

sexshoponlinepro

If don't works well you can create a category, for example, Featured, an asign at this category the products. Is not the best solution, but works fine.