Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOTAL doesn't work #6

Closed
dragoncity17 opened this issue Oct 20, 2021 · 15 comments
Closed

TOTAL doesn't work #6

dragoncity17 opened this issue Oct 20, 2021 · 15 comments

Comments

@dragoncity17
Copy link

Before work, and now doesn't work like you can see :
téléchargement

Thank you in advance for fix ! :)

Your script is very good ! :)

@AndShy
Copy link
Owner

AndShy commented Oct 20, 2021

idk what's wrong in your browser, but script still working for me.
Vivaldi 4.3.2439.44 (Stable channel)
image
old opera 58.0.3135.127:
image
same with EU VAT version of script

attach log file from dev console: F12 -> console tab -> RMB in console -> save as...

@AndShy
Copy link
Owner

AndShy commented Oct 20, 2021

also log out from aliexpress and attach file with DOM elements: F12 -> elements tab -> select <html .........> line -> RMB ->copy -> copy outerHTML -> save copied text in txt file

@dragoncity17
Copy link
Author

dragoncity17 commented Oct 20, 2021

I use chrome.

Strange because before work.. and now no... o_O

I went to console... maybe you will find the problem .

(I saw you are french like me ! :) )

zzzzz
:

@dragoncity17
Copy link
Author

azeazaza

@AndShy
Copy link
Owner

AndShy commented Oct 20, 2021

(I saw you are french like me ! :) )

absolutely no :)

if you want to do it by yourself then check this elements on ali item page:

        ('div.product-sku');
        ('span.next-input.next-medium.next-input-group-auto-width > input');
        ('div.product-shipping');
        ('a#switcher-info > span.currency')
        ('span.product-price-piece');
        ('div.product-shipping-price > span.bold');
        ('span.next-input.next-medium.next-input-group-auto-width > input');
        ('span.product-price-value');

ali regulary change class names and script stop working. but atm I can only knew a problem on russian page, but russian version almost independent version of aliexpress.

@AndShy
Copy link
Owner

AndShy commented Oct 20, 2021

important elements

image
image
image
image
image

@dragoncity17
Copy link
Author

Ok I found... because it worked with an chrome portable.

In fact it was "cookies" the problem, I delete ALL and now work.

Thank you for your help and your amazing script ! :)

@AndShy
Copy link
Owner

AndShy commented Oct 20, 2021

you're welcome. also you can try to enable extension in private mode (tampermonkey).

@dragoncity17
Copy link
Author

For information need to block "cna" cookies with "EditThisCookies" extension.
If not every time doesn't work.

@AndShy AndShy reopened this Oct 27, 2021
@AndShy
Copy link
Owner

AndShy commented Oct 27, 2021

Aliexpress randomly for some users changes style, so in your case (and now in mine too. only in one browser) "ali total price" won't work.
image
Ali changed only shipping cost block, so I fixed script. Atm script in WIP stage until aliexpress permanently change style.
Ali_Total_Price.user_2.10_WIP.js
copy code and replace it in tampermonkey manually.

@AndShy
Copy link
Owner

AndShy commented Oct 27, 2021

another small fix for
var quantInpEl = document.querySelector('span.next-input.next-medium.product-price-value > input');
in to
var quantInpEl = document.querySelector('span.next-input.next-medium.next-input-group-auto-width > input');
(quantity observer)
same link.

@AndShy
Copy link
Owner

AndShy commented Oct 27, 2021

another fixes for fixes 😄
hope final one
same link

@dimmuboy
Copy link

Works for me

@Oskimark
Copy link

can someone helpme modify the script to make it work now?
seems like ali changed the code again

@AndShy
Copy link
Owner

AndShy commented Jul 14, 2022

WIP version with fixes released to master branch

@AndShy AndShy closed this as completed Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants