The wishes can not be deleted

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #229305

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.26

Hello if you create a Wishlist then can not be deleted.
The administration may only.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
8 years 1 month ago #229311

Hi,

I'm sorry but I can't reproduce your issue in our demo website.
First, I checked that I don't have any wishlist, then I added one product to a wishlist and finally, in the listing of wishlist, I delete the wishlist (with success).
demo.hikashop.com/index.php/en/other-fea...s/cart_type-wishlist

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #229440

Hi, I tested your demo and there work. I shot video of the problem. Will point out that he just cancel the quantity but the list remains.
youtu.be/R-Rx0km5odQ

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

  • Posts: 81361
  • Thank you received: 13036
  • MODERATOR
8 years 1 month ago #229462

Hi,

Then the problem might come from your template. Rename the folder templates/YOUR_TEMPLATE/html/com_hikashop/cart/ via FTP and that will deactivate all the view overrides on the cart/wishlist manager of the frontend. Hopefully, the delete button will then work.

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

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #230017

Hello I apologize for the late reply I do not use override but put the older version - 2.6 everything works. The new watch more problems like the disappearance of the stars of assessment and error when switching from page 1 of 2 for example.

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

  • Posts: 13201
  • Thank you received: 2322
8 years 1 month ago #230032

Hi,

Please give us a test account to reach your website and process some tests.

Here are the informations for the stars:
www.hikashop.com/support/documentation/3...-hikashop-2-6-1.html

Regarding the page switching could you give us more informations ?

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

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #230423

Hello I managed to make some of the problems. Stars assessment came after redesing and the transition from one page to another is conflict with the template. There remains the problem of the wishlist. If I replace the files (showcart, showcarts ) from 2.6.0 running smoothly. I will send you a private message with access to the test site.

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

  • Posts: 13201
  • Thank you received: 2322
8 years 1 month ago #230480

Hi,

Please try to replace the line:

<a class="hikashop_no_print" href="<?php echo hikashop_completeLink('product&task=updatecart&stay=1&delete=1&quantity=0&cart_type='.$cart_type.'&cart_id='.$cart->cart_id.'&cart_product_id='.$cart->cart_product_id.'&return_url='.urlencode(base64_encode(hikashop_currentURL())).$url_itemid); ?>"  title="<?php echo JText::_('HIKA_DELETE'); ?>">
By:
<a class="hikashop_no_print" href="#" title="<?php echo JText::_('HIKA_DELETE'); ?>" onclick="var qty_field = document.getElementById('hikashop_product_quantity_field_<?php echo $cart->product_id;?>'); qty_field.value = '0'; <?php echo $input; ?> qty_field.form.submit(); return false;">

In the view "cart / showcart".

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

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #230559

Hi unfortunately no results.

Last edit: 8 years 1 month ago by neo191987.

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

  • Posts: 13201
  • Thank you received: 2322
8 years 1 month ago #230606

Hi,

To sum up, when you use the view from 2.6.0 everything is working fine, but with the 2.6.1 version of the "cart / showcart" view you can't delete a product, right ?

The code I gave is the only code modified between the two views which impact the way we delete the product.
So that should work, do you have any cache enabled on your website ?

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

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #230648

Hi everything works fine version 2.6.0.
In 2.6.1 button does not erase the desire but only canceled quantity.
In list view missing both the delete button and current.
I think not use caching.

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

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #230745

I was able to correct these problems by changing the code:
cart/showcart
from

<a class="hikashop_no_print" href="#" title="<?php echo JText::_('HIKA_DELETE'); ?>" onclick="var qty_field = document.getElementById('hikashop_product_quantity_field_<?php echo $cart->product_id;?>'); qty_field.value = '0'; <?php echo $input; ?> qty_field.form.submit(); return false;">
of
<a href="<?php echo hikashop_completeLink('product&task=updatecart&delete=1&quantity=0&cart_type='.$cart_type.'&cart_id='.$cart->cart_id.'&cart_product_id='.$cart->cart_product_id.'&Itemid='.$Itemid); ?>"  title="<?php echo JText::_('HIKA_DELETE'); ?>">

and cart//showcarts you miss some code that does not allow to display icons
$userCurrent = hikashop_loadUser();
of
$userCurrent = hikashop_loadUser(true);
if(isset($userCurrent))
	$userCurrent = $userCurrent->id;
else
	$userCurrent = 0;
and
<?php if($userCurrent){ ?>
of
<?php if($userCurrent != 0){ ?>

Last edit: 8 years 1 month ago by neo191987.

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

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #230946

Hello I want to ask you something else associated with the above problem. After the aforementioned correction everything works fine. Now I want to ask you delete a product from the module wishes product is not removed from wishlist but also be canceled quantity as before the adjustment. Maybe I dabble but should not work on the principle of the basket when he pushed the delete button to remove it completely from the list.

Last edit: 8 years 1 month ago by neo191987.

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

  • Posts: 13201
  • Thank you received: 2322
8 years 1 month ago #231024

Hi,

Sorry but I'm not sure to understand correctly this second issue.
Could you give me an example of the problem ? Was this working fine before the 2.6.1 version ?
If it is, you could potentially use the "old" view of "product / cart".

We will do more checks on this feature on our side.

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

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #231072

Hi problem is following in 2.6.1 action button to delete a product from wishlist is as follows when pressing the delete button he canceled quantity but does not remove the product from the list. When 2.6.0 the action is this when I press the delete button it removes it from the list as it should be. Right now I want to do so if possible and wishes module when pressing the delete button to remove it from the list and not canceled just quantity.

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

  • Posts: 410
  • Thank you received: 15
8 years 1 month ago #231076

I did exactly as I want. I will not occupying your attention more with that.
I wanted to do: youtu.be/eZ2BYwieIrk

Last edit: 8 years 1 month ago by neo191987.

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

  • Posts: 13201
  • Thank you received: 2322
8 years 1 month ago #231142

Hi,

Glad to see that you were able to make it work as expected.
We will see what is causing this issue in the 2.6.1 release.

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

Time to create page: 0.098 seconds
Powered by Kunena Forum