Add To Cart Extra Ajax Link on Product Detail Page

  • Posts: 24
  • Thank you received: 0
13 years 2 weeks ago #29293

Hi

I am not a programmer but thought I would be able to do this task :(

I am trying to add a second ajax add to cart link in the show.php template but cannot find the right code to use.

I am currently using this code, in the attached file, in my product listings templates which works fine there but it doesn't work in the product details page.

Thanks!

File Attachment:

File Name: hika_ajax_...link.txt
File Size:1 KB

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29318

Hi,

On the product page, you should use that code:
<?php
$this->row =& $this->element;
$this->ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\''.$this->row->product_id.'\',field,1'.$form.'); } else { return false; }';
$this->setLayout('quantity');
echo $this->loadTemplate();
?>

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

  • Posts: 24
  • Thank you received: 0
13 years 2 weeks ago #29328

Excellent thank you!

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

Time to create page: 0.056 seconds
Powered by Kunena Forum