Author Topic: Itemid missing in some URLs  (Read 8050 times)

CZDave

  • Beginner
  • *
  • Posts: 2
Itemid missing in some URLs
« on: December 30, 2011, 22:00:58 pm »
Hi,

I've noticed that some URLs in VirtueMart 2.0.0 don't contain the Itemid variable, which causes problems with modules visibility and SEF URLs creation in some cases, because menu item is not recognized correctly. This happens when clicking the Add to cart button on product details page, the popup is displayed with Continue shopping and Show cart links - both miss the Itemid variable (file components/com_virtuemart/controllers/cart.php in function addJS()).
I use Joomla 1.5.25.

alex-corp

  • Beginner
  • *
  • Posts: 2
Re: Itemid missing in some URLs
« Reply #1 on: January 21, 2012, 20:35:42 pm »
Hello!
I have this problem too.
Could you help solve it, please?

Zuske

  • Beginner
  • *
  • Posts: 29
Re: Itemid missing in some URLs
« Reply #2 on: March 16, 2012, 01:10:58 am »
i have the same problem, the modules dont show up, after clicking on continue shopping in the ajax popup box

Zuske

  • Beginner
  • *
  • Posts: 29
Re: Itemid missing in some URLs
« Reply #3 on: March 17, 2012, 14:16:39 pm »
i resolved it, by adjusting my continue link like this: in controllers/cart.php line 115

$categoryLink = '&view=categories&virtuemart_category_id=0&Itemid=118&'

For your site you have to find the itemid that is correct, first.
i have to put the "&" at the end, otherwise it wont call the item id.
but i have to give id values otherwise i dont no how to call the modules. this prolly not the right way to call the item variable, but hey, i dont know better.

same goes for goes for the view cart link:
on line 124 i did put: "&Itemid=118&" behind the route, so i get this: JRoute::_("index.php?option=com_virtuemart&view=cart&Itemid=118&")

Zuske

  • Beginner
  • *
  • Posts: 29
Re: Itemid missing in some URLs
« Reply #4 on: June 29, 2012, 23:26:18 pm »
bumb, modules not loading, due to wrong links in facebox is still an issue in .2.0.6,

did this issue get adressed in .8?

Zuske

  • Beginner
  • *
  • Posts: 29
Re: Itemid missing in some URLs
« Reply #5 on: July 03, 2012, 18:54:21 pm »
in the new update 2.0.8

the new back to category button, on the product detail page,  doesnt load the modules on the category page, like search module, shopping cart module, language select module, etc..  same story as above other link.

Zuske

  • Beginner
  • *
  • Posts: 29
Re: Itemid missing in some URLs
« Reply #6 on: July 03, 2012, 19:16:25 pm »
also the link from product category page to the product detail page, is causing the module to disapear.

see the difference between the links to see what i am talking about, when i click on the product details button.

http://www.mongolianlife.com/en/winkel/boots

http://www.mongolianlife.com/en/component/virtuemart/boots/boot-for-ladies-and-gentlemen-gobi-detail?Itemid=0

what do i have change do in the url for the modules to load? :o

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2047
    • alatak.net
Re: Itemid missing in some URLs
« Reply #7 on: July 04, 2012, 17:14:45 pm »
Hello,

Yes it is true, the Itemid is missing in the links, when the SEF is not activated.
If you activate the SEF, the problem is solved.


Zuske

  • Beginner
  • *
  • Posts: 29
Re: Itemid missing in some URLs
« Reply #8 on: July 06, 2012, 17:53:39 pm »
thx for your reply alatak,

my sef was already activated. But i fixed it. My problem turned out to be a wrong menu item. I don't know exactly know what the problem was. But i deleted the menu module.
Made a new menu and menu item, linked vm2.0 to it. After that i didnt have the problem with the modules anymore.


alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2047
    • alatak.net
Re: Itemid missing in some URLs
« Reply #9 on: July 07, 2012, 11:35:11 am »
Hello,

We will solve the problem of the Itemid when SEF is not activated later.

ido_p

  • Beginner
  • *
  • Posts: 4
Re: Itemid missing in some URLs
« Reply #10 on: June 26, 2013, 00:46:21 am »
hi,
My homepage is not assigned to virtuemart but to an article page.
As a result the links that do not have an itemid assigned to them direct to the homepage instead of the itemid assigned to virtuemart.
In vm 1.5 this was managed by function getShopItemid() in administrator/components/com_virtuemart/classes/ps_session.php
In vm 2 I do not know where this is done?
Can you please help?
Thank you,
Ido

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9912
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Itemid missing in some URLs
« Reply #11 on: June 26, 2013, 01:18:01 am »
I think you mean vm1.1, vm1.5 existed only as beta. The file is now the router.php in the FE, joomla convention. If you have enhancements, please post them in the snippet subsection
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Zanato

  • Beginner
  • *
  • Posts: 3
Re: Itemid missing in some URLs
« Reply #12 on: July 24, 2013, 22:12:20 pm »
Yes it is true, the Itemid is missing in the links, when the SEF is not activated.
If you activate the SEF, the problem is solved.

:( Pity I didn't see this post two hours ago. Would have saved me a lot of head scratching.

We will solve the problem of the Itemid when SEF is not activated later.

I'm on version 2.0.20b and still not solved.

zagloj

  • Beginner
  • *
  • Posts: 3
Re: Itemid missing in some URLs
« Reply #13 on: July 29, 2013, 10:17:14 am »
 Hi, I have activated SEF in VM 2.0.22a and it does not show itemid in the url. I will explain, it only shows correctly the link when you are viewing a VM page, if you are reading a Joomla article, or another non VM thing, the link is as this: http://mandarinacat.com/index.php?option=com_virtuemart&view=cart , which leads to blank page.

 I do not have any clue about how to fix this, any help would be appreciated.

 Thanks to all the VM dev team for this work.