Changin Add to Cart Button Position
- condorazul
-
Topic Author
- Offline
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2.1
I would like to change the add to cart button position in my show_tabular view
reading in the forum i copy/paste the following code:
<?php if(empty ($this->element->characteristics) || $this->params->get('characteristic_display')!='list'){ ?>
<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main">
<?php
$this->row = & $this->element;
$this->ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . $this->row->product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }';
$this->setLayout('quantity');
echo $this->loadTemplate();
?>
</div>
and paste it just after:
<span id="hikashop_product_price_main" class="hikashop_product_price_main">
<?php
if ($this->params->get('show_price')) {
$this->row = & $this->element;
$this->setLayout('listing_price');
echo $this->loadTemplate();
}
?>
</span>
It does not work at all, the result is broken template and not going to checkout.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Firstly can you show me how do you want to move your add to cart button through some screenshots ? so that I can give you some advice about how you should edit your "show_tabular" file.
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
So all I can think of is that you made a mistake when doing it.
Can you try again ?
What error do you get exactly ?
What is the resulting code exactly ? could you attach the file content in your message so that we can see your modification?
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
i also uploaded the file
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
<?php $this->formName = $form = ',\'hikashop_product_form\''; ?>
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Why does ajax not work in my template???
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.