Author Topic: Problem to get rid of "Ask about this product" form  (Read 6352 times)

abrodski

  • Beginner
  • *
  • Posts: 27
Problem to get rid of "Ask about this product" form
« on: May 20, 2014, 07:49:24 am »
Hello everybody!
Though this question was asked about a zillion times before, the solution proposed somehow didn't help me much. I have Joomla 1.5.26 (last edition) and I'm running Virtuemart 1.1.5. I have a GavickPro MyStore template and I think it has it's own theme (styling... whatever it's called).
On a product's flypage I've got 2 tabs: "Details" and "Ask a question..." as usual. I want to remove the latter one. Now... I know about a way that was proposed which is to delete the content of shop.ask.tpl.php and commenting out $ask_seller in flypage.tpl.php
When I do that - absolutely nothing changes. I have a feeling that IN MY CASE it needs to be done differently.
To make things simple, I would provide a link to flypage on my live site (don't worry, it's not a working store YET). It's been translated into Russian, but the tab and the form are the same, basically.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8834
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Problem to get rid of "Ask about this product" form
« Reply #1 on: May 20, 2014, 09:05:30 am »
vm1.1 never had tabs so this I assume is hard coded into your gavik theme

You need to find the code and remove it from the theme file
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

abrodski

  • Beginner
  • *
  • Posts: 27
Re: Problem to get rid of "Ask about this product" form
« Reply #2 on: May 20, 2014, 10:04:21 am »
vm1.1 never had tabs so this I assume is hard coded into your gavik theme

You need to find the code and remove it from the theme file

Thank you for your quick reply!
Yeah, that's what I also figured out, but the problem is that Gavick tries to get rid of me, sending me to VM forum. Unfortunately, I'm not a coder and it's not easy for me to find a right piece of code to delete in the Gavick's theme. I'll try to attach here a print screen JPEG of what you could see code wise.
So if someone could help me to dig deeper into this, it would be very appreciated.

[attachment cleanup by admin]

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8834
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Problem to get rid of "Ask about this product" form
« Reply #3 on: May 20, 2014, 10:39:31 am »
well done gavik - tsk tsk

you have to remove the code - that's the solution

sending the rendered source code tells nothing - if you haven't the skills then you need to get someone who has - just like when the washing machine breaks - if you can't fix it you get a bloke who can...
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

abrodski

  • Beginner
  • *
  • Posts: 27
Re: Problem to get rid of "Ask about this product" form
« Reply #4 on: May 20, 2014, 11:14:27 am »
well done gavik - tsk tsk

you have to remove the code - that's the solution

sending the rendered source code tells nothing - if you haven't the skills then you need to get someone who has - just like when the washing machine breaks - if you can't fix it you get a bloke who can...

I guess that I'm looking for GUYS who would actually help me to locate that code as opposed to BLOKES who send me to my broken washing machine. No offense!
Seriously speaking, I can easily delete the code myself if I knew where to find it. And locating the code shouldn't be all that hard. You do have a live site that unlike your broken washing machine could be easily accessed from anywhere!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8834
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Problem to get rid of "Ask about this product" form
« Reply #5 on: May 20, 2014, 11:31:18 am »
Ha - if everyone could read  php code from the frontend we would all be dining out on your credit cards while enjoying the cash we emptied from your bank accounts.. ;)

It's in your theme .. more than that can't say - your asking anyway for help on a commercial template -- gavik is the "bloke" you should ask . he has your money...
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27345
  • Always on vacation
    • Jenkin Hill Internet
Re: Problem to get rid of "Ask about this product" form
« Reply #6 on: May 20, 2014, 11:32:55 am »
The problem is that you are using a very old Gavick template which is built around an old Joomla version and an old (and very insecure) VirteMart version, neither versions of which are officially supported now. So Gavick's answer really does not surprise me. ISTR VM1.1.5 was released back in 2009, so the template will date from around that time or earlier. Surely they have not recently sold it to you?

So why are you not using current software (and a current template)?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.10045 on Joomla 3.9.5 PHP 7.0.33
Testing VM 3.4.5.10045 on Joomla 3.9.5

abrodski

  • Beginner
  • *
  • Posts: 27
Re: Problem to get rid of "Ask about this product" form
« Reply #7 on: May 20, 2014, 11:52:17 am »
Why would I switch from XP to 7 if not for DirectX 11 that I need to run Crysis2 and Crysis3? Same principle applies to VM 1. I know it, it does the job and it looks OK to me.
So far there's nothing that I need that can't be found in old VM...
As per security, honestly it's been years since I had anything bad happened in that sense. So I hope it will continue that way...
I don't think Gavick cares whether it's new or old... Especially if it CHARGES for its stuff.
Yes, you're right - THEY should be the people to help me, but I won't go to The Hague if they don't.
As per PHP code... I can't tell for sure whether it's at all possible to find without back-end access, but something tells me that you kinda not in the mood to help anyway...
Thousands of people worldwide use those GavickPro commercial templates and one doesn't have to be snowden to know about them enough to answer relatively simple question.

P.S. Some update here... I was told that I could "simply hide it with CSS".

#gk_product_tabs li:nth-child(2) { display:none; }

God knows where to put it though... And that pound sign in the front means that I comment it out?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8834
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Problem to get rid of "Ask about this product" form
« Reply #8 on: May 20, 2014, 12:14:04 pm »
put it in any css file

#gk_product_tabs > li:nth-child(2) {
  display: none !important;
}



[attachment cleanup by admin]
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

abrodski

  • Beginner
  • *
  • Posts: 27
Re: Problem to get rid of "Ask about this product" form
« Reply #9 on: May 20, 2014, 12:21:55 pm »
Yeah thanks! It worked! This topic can be closed now.
Actually, believe it or not, Gavick people actually told me that a minute before you. They told me to enable CSS overrides first and then paste that code in
templates/gk_mystore/css folder
There there's a override.css file, so I just pasted the code into it.
Don't know how it's different from what you proposed...
So as you could see, it's not a washing machine issue... Not all that hard and people who know and who want to help can do that without gaining access to site's back-end!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8834
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Problem to get rid of "Ask about this product" form
« Reply #10 on: May 20, 2014, 12:35:21 pm »
1. css works anywhere - as long as it comes after other affecting rules or has !important

2. the form is still there for any spammer who wants to use it - it is just not displayed
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

abrodski

  • Beginner
  • *
  • Posts: 27
Re: Problem to get rid of "Ask about this product" form
« Reply #11 on: May 21, 2014, 15:18:16 pm »
I agree with you. CSS solution isn't the best, but it's all I've got for now.
So far I didn't get SPAM from there. Hope it will continue that way... I use KeyCaptcha  and it's great! But for some reason it wasn't there under that form. I don't know, maybe in case of SPAM there's a solution? You tell me... (if you know). Just for the future reference, just in case.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8834
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Problem to get rid of "Ask about this product" form
« Reply #12 on: May 21, 2014, 17:11:46 pm »
delete the content of shop.ask.tpl.php
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

abrodski

  • Beginner
  • *
  • Posts: 27
Re: Problem to get rid of "Ask about this product" form
« Reply #13 on: May 21, 2014, 18:20:28 pm »
You mean this one:
components/com_virtuemart/themes/default/templates/pages/shop.ask.tpl.php

If so, I've tried that before asking here. Didn't change a thing. But I'll keep that in mind. Thanks!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8834
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Problem to get rid of "Ask about this product" form
« Reply #14 on: May 21, 2014, 21:36:46 pm »
Ah - so long since I worked on 1.1

just put something rude in administrator/components/com_virtuemart/html/shop.ask.php
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation