Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Hikashop and JomGenius

Hikashop and JomGenius

Hi there,

I'm working with Joomla 3.2.1 and the latest version of Metamod and Hikahsop.

I've read in the release notes for the latest Metamod that JomGenius support for Hikashop has been added and I'm wondering if there is a list of parameters for Hikashop available as I couldn't see any in the JomGenius section on the website.

Basically I'm trying to get a module to display only on a particular top level Hikashop category and not it's subcategories.

Thanks

Nathan

snaffle
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Hikashop and JomGenius

Hi Nathan,

good call - you're right, I haven't added the documentation for HikaShop yet.

You can get the JomGenius object like this:

$hs = JomGenius("hikashop");

Then there are various parameters you can retrieve:

productid
pagetype
categoryid
categoryids
ancestorcategoryids

I think in your case you're probably looking for categoryid or categoryids.

So you might want something like this to detect any pages that are a product in that category or the category page itself:

$hs = JomGenius("hikashop");
if ($hs->check("categoryids = 123")) return XXX;
// replace 123 with the category id, and XXX with the module to show on that page

Or, if you want to restrict to category pages ONLY (not product pages) you could do:

$hs = JomGenius("hikashop");
if ($hs->check("categoryids = 123") and $hs->check("pagetype = category")) return XXX;
// replace 123 with the category id, and XXX with the module to show on that page


A list of HS page types:
category
checkout#1 (2, 3, 4, 5 etc)
contact.sent
contact
product.listing
product.compare
product.show
user.address.add
user.address.listing
user.address.edit
user.order.listing
user.order.show
user.downloads
user.cpanel
user

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Hikashop and JomGenius

Thanks for that Stephen, very helpful.

snaffle
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5910
Total Posts Today:
1
User Info:
 
Total Users:
10152
Newest User:
kasautiizindagiikay
Members Online:
0
Guests Online:
315

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked