Author Topic: When I want to delete item from the BASKET nothing happens  (Read 2704 times)

Offline rumen

  • Posts: 399
When I want to delete item from the BASKET nothing happens
« on: October 06, 2017, 10:24:07 AM »
Hi there,
I installed Bakery last ver. 1.83 under WB 2.10 still don't know if everything else working, but at the beginning I see  that when I want to delete item from the BASKET with the red "X" the system redirect me to the home page but in the BASKET still the item exist. The site is in BG but you can check it here http://lystoto.com/. I made a test to put the quantity to 0 and refresh the cart - in that case the item dissapeared.

Can someone tell me how to clear that and fix it?

Thanks in advance!

Regards,

Rumen

Offline dbs

  • Betatester
  • **
  • Posts: 7907
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: When I want to delete item from the BASKET nothing happens
« Reply #1 on: October 06, 2017, 11:10:04 AM »
Hi, no solution.
But your bakery lightbox2 scripts point to http://localhost/wb283/

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #2 on: October 06, 2017, 11:34:08 AM »
check, that your bakery-frontend.js is loaded

solution 1:
control filter settings  - admintools -> output filter -> activate FrontendJS

solution 2:
use register_frontend_m odfiles in your template - head-area (JQuery is optional , deactivate (if not needed) with # in front of this line

with

Code: [Select]
<?php
// automatically include optional WB module files (frontend.css)
    
echo register_frontend_modfiles('css'true);
    echo 
register_frontend_modfiles('jquery'false); // optional
    
echo register_frontend_modfiles('js'false);
?>
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #3 on: October 06, 2017, 02:31:14 PM »
Hi, no solution.
But your bakery lightbox2 scripts point to http://localhost/wb283/

I don't know why ... the site using 2.10.  Uf and there is no any workaround?

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #4 on: October 06, 2017, 02:33:26 PM »
FrontendJS is activated.

The code is entered:

Code: [Select]
<?php
// automatically include optional WB module files (frontend.css)
    
echo register_frontend_modfiles('css'true);
    echo 
register_frontend_modfiles('jquery'false); // optional
    
echo register_frontend_modfiles('js'false);
?>

But no result. Very strange. When I set # of items to 0 everything is OK, but when I delete with "X" nothing happened.

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #5 on: October 06, 2017, 03:27:13 PM »
do you have the same problem on the english language?

what i see in the test: i can delete items in the basket, if there are from the same product-group, for example: if i call the shop from the buket-page, i can delete all buket-items, but not items from another group like items from page saksii.php

so my question (for me):
is it a problem with the kyrillic letters for the items?

or is it a link-problem, because some item on the start page http://lystoto.com/ have a different adress like http://lystoto.com/pages/bakery/snimka-na-drvo-14.php, but in the basket then a new adress -> http://lystoto.com/pages/rkodelie/snimki-vrxu-drvo.php
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #6 on: October 06, 2017, 07:10:54 PM »
English, Bulgarian never mind the problem is one and the same.

Here I attach 2 ZIP files with 7 screenshots and written explanations.


Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #7 on: October 06, 2017, 07:14:30 PM »
OK and here is the second part of the screenshots - 2nd ZIP files

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #8 on: October 06, 2017, 10:51:50 PM »
i say it again - it works for me on the testdomain http://lystoto.com/
but not in every case - see my last answer

technical info
if you push the X in the basket, the script call the function mod_bakery_delete_item_f, defined in frontend.js
this function set the content of this input field (how many items) to zero and reload the page. the combination zero items + submitted ID=update for this item-ID delete this item from the basket.
all this is visible on the domain http://lystoto.com/ - click on the X change the item-counter in the basket to 0, a little moment later starts the redirect or reload

i cannot look to your local domain, but it works online
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #9 on: October 06, 2017, 10:57:37 PM »
And what happens if after you delete item and you are redirected  and you back to the Basket from the link in the right upper corner is the product still there?

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #10 on: October 06, 2017, 11:21:30 PM »
its a crazy thing....

if i add only a single item into the basket, it's not possible to me, to delete this item
but if i add more then one item into the basket, i can delete every item from the basket

is it possible, that this problem only exist for a special item group?? Not possible, to delete this item Кошница с цветя 1 from the basket, if it's a single item in the basket, but no problem with other items
thats why i ask for another language

if i do the same on my locale machine, every thing works without problems  :-o :-o
single or multiple items - no problem - but i dont have items with kyrillic letters

i'll look tomorrow to the code for this process and try it with items in your language
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #11 on: October 06, 2017, 11:27:29 PM »
I will send you the site to your e-mail - it will be much more easy for you.

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #12 on: October 07, 2017, 10:24:34 AM »
received and works, everything works, but i'm missing the module folder, it's not part of the ZIP-File. is it possible, to send me a zip from the folder "modules"??
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #13 on: October 07, 2017, 11:36:17 AM »
pls change the URL to the basket in your template index.php // Ln 125 to the target and parent page svetja.php
link: http://lystoto.com/pages/cvetja.php?view_cart=yes
(actual in goes to svetja/buketi.php)

and try again
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #14 on: October 07, 2017, 11:58:33 AM »
I changed the link with this one http://lystoto.com/pages/cvetja.php?view_cart=yes but in this case the link for mini cart doesn't call the basket.

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #15 on: October 09, 2017, 02:47:20 PM »
the storm from the last week tooks me the half of my house roof, a lot of work over the weekend   :|

i take a look into the code  and into the database. if i add a new item, doesn't matter, what single shop i use, make's a entry in the database, table mod_bakery_orders and change the stock for this item in table mod_bakery_items

now the basket: if i delete there one item, it change via javascript the value for this item counter to zero and send's the formular to view.php with the order = update_cart. this part of code read's the table mod_bakery_items and takes from there the title and the stock. then the script goes to the table mod_bakery_orders and takes from there the quantity of this item and add this quantity to the stock, because, you cancel this order.

you dont use the stock and also not the SKU (article number), so it is not possible to change this stock, because, your value (empty in database) is not a numeric value.
For this Case, the script in view.php has a switch (~ line 360) ->// Case: No out of stock orders
the quantity in the basket com's from the form, if you update the basket. the script read's the quantity from the table mod_bakery_orders and calculate the difference to the submitted quantity (zero) from the basket, but you dont have any quantity, but only if the difference is short by stock, the script update the basket

my recommendation: use a stock for all items. its possible, to set this stock for every item to a number with 20 letters like 10.000.000.000.000. 000.000, i use (in the most cases) a number with 100.000 (without Point - numeric format) and check this from time to time. maybe it's important for the shop owner, that nobody buy this article, if not avaiable in the stock in reality, but also possible, that all items every time avaiable (for the next 10 years), but then use a high value for the stock, like a million or more, doesn't matter, but enough for the next 10 years.
From my point of view, the stock is important for the calculation of everything.

P.S.: single shop or multiple shop's like your has nothing to do with the problem, important for the Order is only the order-id and this works with a session, unique for every visitor
the link to the basket must go to one of the shop-pages like buketi.php, it doesn't matter, what shop - it was wrong in my last post, because, i use a different construct in my test area - sorry for trouble

if it's not work with a stock and you have the same problems, pls check the database table mod_bakery_orders before and after you delete a item in the basket. Maybe, we've to look in this code in view.php ~ln 360 ff and add some control output's, what the script does or not
« Last Edit: October 09, 2017, 02:58:06 PM by jacobi22 »
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #16 on: October 09, 2017, 04:03:23 PM »
OK I will try to put SKU and Stock values.

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #17 on: October 09, 2017, 05:27:07 PM »
error message (send via email) looks like a Problem with the used Version PHP 5.4.45
is it possible, to use a newer version > PHP 5.5??
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #18 on: October 09, 2017, 05:57:10 PM »
Yes I can eevn go up to 7 if the WB support it?

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #19 on: October 09, 2017, 06:00:40 PM »
no problem for WB and the modules in the WB-Package, but maybe with other modules in your project
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #20 on: October 09, 2017, 06:14:37 PM »
I don't have other modules :) so we go up to 7.1

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #21 on: October 10, 2017, 12:06:10 AM »
the backup say, you use also other modules too like slideshow, code², miniform
i'm not sure, that this modules work's also in the latest php-version
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #22 on: October 10, 2017, 06:43:47 AM »
I can report.
For the momnet works:
-code2
-slideshow
-miinform
Others didn't tested yet.  The only issue still remains the basket in the bakery :( on my computer (I'm using Linux Ubuntu 64 bits with Chrome, Mozila, Chromium, Arora, Qupzila and Rekonq browsers) everywhere rhe basket doesn't delete items. Yesterday try to made the same with Windows via VmWare PLayer - Win7 32 bits - same issue.

Offline jacobi22

  • Posts: 5836
  • Gender: Male
  • Support also via PM or EMail
    • Jacobi22
Re: When I want to delete item from the BASKET nothing happens
« Reply #23 on: October 10, 2017, 11:40:59 AM »
Quote
The only issue still remains the basket in the bakery on my computer
you have it only on the local machine????
have you check the database before and after you delete a single item in the basket?
Probleme sind da, um sie zu lösen, nicht, um nach Ausreden zu suchen.

Offline rumen

  • Posts: 399
Re: When I want to delete item from the BASKET nothing happens
« Reply #24 on: October 10, 2017, 12:28:12 PM »
No I delete everything from the lcal machine, now everything is here: http://lystoto.com/

 

postern-length