• Resolved Peter Haller

    (@peterhaller)


    Hello@all,

    I am using Woocommerce in a multisite setup to have my homepage available 3 different Languages. The primary task for the Shop is for booking rooms in a small retreat Hotel. For this i need the option to have different own templates or shortcuts. Because i can not duplicate the room product in all 3 stores. I only have 4 rooms if i duplicate it i have 12 rooms. I cañot syncronice the bookings. So i want to create a own booking page in the main language, with different shortcodes in different languages. For example:

    shortcode [produkt_page id=123] show me the page with button text in DE

    My idea is now to have shortcode
    [product_page_en id=123] show the page with button text in EN and
    [product_page_es id=123] show the page with button text in ES.

    And for Cart and Checkout the same all codes in 3 Languages.

    I don´t want to use a plugin for translation. I have all Content and Produccts translated manually in all 3 Languages.

    What i need is a instruction for dummies to change the path in the existing php files for the templates or shortcodes to show the correct Language Text on the buttons or Messages int the cart or checkout Pages.

    Or if someone have a better idea for a resolution?

    Thank you so much for helping me.

    Peter Hallerr

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there @peterhaller

    I don´t want to use a plugin for translation. I have all Content and Produccts translated manually in all 3 Languages.

    From what I gather, you would like to have a trilingual WooCommerce store, without utilizing a plugin.

    Kindly note that, even with the product copy translated in 3 languages, there are further WooCommerce functionality pages that a customer needs to go through before placing an order, like Cart and Checkout.

    The primary task for the Shop is for booking rooms in a small retreat Hotel.

    Since that is the end goal for the site, my suggestion would be to go ahead with the following plugins, in order to implement it:

    For handling all 3 languages, feel free to check out a service like weglot.

    I trust that points you in the right direction, but if you have more questions, let us know. We’re happy to help.

    Thread Starter Peter Haller

    (@peterhaller)

    Hello Pepe

    | Using the 3 Plugins from Woocommerse for Booking
    I have installed all this 3 Plugins this is Running.

    My main Problem are the translation and Wording from the Different Button´s. One time it is Book now and one time it is red more and so on.

    For this my idea is to use the Short-Codes and Templates for checkout, chart, product_page with id on a one Custom Page.
    And then i will change the Wording on the button´s also in Custom Word´s.

    If this is done, i will do this for all 3 Languages.

    For this solution i need to now the which file i have to use for the different Short-Codes and Wordings. For the main languages

    2 Step after this i will copy the first solution in two different folders for EN and ES and use then the Short Code for ecxample. enchart for english users and eschart for spain user´s.

    Can you also tell me please the main php file which is use for the Main Shop Page.

    Thank you so much Pepe

    Best Regards from Dominican Republic

    Peter

    Hi @peterhaller

    My main Problem are the translation and Wording from the Different Button´s. One time it is Book now and one time it is red more and so on.

    Localization is the process of translating software and its files to a specific location, such as a country.

    Feel free to check out the related documentation page, linked here, on how to create WordPress translation files.

    Just to note, for the second part of your inquiry in your last message, the combination of “Loco Translate” (for translating strings) and “Polylang” (for mapping translated pages) plugins simplifies this process, in my opinion.

    Please let us know if you have any further questions about this matter, or if we misinterpret your concern in any way. We will be happy to help you further.

    Thread Starter Peter Haller

    (@peterhaller)

    Hi Pepe ones more thanks for your feedback.

    Your solutions are good for the automatic translation. But for me first of all connected with a purchase of a plug in. But these are not worth it for my small store.
    What I actually need is to know which file is responsible for the actual main page of the store.
    Then the files that are responsible for the shortcodes and the files that contain the texts for the buttons.
    I want to create my own pages with my own shortcodes.
    I want to copy the existing shortcodes into an own directory. Then rename them and use them in the different languages. Here I can also enter my own names as I need for the Buttons.

    Could you please tell me the files that are responsible for this. Thanks

    Kind regards

    Peter

    Hi @peterhaller

    Thanks for providing further informaoitn about your inquiry here.

    If I understand you correctly, you would like to create your own pages with your own shortcodes, correct?

    This is a fairly complex development topic that would require customization to do it. Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Hope this helps!

    Thread Starter Peter Haller

    (@peterhaller)

    Hello Xue, my idea is to use the existing Short-Codes and templates on one own site with one specified product. Then i will change the Button´s Text on a different language. For example EN or ES.

    1. site_name: ownproduct_en with product: room_en
    2. site-name: ownproduct_es with product: room_es

    For this sites i also want to use the own short-codes: product cart and checkout. As a copy from the existing one´s

    For this i should know which files i have to use or change for this project.

    Thank you

    Peter

    Hi there @peterhaller

    Thank you for reaching back, with further details on your inquiry.

    For this sites i also want to use the own short-codes: product cart and checkout. As a copy from the existing one´s

    Just to note, the shortcodes available with WooCommerce can be found in the page linked here.

    Furthermore, based on the following:

    I am using Woocommerce in a multisite setup to have my homepage available 3 different Languages. The primary task for the Shop is for booking rooms in a small retreat Hotel.

    +

    my idea is to use the existing Short-Codes and templates on one own site with one specified product. Then i will change the Button´s Text on a different language. For example EN or ES

    It appears you are needing help with customizations or troubleshooting WooCommerce and do not have a developer or company you can depend on.

    On top of the recommendations my colleague shared in a previous message here, we’ve got recommendations for you.

    Feel free to visit https://woocommerce.com/customizations/, with the above-mentioned project brief, to find the right agency or developer for your specific needs.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Using own Shortcode or Template’ is closed to new replies.