cancel the buy button link

Hi

I believe you already install the template right? so you just need to download the following files (if it's installed in a live site) using any FTP client you have, edit it using a php/html editor you prefer then re-upload then at the respective folder on your live site.

/templates/deals_plazza/html/com_k2/dealplazza/category_item.php and
/templates/deals_plazza/html/com_k2/dealplazza/item.php

Hope that clear enough..
11 years 11 months ago #7 by erwinschro

Please Log in or Create an account to join the conversation.

hi
yes its so clear now
and yes it is a live site and working
thank you i will write letter to tell you what happend

happy new year
11 years 11 months ago #8 by matrixxl

Please Log in or Create an account to join the conversation.

Hello
I found it and its ok
I want to ask what is the right code to write to disable the buy button lin
k without making the tamplate to show the error page?
11 years 11 months ago #9 by matrixxl

Please Log in or Create an account to join the conversation.

Hi

could you tell us what was the error that shows up when you try to disable it? how did you try to make it disabled?
11 years 11 months ago #10 by erwinschro

Please Log in or Create an account to join the conversation.

Hello
You can see the site nocrisis.gr and if you click the
First buy button you will see the error page
I just want to disable it
I mean that if anybody clicked it nothing will happen
Thank you for your quick replay
11 years 11 months ago #11 by matrixxl

Please Log in or Create an account to join the conversation.

Hello matrixxl,

You can try to edit in these files

/templates/deals_plazza/html/com_k2/dealplazza/category_item.php and
/templates/deals_plazza/html/com_k2/dealplazza/item.php

Find out this line (about line 78 in category_item.php)
<a href="/<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$custom[3]->value.'&Itemid=999'); ?>"><i class="icon-basket"></i> <?php echo JText::_('Buy'); ?> <span><?php echo $custom[4]->value;?></span></a>

change it become to
<i class="icon-basket"></i> <?php echo JText::_('Buy'); ?> <span><?php echo $custom[4]->value;?></span>

And about line 240 in item.php
<a href="/<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$custom[3]->value.'&Itemid=135'); ?>"><i class="icon-basket"></i> <?php echo JText::_('Buy'); ?> <span><?php echo $custom[4]->value;?></span></a>

change it become to
<i class="icon-basket"></i> <?php echo JText::_('Buy'); ?> <span><?php echo $custom[4]->value;?></span>
11 years 11 months ago #12 by ronysyz

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum