Can i publish a product in only one chosen language not the other language ?

  • Posts: 7
  • Thank you received: 0
7 years 11 months ago #273718

-- url of the page with the problem -- : decodynamik.com/en/shopping/categorie/48-produits-personnalises
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.3
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : opera 46.0.2597.39
-- Error-message(debug-mod must be tuned on) -- : none

We have products with french writing on it . Site in bilingual ( 2 different languages ). So, some products are irrelevant to english speaking visitors. How can we assign a specific product to a specific language ?
Any idea how to do this ?

Please Log in or Create an account to join the conversation.

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
7 years 10 months ago #273753

Hello,

What are you using to make the translation ?
If you're using a component like "falang" ; you can see to add "product_published" in the list of the fields that you can translate.
Thank to that, you can make the product unpublished in a specific language.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
7 years 10 months ago #273801

Hi Jerome,
Thank you for the answer.
We are using Falang in the free version.
Would it be possible that we'd have to upgrade to Falang pro to use this method because i can't see this "product_published" in the translation list ?

Please Log in or Create an account to join the conversation.

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
7 years 10 months ago #273814

Hello,

That field is not available by default ; but in Falang you can add new fields by editing a XML file. It's a kind of descriptor.
You will find the XML in the "administrator/components/com_hikashop/translations/" folder.
Afterwards, it's something related to Falang...

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
7 years 10 months ago #273938

Thank you again Jérome
The "product_published" was in the XML as you can see:
<?xml version="1.0" ?>
<joomfish type="contentelement">
<name>Hikashop Products</name>
<author>Hikari Software</author>
<version>1.0.0</version>
<description>Definition of products for the hikashop component</description>
<copyright>Copyright (C) 2009 Hikari Software SARL - All rights reserved.</copyright>
<reference type="content">
<table name="hikashop_product">
<field type="referenceid" name="product_id" translate="0">ID</field>
<field type="titletext" name="product_name" length="255" maxlength="255" translate="1">Product name</field>
<field type="htmltext" name="product_description" translate="1">Product description</field>
<field type="text" name="product_meta_description" length="255" maxlength="255" translate="1">Product meta description</field>
<field type="text" name="product_keywords" length="255" maxlength="255" translate="1">Product keywords</field>
<field type="text" name="product_url" length="255" maxlength="255" translate="1">Product url</field>
<field type="text" name="product_page_title" length="255" maxlength="255" translate="1">Product page title</field>
<field type="text" name="product_alias" length="255" maxlength="255" translate="1">Product alias</field>
<field type="text" name="product_canonical" length="255" maxlength="255" translate="1">Product canonical</field>
<field type="text" name="product_published" length="255" maxlength="255" translate="1">Product published</field>
</table>
</reference>
<translationfilters>
</translationfilters>
</joomfish>

But i is not in the translation box as you can see in the screen capture attached.
Am i missing something ?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83935
  • Thank you received: 13593
  • MODERATOR
7 years 10 months ago #273940

Hi,

You need to translate the product via the Falang interface in that case in order to get that extra option.
Also, it will require the development of a small HikaShop plugin implementing the onBeforeProductListingLoad trigger in order to add a join on the falang_content table to check the published state there for the products:
www.hikashop.com/support/documentation/6...reProductListingLoad
So it will require a developer working on that because with just the published state filled in Falang, the product won't be purchasable, but it will still be listed on the products listing regardless of the language.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum
loading