- Posts: 16
- Thank you received: 0
Move custom field on product page
- rossdesigns
-
Topic Author
- Offline
Less
More
14 years 1 month ago #67053
by rossdesigns
Move custom field on product page was created by rossdesigns
Hi,
I have two requests for help:
(1) I have a 'gift wrapping' product on my site and the customer can leave a message to be added with the gift wrapping. I have done this by defining gift wrapping as a product and a custom field Textarea 'giftmessage'.
I would like to move the text area box on the product page ( www.dingospirit.net/component/hikashop/p...ft-wrapping?Itemid=0 ) to below the 'Add to cart' button.
(2) On my home page I would like the tab of the browser to display 'Dingo Spirit'. It is currently displaying 'Home' because this is the name of the menu item?
Thanks,
Geoff
I have two requests for help:
(1) I have a 'gift wrapping' product on my site and the customer can leave a message to be added with the gift wrapping. I have done this by defining gift wrapping as a product and a custom field Textarea 'giftmessage'.
I would like to move the text area box on the product page ( www.dingospirit.net/component/hikashop/p...ft-wrapping?Itemid=0 ) to below the 'Add to cart' button.
(2) On my home page I would like the tab of the browser to display 'Dingo Spirit'. It is currently displaying 'Home' because this is the name of the menu item?
Thanks,
Geoff
Please Log in or Create an account to join the conversation.
- rossdesigns
-
Topic Author
- Offline
Less
More
- Posts: 16
- Thank you received: 0
14 years 1 month ago #67054
by rossdesigns
Replied by rossdesigns on topic Re: Move custom field on product page
Hi,
I have found the answer to my second question.
Look forward to the answer for my first question.
Thanks,
Geoff
I have found the answer to my second question.
Look forward to the answer for my first question.
Thanks,
Geoff
Please Log in or Create an account to join the conversation.
- rossdesigns
-
Topic Author
- Offline
Less
More
- Posts: 16
- Thank you received: 0
14 years 1 month ago #67130
by rossdesigns
Replied by rossdesigns on topic Re: Move custom field on product page
Hi,
Can anyone point me to the right file and script to amend to move my custom textarea below the 'add to cart' button on a single product page?
Thanks,
Geoff
Can anyone point me to the right file and script to amend to move my custom textarea below the 'add to cart' button on a single product page?
Thanks,
Geoff
Please Log in or Create an account to join the conversation.
14 years 1 month ago #67495
by nicolas
Replied by nicolas on topic Re: Move custom field on product page
Hi,
You can edit the file "show_default" of the view "product" via the menu display->views and swap the code:
and the code:
You can edit the file "show_default" of the view "product" via the menu display->views and swap the code:
Code:
$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();
and the code:
Code:
if (!$this->params->get('catalogue') && ($this->config->get('display_add_to_cart_for_free_products') || !empty ($this->element->prices))) {
if (!empty ($this->itemFields)) {
$form = ',\'hikashop_product_form\'';
if ($this->config->get('redirect_url_after_add_cart', 'stay_if_cart') == 'ask_user') {
?>
<input type="hidden" name="popup" value="1"/>
<?php
}
//LAYOUT show_block_custom_item
$this->setLayout('show_block_custom_item');
echo $this->loadTemplate();
}
}
Please Log in or Create an account to join the conversation.
Time to create page: 0.118 seconds