cancel the buy button link

Hello i just bought the tamplate and it is so great, i want to ask how can i cancel the action of the buy button. i want to define another direction for the buy button link.
and i would like to know how i can disable the buy buton click action
11 years 11 months ago #1 by matrixxl

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

Hello

Thanks for re-posting here... :)

Ok to make those button linked to another page rather than to Virtuemart cart, you can edit them in the following 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>

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>

You can edit the href property into another link you prefer. Or you can disable those link too from there.
11 years 11 months ago #2 by erwinschro

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

thank you very much for your quick answer
im new to all this thing so i want to ask where i can find the php file?
is it there in the tamplate css?
11 years 11 months ago #3 by matrixxl

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

ok i found it now im trying to edit it
11 years 11 months ago #4 by matrixxl

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

ok that's good to hear...
11 years 11 months ago #5 by erwinschro

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

hello again
i just want to be sure that i understand
the php file can be found in the deal plazza 1.1 zip file after editing and saving it i have to upload it again
is that it?
11 years 11 months ago #6 by matrixxl

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

Powered by Kunena Forum