- Posts: 32
- Thank you received: 1
product page in pop up... add to cart display
13 years 7 months ago - 13 years 7 months ago #92688
by Tracy
product page in pop up... add to cart display was created by Tracy
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
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
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
Code:
<a class="modal" rel="{handler: 'iframe', size: {x: 800, y: 500}}" href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">
Code:
$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: 13 years 7 months ago by Tracy.
Please Log in or Create an account to join the conversation.
13 years 7 months ago #92823
by Xavier
Replied by Xavier on topic product page in pop up... add to cart display
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.
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.
13 years 7 months ago #92881
by Tracy
Replied by Tracy on topic product page in pop up... add to cart display
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.
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.
13 years 7 months ago #92934
by Xavier
Replied by Xavier on topic product page in pop up... add to cart display
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.
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.172 seconds