Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter stevemoretz

    (@stevemoretz)

    Thanks for the response, but WordPress cache by default is not persistence, so it’s not issue if you have a huge website or a small one, that’s why it doesn’t make sense to ask them.

    Thread Starter stevemoretz

    (@stevemoretz)

    I can suggest you another way of doing this as well, just get everything translatable (texts) and put them in post_content and put some space between those lines, also you can put {{whatever}} in there and the translation will ignore that, there you can put your id or a delimiter or whatever you need, and upon grabbing the meta value just grab these text parts from post_content and combine it.

    Probably this is the best and easiest way.

    But still I don’t know how you have implemented this, why post_content is even full do you even use that? do you save the values from there once? if you do you can do the same for all the languages.

    Let me know if you need help, I don’t have a lot of time to go through your code though.

    • This reply was modified 2 years, 5 months ago by stevemoretz.
    • This reply was modified 2 years, 5 months ago by stevemoretz.
    Thread Starter stevemoretz

    (@stevemoretz)

    I tried with:

    `<wpml-config>
    <custom-fields>
    <custom-field action=”translate”>_elementor_data</custom-field>
    </custom-fields>

    <custom-fields-texts>
    <key name=”_elementor_data”>
    <key name=”*”>
    <key name=”elements”>
    <key name=”*”>
    <key name=”elements”>
    <key name=”*”>
    <key name=”settings”>
    <key name=”title”/>
    </key>
    </key>
    </key>
    </key>
    </key>
    </key>
    </key>
    </custom-fields-texts>
    </wpml-config>

    But couldn’t get it working, you need to investigate this with wpml support.

    Remember all the huge websites are multilingual, so you wanna become huge too, don’t miss this important feature.

    For now I can make different emails templates for different languages it sucks but it’s a workaround.

    Thread Starter stevemoretz

    (@stevemoretz)

    Well it still doesn’t work though, I mean post_content column of wp_posts is translated successfully but it still showed the original language email.

    Then I traced your code and you use _elementor_data meta key to save your stuff and you don’t even use post_content.

    Here’s the meta value example:

    
    [{&quot;id&quot;:&quot;9bh3mgi&quot;,&quot;elType&quot;:&quot;section&quot;,&quot;settings&quot;:{&quot;structure&quot;:&quot;30&quot;,&quot;section_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[{&quot;id&quot;:&quot;63c00d0&quot;,&quot;elType&quot;:&quot;column&quot;,&quot;settings&quot;:{&quot;_column_size&quot;:33,&quot;_inline_size&quot;:31.161},&quot;elements&quot;:[{&quot;id&quot;:&quot;c3fd4c3&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;void_email_image&quot;:{&quot;id&quot;:422,&quot;url&quot;:&quot;http:\/\/oscarexchange-local.com\/wp-content\/uploads\/2022\/09\/Group-755.png&quot;},&quot;width&quot;:{&quot;unit&quot;:&quot;%&quot;,&quot;size&quot;:50,&quot;sizes&quot;:[]},&quot;advance_margin&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;0&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;20&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;15&quot;,&quot;left&quot;:&quot;20&quot;,&quot;isLinked&quot;:false},&quot;advance_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-image&quot;}],&quot;isInner&quot;:false},{&quot;id&quot;:&quot;a74778b&quot;,&quot;elType&quot;:&quot;column&quot;,&quot;settings&quot;:{&quot;_column_size&quot;:33,&quot;_inline_size&quot;:32.67},&quot;elements&quot;:[{&quot;id&quot;:&quot;c1cfbcb&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;title&quot;:&quot;01 January 2021&quot;,&quot;align&quot;:&quot;center&quot;,&quot;title_color&quot;:&quot;#1E1E1E&quot;,&quot;heading_font_size&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:10,&quot;sizes&quot;:[]},&quot;heading_line_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:20,&quot;sizes&quot;:[]},&quot;advance_margin&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;0&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;28&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;15&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-heading&quot;}],&quot;isInner&quot;:false},{&quot;id&quot;:&quot;65ae0a7&quot;,&quot;elType&quot;:&quot;column&quot;,&quot;settings&quot;:{&quot;_column_size&quot;:33,&quot;_inline_size&quot;:35.5},&quot;elements&quot;:[{&quot;id&quot;:&quot;1405be5&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;socials_link&quot;:[{&quot;social_link&quot;:{&quot;url&quot;:&quot;https:\/\/facebook.com&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;Facebook&quot;,&quot;_id&quot;:&quot;570c390&quot;},{&quot;select_social_media&quot;:&quot;twitter&quot;,&quot;social_link&quot;:{&quot;url&quot;:&quot;https:\/\/twitter.com&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;Twitter&quot;,&quot;_id&quot;:&quot;40a99dc&quot;},{&quot;select_social_media&quot;:&quot;linkedin&quot;,&quot;social_link&quot;:{&quot;url&quot;:&quot;https:\/\/linkedin.com&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;LinkedIn&quot;,&quot;_id&quot;:&quot;982c3d3&quot;},{&quot;select_social_media&quot;:&quot;pinterest&quot;,&quot;social_link&quot;:{&quot;url&quot;:&quot;#&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;Pinterest&quot;,&quot;_id&quot;:&quot;e41d55c&quot;},{&quot;select_social_media&quot;:&quot;youtube&quot;,&quot;social_link&quot;:{&quot;url&quot;:&quot;#&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;Youtube&quot;,&quot;_id&quot;:&quot;174668e&quot;}],&quot;text_align&quot;:&quot;right&quot;,&quot;size&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:24,&quot;sizes&quot;:[]},&quot;horizontal_space&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:2,&quot;sizes&quot;:[]},&quot;advance_margin&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;0&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;20&quot;,&quot;right&quot;:&quot;20&quot;,&quot;bottom&quot;:&quot;15&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-social&quot;}],&quot;isInner&quot;:false}],&quot;isInner&quot;:false},{&quot;id&quot;:&quot;xqu9bz4&quot;,&quot;elType&quot;:&quot;section&quot;,&quot;settings&quot;:{&quot;structure&quot;:&quot;30&quot;,&quot;section_background_color&quot;:&quot;#FFB66D&quot;,&quot;section_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[{&quot;id&quot;:&quot;8dd9ae7&quot;,&quot;elType&quot;:&quot;column&quot;,&quot;settings&quot;:{&quot;_column_size&quot;:33,&quot;_inline_size&quot;:null},&quot;elements&quot;:[{&quot;id&quot;:&quot;59aee31&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;title&quot;:&quot;Business News&quot;,&quot;title_color&quot;:&quot;#000000&quot;,&quot;heading_font_size&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:12,&quot;sizes&quot;:[]},&quot;heading_line_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:22,&quot;sizes&quot;:[]},&quot;advance_margin&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;0&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;20&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;20&quot;,&quot;left&quot;:&quot;20&quot;,&quot;isLinked&quot;:false},&quot;advance_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-heading&quot;}],&quot;isInner&quot;:false},{&quot;id&quot;:&quot;c140f85&quot;,&quot;elType&quot;:&quot;column&quot;,&quot;settings&quot;:{&quot;_column_size&quot;:33,&quot;_inline_size&quot;:null},&quot;elements&quot;:[{&quot;id&quot;:&quot;f21e23c&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;title&quot;:&quot;Sport News&quot;,&quot;align&quot;:&quot;center&quot;,&quot;title_color&quot;:&quot;#000000&quot;,&quot;heading_font_size&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:12,&quot;sizes&quot;:[]},&quot;heading_line_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:24,&quot;sizes&quot;:[]},&quot;advance_margin&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;0&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;20&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;20&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-heading&quot;}],&quot;isInner&quot;:false},{&quot;id&quot;:&quot;4cbda02&quot;,&quot;elType&quot;:&quot;column&quot;,&quot;settings&quot;:{&quot;_column_size&quot;:33,&quot;_inline_size&quot;:null},&quot;elements&quot;:[{&quot;id&quot;:&quot;a239081&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;title&quot;:&quot;Business News&quot;,&quot;align&quot;:&quot;right&quot;,&quot;title_color&quot;:&quot;#000000&quot;,&quot;heading_font_size&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:12,&quot;sizes&quot;:[]},&quot;heading_line_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:24,&quot;sizes&quot;:[]},&quot;advance_margin&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;0&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;20&quot;,&quot;right&quot;:&quot;20&quot;,&quot;bottom&quot;:&quot;20&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-heading&quot;}],&quot;isInner&quot;:false}],&quot;isInner&quot;:false},{&quot;id&quot;:&quot;lz1rxs1&quot;,&quot;elType&quot;:&quot;section&quot;,&quot;settings&quot;:{&quot;section_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[{&quot;id&quot;:&quot;bcc6cbc&quot;,&quot;elType&quot;:&quot;column&quot;,&quot;settings&quot;:{&quot;_column_size&quot;:100,&quot;_inline_size&quot;:null},&quot;elements&quot;:[{&quot;id&quot;:&quot;85da42f&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;title&quot;:&quot;{{title}}&quot;,&quot;title_color&quot;:&quot;#000000&quot;,&quot;heading_font_size&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:22,&quot;sizes&quot;:[]},&quot;heading_line_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:34,&quot;sizes&quot;:[]},&quot;advance_margin&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;30&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;0&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;20&quot;,&quot;isLinked&quot;:false},&quot;advance_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-heading&quot;}],&quot;isInner&quot;:false}],&quot;isInner&quot;:false},{&quot;id&quot;:&quot;bouw9kc&quot;,&quot;elType&quot;:&quot;section&quot;,&quot;settings&quot;:{&quot;section_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[{&quot;id&quot;:&quot;addd3c4&quot;,&quot;elType&quot;:&quot;column&quot;,&quot;settings&quot;:{&quot;_column_size&quot;:100,&quot;_inline_size&quot;:null},&quot;elements&quot;:[{&quot;id&quot;:&quot;a290498&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;text_editor&quot;:&quot;<p>{{content}}<\/p>&quot;},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-text-editor&quot;},{&quot;id&quot;:&quot;91ea0eb&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;socials_link&quot;:[{&quot;social_link&quot;:{&quot;url&quot;:&quot;https:\/\/facebook.com&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;Facebook&quot;,&quot;_id&quot;:&quot;a9e642b&quot;},{&quot;select_social_media&quot;:&quot;twitter&quot;,&quot;social_link&quot;:{&quot;url&quot;:&quot;https:\/\/twitter.com&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;Twitter&quot;,&quot;_id&quot;:&quot;6d5fc25&quot;},{&quot;select_social_media&quot;:&quot;instagram&quot;,&quot;social_link&quot;:{&quot;url&quot;:&quot;https:\/\/www.instagram.com\/&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;Instagrm&quot;,&quot;_id&quot;:&quot;2dbba00&quot;},{&quot;select_social_media&quot;:&quot;pinterest&quot;,&quot;social_link&quot;:{&quot;url&quot;:&quot;https:\/\/www.pinterest.com\/&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;pinterest&quot;,&quot;_id&quot;:&quot;b89fb98&quot;},{&quot;select_social_media&quot;:&quot;youtube&quot;,&quot;social_link&quot;:{&quot;url&quot;:&quot;https:\/\/www.youtube.com\/&quot;,&quot;is_external&quot;:true,&quot;nofollow&quot;:true,&quot;custom_attributes&quot;:&quot;&quot;},&quot;social_name&quot;:&quot;Youtybe&quot;,&quot;_id&quot;:&quot;519d32d&quot;}],&quot;social_icon_style&quot;:&quot;solid\/dark-&quot;,&quot;text_align&quot;:&quot;center&quot;,&quot;size&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:25,&quot;sizes&quot;:[]},&quot;advance_margin&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;25&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;20&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_background_color&quot;:&quot;#F2F2F2&quot;,&quot;advance_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-social&quot;},{&quot;id&quot;:&quot;af93f2f&quot;,&quot;elType&quot;:&quot;widget&quot;,&quot;settings&quot;:{&quot;footer_address&quot;:&quot;\u00a9 Elemailer. | House No. 08 ( 2nd floor ) | Road No. 2, Jahrul Islam City, Block C, Dhaka&quot;,&quot;ft_color&quot;:&quot;#4A4A4A&quot;,&quot;ft_font_size&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:9,&quot;sizes&quot;:[]},&quot;unsbscribe_text&quot;:&quot;Email Preferences&quot;,&quot;manage_sbscription_text&quot;:&quot;Privacy Policy&quot;,&quot;unsubscribe_color&quot;:&quot;#4A4A4A&quot;,&quot;unsubscribe_font_size&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:8,&quot;sizes&quot;:[]},&quot;advance_margin&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;0&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;0&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_padding&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;top&quot;:&quot;20&quot;,&quot;right&quot;:&quot;0&quot;,&quot;bottom&quot;:&quot;21&quot;,&quot;left&quot;:&quot;0&quot;,&quot;isLinked&quot;:false},&quot;advance_background_color&quot;:&quot;#F2F2F2&quot;,&quot;advance_background_image&quot;:{&quot;url&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}},&quot;elements&quot;:[],&quot;widgetType&quot;:&quot;elemailer-footer&quot;}],&quot;isInner&quot;:false}],&quot;isInner&quot;:false}]
    

    You probably need to support it this way:
    https://wpml.org/documentation/support/language-configuration-files/#2-1-translating-sub-keys-in-custom-fields

    acf repeater example:
    https://wpml.org/forums/topic/xml-config-option-to-translate-repeater-custom-fields/

    depending on your implementation you’d need something like that, you just need to know under which json keys you put the text parts?

    Thread Starter stevemoretz

    (@stevemoretz)

    That’s some deeper thinking which I didn’t do ??
    Sorry sounds like my request doesn’t make much sense.

    Thread Starter stevemoretz

    (@stevemoretz)

    Thank you so much for this great information! I would love to see your skeleton code here, once you decided it’s ready even if it doesn’t end up in the docs (which hopefully it does).

    BTW I could not find my rating (it was 4 stars) to change to 5, I added another rating with 5 stars if there is a problem please send me the link of my old review to make that 5 as well.

    Thread Starter stevemoretz

    (@stevemoretz)

    Thank you!
    Just wanted to make sure that is not a bug.

    Thread Starter stevemoretz

    (@stevemoretz)

    https://pasteboard.co/JU4eYWe.png

    in my-account page stuff are not updated.
    In checkout they are always on the new chosen location (eg : UK,even from different browsers).

    so I guess If addresses are changed in checkout forms will not update database.
    But how to force it to update?
    (And by the way where are these saved? It’s interesting that I have no idea where they are saved).

    Because tax are calculated based on the checkout address right now.
    Database has different address I’m getting a different address on my phone app,
    Therefore I get different taxes on website and app for the same user.

    Please let me know how to force billing and shipping addresses to be updated after they are changed anywhere else than my-account.Like the page before process to checkout and checkout, And anywhere else I don’t know about.

    • This reply was modified 3 years, 12 months ago by stevemoretz.
    Thread Starter stevemoretz

    (@stevemoretz)

    Thanks Ross
    I thought it was a simple one liner code or something.

    So you provide the rest api, but if the customer needs to pay, then how can he pay?I’m a little confused.

    Thread Starter stevemoretz

    (@stevemoretz)

    No problem still possible.

    Since you store the type in a file or database you already can get the type user is using.Like memcached.

    So now you don’t have WordPress but you know you have to use memcached,so all you need is to use memcached.

    Again things could be simple using Illuminate/Database a component from symfony which laravel uses,it already supports memcached as a driver and can get infinite drivers integrated with it.

    So still without using WordPress you can totally do this.

    If there isn’t any other problem though?

    • This reply was modified 4 years, 2 months ago by stevemoretz.
    Thread Starter stevemoretz

    (@stevemoretz)

    It’s actually possible.
    Transients are stored in wp_options table you can access it via raw Php,other than that you could use corcel which makes it pretty easy to work with WordPress using its database using laravel features.

    Currently I gave up on WordPress rest api and woocommerce rest api which takes 2 seconds to load, installed corcel now it takes 200 ms to load.

    Thread Starter stevemoretz

    (@stevemoretz)

    I know what you are talking about but this is not a problem in this specific case what I’m saying is that you can know what the request contains without loading the WordPress at first if the request was already cached then just return the results otherwise load the WordPress.

    If the request was already cached you already return the results right?

    Why not check and return it even earlier?

    Thread Starter stevemoretz

    (@stevemoretz)

    Oh thank you so much!

    So now it’s a lot more simple all I need is to checkout without going to cart and because all I have is that product so I’ll sell only that one.

    Nice stuff.Thank you so much.

    Thread Starter stevemoretz

    (@stevemoretz)

    I’m not sure I understand how it will work,would you please firstly give me a screenshot or some clue where that is?

    Secondly so if I have some items in the card and now I add a subscription item,what happens? Those items will get removed and only this one stays?

    Would you make it more clear thank you.

    Thread Starter stevemoretz

    (@stevemoretz)

    Fantastic explanations,never had such a complete reply from anybody anywhere,Thanks for all the details provided.You’re amazing.

Viewing 15 replies - 1 through 15 (of 18 total)