HikaShop and Joomfish

  • Posts: 34
  • Thank you received: 0
13 years 6 months ago #16863

I have a menu displaying the products listing. When I click on the country flags the url changes from this:
www.charitycanvasprints.com/en-gb/view-the-images.html
to this:
www.charitycanvasprints.com/en-us/view-t...ges/format-html.html

And the display changes from the correct 'Product Listing' display to a 'Catagory Listing' Display.

I must be doing something wrong as it should still display the 'Product Listing'

EDIT


I also noticed the the page title is 'Categories' yet its set for a 'Prodct Listing'

Maybe I should delete the menu item and start again.


David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Last edit: 13 years 6 months ago by davcraiguk. Reason: aded a postscript

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #16865

You should first try to deactivate the SEF in Joomla so that we can see the standard URLs. It's hard to say anything like that.

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
13 years 6 months ago #16866

Ok - deactivated Joomla SEF.

The original URLs are correct and they display correctly. So Joomla SEF is translating it wrong?


David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #16868

It must be a problem between the SEF and joomfish. Not sure what to say since it's working fine when not SEFed...

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
13 years 6 months ago #16870

I need to have SEF on so I'm taking off the language module for that menu item.


David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
13 years 6 months ago #16876

How I have the problem of how to display the language module on product pages as there are no Joomla menus pointing to prodct pages.

Can a module be coded into Display/views/products/show? My PHP knowledge doesn't go there.


David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #16879

That should be done in your template's index.php file with something like that:
if($_GET=='com_hikashop'&&$_GET=='product'&&$_GET=='show'){
//display module position
}

The way to display module positions in the index.php can be a lot different depending on how your template provider is making its templates. By default, joomla template's positions are displayed like this:
echo '<jdoc:include type="modules" name="user4" />';
where user4 is the name of the position.

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 0
13 years 6 months ago #16908

Thanks for that. I now use only the language module in 'user3' for product pages only as per code in previous post.

In order for the Language module to show on other Joomla article pages I created a duplicate of the language module anchored it to 'user4' position (similar to user3 in position on the page) and assigned them to menu items as required.


David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 2
13 years 1 week ago #30052

I had similar issue recently. Serfing the web I have found the solution which helped me:


Step 1: Always make a back up of the file you are working on - will save you a lot of time and nerves.

Step 2: Open the components/com_hikashop/router.php file with a text editor (I use Notepad++. Others might screw your files up due to the wrong encoding).

Around line 164 find

if(!in_array($name,array('option','Itemid','start'))){

and replase it with
if(!in_array($name,array('option','Itemid','start','format'))){

This did work for me.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 week ago #30056

That has actually been added previously to the router.php file so if you use the latest version of HikaShop you should not have to do that and you should not have the problem.

But thanks anyway for the feedback.

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 2
13 years 1 week ago #30059

True. my version is not the latest one.

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum