VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: roman5527 on November 19, 2014, 17:57:13 PM

Title: Continue link in pop-up bad redirect
Post by: roman5527 on November 19, 2014, 17:57:13 PM
Good day. I have problems with reference Continue shopping at pop-up window. Link redirects me to a completely different category from where I added a product to the cart. can anyone help me how to fix the problem? thank you
Title: Re: Continue link in pop-up bad redirect
Post by: GJC Web Design on November 19, 2014, 18:14:55 PM
versions?  Link? 
Title: Re: Continue link in pop-up bad redirect
Post by: roman5527 on November 19, 2014, 18:59:51 PM
oooo sorry .

I used joomla 2.5.27 and vm 2.6.12.2

link to page is : http://velkoobchod.svetkamenov.sk/

thanks
Title: Re: Continue link in pop-up bad redirect
Post by: GJC Web Design on November 19, 2014, 20:45:34 PM
seems to go to the parent of the category... 

but the url is also the parent of the category

http://velkoobchod.svetkamenov.sk/tromlovane-kamene/placka-achat-detail.html

where as your breadcrumbs show it correctly
   

    Domov
    /
    Tromlované kamene
    /
    Placky
    /
    Placka Achát

the continue link is taken from the url unless it is set in the session

static public function setLastVisitedCategoryId ($categoryId) {
      $session = JFactory::getSession();
      return $session->set( 'vmlastvisitedcategoryid', (int)$categoryId, 'vm' );
   }
so in this case it will be  tromlovane-kamene

are your products also in their parent cats - not JUST in the child cats?

[attachment cleanup by admin]
Title: Re: Continue link in pop-up bad redirect
Post by: roman5527 on November 21, 2014, 13:13:02 PM
Hi , yes product is in parent and child category.

See to picture . you can see bad url link. thanks

[attachment cleanup by admin]
Title: Re: Continue link in pop-up bad redirect
Post by: GJC Web Design on November 21, 2014, 15:35:58 PM
well - I explained exactly what is wrong...it takes the catid from the url  - and that's the parent..

http://velkoobchod.svetkamenov.sk/tromlovane-kamene/placka-achat-detail.html

Title: Re: Continue link in pop-up bad redirect
Post by: roman5527 on November 21, 2014, 18:30:23 PM
In the category Tromlované kamene is all ok .

But in category "Brusené a gravirované kamene" it is not good. continue link in this category is to category Tromlovane kamene. It si bad .
Title: Re: Continue link in pop-up bad redirect
Post by: GJC Web Design on November 21, 2014, 19:06:47 PM
I give up - just repeating what you find wrong is not getting you anywhere - I explained why it happens

if you don't like this then you will need to find a fix that incl. the whole category hierarchy in the url or a method to take the  category id from your last breadcrumb..

have u tested vm3 - perhaps fixed
Title: Re: Continue link in pop-up bad redirect
Post by: Milbo on November 23, 2014, 11:55:52 AM
If your product has more than one category, one category is taken as the canonical URL, which used further. and indeed, check vm3. should be fixed there.