product page in pop up... add to cart display

  • Posts: 32
  • Thank you received: 1
11 years 8 months ago #92688

Hi

I have my product page set up as a pop up by editing the listing_img_title view with the below code. This works fine. However i have the add to cart button set to "stay on page and display pop up" The continue shopping pop up appears but instead of the correct content it says an error has occured. Any ideas how to fix this

<a class="modal" rel="{handler: 'iframe', size: {x: 800, y: 500}}" href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">
$link = hikashop_completeLink('product&task=show&cid='.$this->row->product_id.'&tmpl=component&name='.$this->row->alias.$this->itemid.$this->category_pathway);

Thanks

Here is a link to a listing so you can see what i mean

66.147.244.93/~therebe5/joomla1/gk_resta...ory/12-boiled-sweets

Last edit: 11 years 8 months ago by Tracy.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #92823

Hi,

Because the product is in a popup, the popup notice can not take the element from the page. I think that some JavaScript need to be edited the use of "parent." is probably required.
Try to use another option instead of "stay on page and display pop up" and see if the product is correctly added to the cart.

You can set the error report to maximum (joomla options) to see if errors are returned.

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

  • Posts: 32
  • Thank you received: 1
11 years 8 months ago #92881

Thanks xavier

I'm afraid my javascript skills are not very good. alternatively would there be a way to get the add to cart button to close the pop up on clicking it. or even possibly closing the product pop up and then opening the notice pop up.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #92934

The JavaScript function is "self.close()" but you have to add it in the product button in the "onClick" event.
And to do that, you have to edit a core php file.

It require good php skills in this case.

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

Time to create page: 0.043 seconds
Powered by Kunena Forum