So if you reload step 2 where you add these info they are shown there right? Just added the mobile field to the demo site and it works - check it out before 04:00 tonight (CET) as it will reset there. Just add a product to the cart and write mobile number in step 2 and reload step 2 and see the value is there. Then you need to add the same value in e.g. step 4 to show it there. Tea Commerce doesnt know which info you have added so you need to configure your templates.
I can see it working on the demo and my code matches, but it's still not persisting for some reason.
I add the field, navigate to the page, add in my mobile number save, but it doesn't appear on the subsequent page (I've added the field there to output) nor does it appear when I reload the initial page.
Is there any javascript errors? Do your DB have the right permissions to save to the DB? Try and check if there is any info in the Chrome debug tool that can tell you about what happens.
No js errors
I'll check the db user has the correct permissions - its the same as the umbracodsn, and i can create new pages etc, so don't think its that
Then try and add the mobile option and see if you can get that working. If that works, then you know it has something to do with your setup or the code on your site and you can try compare how things are done.
AddOrUpdateOrderProperties - new property not persisting?
TC V3
Followed docs here: https://documentation.teacommerce.net/html-api/order- property/addorupdateorderproperties/
Trying to add a Mobile field like so:
other fields here....
But nothing happens - on the subsequent pages, this value isn't being shown
Tried setting the id to jus 'mobile' but not working either
Any ideas?
Thanks
So if you reload step 2 where you add these info they are shown there right? Just added the mobile field to the demo site and it works - check it out before 04:00 tonight (CET) as it will reset there. Just add a product to the cart and write mobile number in step 2 and reload step 2 and see the value is there. Then you need to add the same value in e.g. step 4 to show it there. Tea Commerce doesnt know which info you have added so you need to configure your templates.
Kind regards
Anders
Hi Anders
I can see it working on the demo and my code matches, but it's still not persisting for some reason.
I add the field, navigate to the page, add in my mobile number save, but it doesn't appear on the subsequent page (I've added the field there to output) nor does it appear when I reload the initial page.
Any clues as to the issue?
Thanks
Is there any javascript errors? Do your DB have the right permissions to save to the DB? Try and check if there is any info in the Chrome debug tool that can tell you about what happens.
Kind regards
Anders
No js errors I'll check the db user has the correct permissions - its the same as the umbracodsn, and i can create new pages etc, so don't think its that
Try and download the starter kit from Github - hit F5 and see that everything is working. Download the dev branch as that is the most up to date. https://github.com/TeaCommerce/Starter-kit-for-Umbraco/tree/dev
Then try and add the mobile option and see if you can get that working. If that works, then you know it has something to do with your setup or the code on your site and you can try compare how things are done.
Kind regards
Anders
is working on a reply...