cancel the buy button link
- Posted by matrixxl (14) Offline
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
and i would like to know how i can disable the buy buton click action
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
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)
And about line 240 in item.php
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
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.
Please Log in or Create an account to join the conversation.
- Posted by matrixxl (14) Offline
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
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?
Please Log in or Create an account to join the conversation.
- Posted by matrixxl (14) Offline
- Posted by erwinschro (1034) Offline
- Posted by matrixxl (14) Offline
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
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?
Please Log in or Create an account to join the conversation.