VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: dsidir on September 22, 2014, 20:16:46 PM

Title: Related Products open in a new page
Post by: dsidir on September 22, 2014, 20:16:46 PM
Hello,

Using the latest version of VM and Joomla, I am trying to find how I can disable the related products to open in a new tab. Actually I want to open in the same page, and not open a new tab or window. I just wonder where this part of code is, in which file, line ?
Title: Re: Related Products open in a new page
Post by: dsidir on September 22, 2014, 20:22:22 PM
I know that somewhere should be a "target_blank"  command , but I really cant find in which file.
Title: Re: Related Products open in a new page
Post by: GJC Web Design on September 23, 2014, 10:59:32 AM
url?
Title: Re: Related Products open in a new page
Post by: dsidir on October 07, 2014, 14:58:22 PM
Sorry,
for example

http://www.agrogen.gr/el/e-shop/sporoi/aromatika-futa/rigani-
Title: Re: Related Products open in a new page
Post by: dsidir on October 20, 2014, 18:05:30 PM
any ideas how to get rid of the opening the related products to a new tab ?
Title: Re: Related Products open in a new page
Post by: jenkinhill on October 20, 2014, 19:53:33 PM
There is something wrong with your template overrides. VM action using the default templates is to open related products in the same window - you can also see this action in the VM demo at http://demo.virtuemart.net/headgear/classic-hat-detail
Title: Re: Related Products open in a new page
Post by: dsidir on October 22, 2014, 13:38:52 PM
you mean settings at vm configuration ?
Can u suggest a setting to check ?
Title: Re: Related Products open in a new page
Post by: jenkinhill on October 22, 2014, 15:01:02 PM
No, not a setting. Your product details template overrides need fixing. Compare the code with those of the default VM files in components/com_virtuemart/views/productdetails/tmpl/ - probably you need to look at default_relatedproducts.php

If you don't understand this then get your template supplier to provide corrected files.
Title: Re: Related Products open in a new page
Post by: GJC Web Design on October 22, 2014, 15:24:44 PM
Yes - it must be your template inserting the blank in the link - this doesn't happen on a std VM

<a target="blank" title="ΛΕΒΑΝΤΑ φάκελος 10g" href="/el/e-shop/sporoi/aromatika-futa/levanta-"><img alt="Λεβάντα Σπόροι Τιμές" src="/images/stories/virtuemart/product/resized/levanta-sporoi_545x239.jpg"> ΛΕΒΑΝΤΑ φάκελος 10g</a>
Title: Re: Related Products open in a new page
Post by: dsidir on October 22, 2014, 20:36:47 PM
thanx for the quick reply. I will have a look on related_products files and I will report the problem