Insert Add to cart Button

  • Posts: 20
  • Thank you received: 0
11 years 10 months ago #84108

Hi
Is it possible to put a second add to cart button at the bottom (or anywhere) in the product description so customer don't has to return to the top of the description to click?
Thanks

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

  • Posts: 16
  • Thank you received: 2
11 years 10 months ago #84123

yes why not copy the add to cart code en place any where you want it on the page

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

  • Posts: 20
  • Thank you received: 0
11 years 10 months ago #84128

I thought it should be something like that but where do I find the code please..
I know it's probably obvious but I'm just learning this stuff :blink:
Thanks

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

  • Posts: 16
  • Thank you received: 2
11 years 10 months ago #84132

edit the product / listing_....php file.

dont now witch one you use div, list, .. u can check that in your category listings in the admin

place al link in youre post so we can see



A other option is to add manual on your product page the click on edit product then u see next to the save button a yellow button add to cart html link past that in the writing area and it wil appair unther your product describtion. you need to do this voor all your products

Last edit: 11 years 10 months ago by plugonline.
The following user(s) said Thank You: Grey64

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

  • Posts: 20
  • Thank you received: 0
11 years 10 months ago #84182

Thanks I see how it's done now

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #84184

Hi,

The view is "product | show_default".
The block which add the button is the "quantity" block. You can duplicate the code (and changing the "id" in order to remove the HTML errors).
Something like:

	<div id="hikashop_product_quantity_main_2" 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>

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum