Characteristics Options in add to cart popup- HELP

  • Posts: 16
  • Thank you received: 1
11 years 7 months ago #64478

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: 11 years 7 months ago by amin.gomez.

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

  • Posts: 81562
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #64574

Hi,

That's not possible. It would require a heavy code customization.

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

  • Posts: 81562
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #64575

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

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

  • Posts: 16
  • Thank you received: 1
11 years 7 months ago #64701

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

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

  • Posts: 81562
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #64705

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.

  • Posts: 16
  • Thank you received: 1
11 years 7 months ago #64723

i was erased the code, but i added it again:

mercando.algom.co/index.php/mercar

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

  • Posts: 81562
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #64725

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.

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

  • Posts: 16
  • Thank you received: 1
11 years 7 months ago #64759

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.

Last edit: 11 years 7 months ago by amin.gomez.

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

  • Posts: 81562
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #64828

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.

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

  • Posts: 16
  • Thank you received: 1
11 years 7 months ago #64900

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??

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

  • Posts: 81562
  • Thank you received: 13071
  • MODERATOR
11 years 7 months ago #65004

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

Time to create page: 0.072 seconds
Powered by Kunena Forum