Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem: I am using DIVI and WPML and woocommerce, I have two problems :
the first one is that most of my page created with divi are working find in my first language (French) https://www.beberet.com/berets-sidney/
but do not work on my second language (English). https://www.beberet.com/en/sidney-berets/
My second problem is I can't edit my products if there are not a DIVI product it give me an Internal Server Error

Solution: Could you please do the following:
- Make a full backup of your site.
- Open your /Divi/includes/builder/module/Shop.php file.
- Find:

if ( et_()->includes( array_keys( $wc_custom_views ), $type ) ) {
            $wc_custom_view = "{$wc_custom_views[ $type ]}=\"true\"";
        }

- Add after it

$product_categories = array_keys($product_categories);

Relevant Documentation:

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 4 replies, has 3 voices.

Last updated by Carlos Rojas 9 months, 1 week ago.

Assigned support staff: Carlos Rojas.

Author Posts
October 27, 2019 at 4:55 pm

yashaK

Hello I am using DIVI and WPML and woocommerce, I have two problems :
the first one is that most of my page created with divi are working find in my first language (French) hidden link
but do not work on my second language (English). hidden link
My second problem is I can't edit my products if there are not a DIVI product it give me an Internal Server Error

October 29, 2019 at 8:50 am #4844887

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting WPML support.

I tried to log in the site but the credentials didn't work. I have set your next message private so you can provide the access credentials again.

Looking forward to your message.

Kind regards,
Carlos

October 29, 2019 at 9:45 am #4845479

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Could you please do the following:
- Make a full backup of your site.
- Open your /Divi/includes/builder/module/Shop.php file.
- Find:

if ( et_()->includes( array_keys( $wc_custom_views ), $type ) ) {
			$wc_custom_view = "{$wc_custom_views[ $type ]}=\"true\"";
		}

- Add after it

$product_categories = array_keys($product_categories);

Regards

October 29, 2019 at 7:15 pm #4851239

yashaK

My issue is resolved now. Thank you!

October 30, 2019 at 8:12 am #4853227

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi there,

I'm glad to hear that the issue is solved 🙂

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos