- Posts: 16
- Thank you received: 1
Characteristics Options in add to cart popup- HELP
- amin.gomez
-
Topic Author
- Offline
Less
More
14 years 3 weeks ago - 14 years 3 weeks ago #64478
by amin.gomez
Characteristics Options in add to cart popup- HELP was created by amin.gomez
Hi, i don't want to go to the product page to choose the characteristic, how can i do to choose the characteristic in a popup iframe (like add to cart) in the product listing view, thanks!
Last edit: 14 years 3 weeks ago by amin.gomez.
Please Log in or Create an account to join the conversation.
14 years 2 weeks ago #64574
by nicolas
Replied by nicolas on topic Re: Characteristics Options in add to cart popup- HELP
Hi,
That's not possible. It would require a heavy code customization.
That's not possible. It would require a heavy code customization.
Please Log in or Create an account to join the conversation.
14 years 2 weeks ago #64575
by nicolas
Replied by nicolas on topic Re: Characteristics Options in add to cart popup- HELP
Although, I'm thinking that you could have something close to what you want by displaying the product page itself in a popup.
You would have to change the line:
$link = hikashop_completeLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway);
to:
$link = hikashop_completeLink('product&task=show&tmpl=component&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway);
and the code:
<a href="<?php echo $link;?>">
to:
<?php JHTML::_('behavior.modal'); ?>
<a href="<?php echo $link;?>" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" >
in the file listing_img_title of the view "product" via the menu Display->Views
You would have to change the line:
$link = hikashop_completeLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway);
to:
$link = hikashop_completeLink('product&task=show&tmpl=component&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway);
and the code:
<a href="<?php echo $link;?>">
to:
<?php JHTML::_('behavior.modal'); ?>
<a href="<?php echo $link;?>" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" >
in the file listing_img_title of the view "product" via the menu Display->Views
Please Log in or Create an account to join the conversation.
- amin.gomez
-
Topic Author
- Offline
Less
More
- Posts: 16
- Thank you received: 1
14 years 2 weeks ago #64701
by amin.gomez
Replied by amin.gomez on topic Re: Characteristics Options in add to cart popup- HELP
nicolas, i put the code but did not work, so you could help me with this solution?, would be excellent.
mercando.algom.co/index.php/mercar
mercando.algom.co/index.php/mercar
Please Log in or Create an account to join the conversation.
14 years 2 weeks ago #64705
by nicolas
Replied by nicolas on topic Re: Characteristics Options in add to cart popup- HELP
I don't see the code customization on your website. Please make sure that you're editing the view file for your front end template and not another one.
Please Log in or Create an account to join the conversation.
- amin.gomez
-
Topic Author
- Offline
Less
More
- Posts: 16
- Thank you received: 1
14 years 2 weeks ago #64723
by amin.gomez
Replied by amin.gomez on topic Re: Characteristics Options in add to cart popup- HELP
Please Log in or Create an account to join the conversation.
14 years 2 weeks ago #64725
by nicolas
Replied by nicolas on topic Re: Characteristics Options in add to cart popup- HELP
It's working fine when I click on the product name.
Now all your need is to remove the add to cart button with the corresponding option of your menu and change the second <a href="<?php echo $link;?>"> in the file so that the image also does the same as the name.
Now all your need is to remove the add to cart button with the corresponding option of your menu and change the second <a href="<?php echo $link;?>"> in the file so that the image also does the same as the name.
Please Log in or Create an account to join the conversation.
- amin.gomez
-
Topic Author
- Offline
Less
More
- Posts: 16
- Thank you received: 1
14 years 2 weeks ago - 14 years 2 weeks ago #64759
by amin.gomez
Replied by amin.gomez on topic Re: Characteristics Options in add to cart popup- HELP
thanks nicolas, i did everything yos said, and it works when i clic on the image and in the name of the product, but:
1) The client doesn't want to disable the add to cart button in that view
2) the "choose option" button keeps going to the product page.
3) in the popup the "add to cart" button gives me an error, but it send the product to the cart.
1) The client doesn't want to disable the add to cart button in that view
2) the "choose option" button keeps going to the product page.
3) in the popup the "add to cart" button gives me an error, but it send the product to the cart.
Last edit: 14 years 2 weeks ago by amin.gomez.
Please Log in or Create an account to join the conversation.
14 years 2 weeks ago #64828
by nicolas
Replied by nicolas on topic Re: Characteristics Options in add to cart popup- HELP
Note that I'm just trying to help you with some possible simple modifications.
This is already no support but customization and I already said in my first post that to do it right, it would require heavy customization.
The modifications were for the product name/image, not the choose options button. So that's normal that it keeps going to the product page.
You will have to do some more complex customization to the "quantity" file of the view "product" to have that button open the popup.
Indeed the add to cart button in the popup doesn't seem to work on your website. It's apparently because the "product successfully added to the cart" popup cannot display itself into another popup.
So you would have to change the corresponding option of the configuration to not have that notice popup after a product is added to the cart if you want to have that popup.
This is already no support but customization and I already said in my first post that to do it right, it would require heavy customization.
The modifications were for the product name/image, not the choose options button. So that's normal that it keeps going to the product page.
You will have to do some more complex customization to the "quantity" file of the view "product" to have that button open the popup.
Indeed the add to cart button in the popup doesn't seem to work on your website. It's apparently because the "product successfully added to the cart" popup cannot display itself into another popup.
So you would have to change the corresponding option of the configuration to not have that notice popup after a product is added to the cart if you want to have that popup.
Please Log in or Create an account to join the conversation.
- amin.gomez
-
Topic Author
- Offline
Less
More
- Posts: 16
- Thank you received: 1
14 years 2 weeks ago #64900
by amin.gomez
Replied by amin.gomez on topic Re: Characteristics Options in add to cart popup- HELP
nicolas thanks for your help, its very kind.
so, change the button ist possible but it's difficult, so, can we put a "go back" link in the product page, so when somebody open to the product page can easyly go back to where he was??
so, change the button ist possible but it's difficult, so, can we put a "go back" link in the product page, so when somebody open to the product page can easyly go back to where he was??
Please Log in or Create an account to join the conversation.
14 years 2 weeks ago #65004
by nicolas
Replied by nicolas on topic Re: Characteristics Options in add to cart popup- HELP
Yes. That's quite easy to do:
www.hikashop.com/en/forum/2-general-talk...on-product-page.html
www.hikashop.com/en/forum/2-general-talk...on-product-page.html
Please Log in or Create an account to join the conversation.
Time to create page: 0.251 seconds