Move custom field on product page

  • Posts: 16
  • Thank you received: 0
12 years 1 month ago #67053

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

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

  • Posts: 16
  • Thank you received: 0
12 years 1 month ago #67054

Hi,

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.

  • Posts: 16
  • Thank you received: 0
12 years 1 month ago #67130

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

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67495

Hi,

You can edit the file "show_default" of the view "product" via the menu display->views and swap the 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:
	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.063 seconds
Powered by Kunena Forum