News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Related Products open in a new page

Started by dsidir, September 22, 2014, 20:16:46 PM

Previous topic - Next topic

dsidir

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 ?

dsidir

I know that somewhere should be a "target_blank"  command , but I really cant find in which file.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation


dsidir

any ideas how to get rid of the opening the related products to a new tab ?

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dsidir

you mean settings at vm configuration ?
Can u suggest a setting to check ?

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

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>
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

dsidir

thanx for the quick reply. I will have a look on related_products files and I will report the problem