Now we are on the right track!
Ok! Question…
- Do you use CODE in your setup?
a) If not → show your setup (pics) → describe your process-flow.
b) If you have already integrated some code on your site, related to your issue → show show it.
Your description could/should be like…
- When i am on my Product-Page, i do the following action + (pic)
- But when i do the action → something goes wrong.
- I did setup a redirect → pic of showing how you exactly did it
- Since i am not using CODE → i will present my SETUP in PICS and describe which elements are involved…
used-elements…
-button (id)
-dataset(dataset-id)
process-flow…
- my process starts with
2)…
3)…
4)… - and ends with the issue that i get a wrong redirection and it only works after refresh.
ADDITIONAL:
I have implemented some → CONSOLE-LOGS ← which maybe could help to solve the issue.
Ok, and now slowly!
- I understand that you are not familiar with wix.
- But you should udnerstand, that only you see your generated SETUP in front of you.
If you would have done everything by code → you just would have to show your code → so it would be easy to detect the issue very fast by code-investigation.
But since you do not use code and anybody can really see how you have contructed your setup, it is difficult to imagine what is going on, on your side. - This is why a more detailed description (including pics) would surely help much more to solve your problem.
You can also try to solve it on your own → by implementing some console-logs into your setup.
How to do?
- You activate the DEV-MODE (developer-mode) in your wix-editor ( already done? );
- You navigate to your product page (i asume that the product page is our starting point).
- Since you started the dev-mode, you now see more options in your wix-editor → now you are not only a DESIGNER, but also a → PROGRAMMER.
Let’s do some investigations…
- Add the following CODE into your Product-page…
$w.onReady(async function() {
$w('#productPage1').onReady(()=>{
get_myProduct();
});
});
function get_myProduct() {
$w('#productPage1').getProduct()
.then(async(product) => {
console.log("Product: ", product);
});
}
This should show you the current data of your product inside the console.
Try this first and show what you get…
If this information is not enough… take a look here…
…there you will find the full code of how to get PRODUCT-DATA logged into your CONSOLE.
How to use → CONSOLE <— ???
If you are using → GOOGLE-CHROME → PRESS-F12 ← and navigate to console.
Investigate the results.