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 13 replies, has 2 voices.

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

Assigned support staff: Carlos Rojas.

Author Posts
June 26, 2019 at 10:18 am #4091389

francisJ

I am working in woo commerce project.I have a pop up section to add the product to the cart section.As given in the image uploaded when the currency switcher is in dollor(USD) and while adding a product to the cart the product is updating in the cart in default currency(AED).
Below given is the link hidden link

June 26, 2019 at 1:50 pm #4092915

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

I would like to ask you to follow this steps:
- Create a full backup of the site before making any change.
- Update all outdated plugins and themes, specially WPML plugins. Outdated functionalities can cause conflicts in the code.
- Flush any cache memory that might appear.

If the issue persists then:
- Deactivate all the plugins that are not related to WPML.
- Go to WPML -> Languages -> Activate the Ajax cookie.- > Save the changes.
- Switch for a moment to a WordPress default theme like Twenty Seventeen or Woocommerce Storefront theme.
- If the issue is gone, activate one by one to see with which one there is an interaction issue.

Could you tell me the result of this steps?

Kind regards,
Carlos

June 27, 2019 at 1:11 pm #4100161

francisJ

I have checked all the methods what you have written.But no change in result.

June 27, 2019 at 1:18 pm #4100317

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for your feedback.

In order to isolate the cause of the issue I have created a test site with a fresh new WordPress install, WPML, Woocommerce and WCML plugins.

I kindly ask you to finish the setup of Woocommerce and Woocommerce Multilingual. Also, please add the necessary theme, plugins and/or information to reproduce the issue.

You can access the test site using this link: hidden link

Looking forward to your message.
Best regards,
Carlos

June 28, 2019 at 9:10 am #4105823

francisJ

Hi, i have implemented the plugins and themes.Please find the below screenshot

July 1, 2019 at 6:52 am #4115891

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,
Thank you very much for your feedback.

I was able to reproduce the issue in the test site, however I updated Understrap to it latest versión and I can't see the Ajax add to cart functionality any more. Could you roll-back the Understrap update? Or let me know how to activate the Ajax add to cart in the new version of the theme?

Regards,
Carlos

July 5, 2019 at 4:50 am #4147469

francisJ

Dear Carlos,

Sorry for the late reply.i have done the roll-back of Understrap theme.Please see the below link for the Product Page.
hidden link
Can you Please look into it and let us know.

Regards

Akhil

July 5, 2019 at 10:18 am #4150137

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Akhil,
Thank you very much for your message.

I have escalated this ticket to our compatibility team. Our compatibility specialists will take a deeper look at this issue and will try to find a solution.

I will get back to you as soon as I have an answer.
Regards,
Carlos

July 8, 2019 at 4:42 am #4159029

francisJ

Dear Carlos,

Thank you for your response. Please let us know when a suitable solution is found for this issue.

Regards

Akhil

July 8, 2019 at 2:12 pm #4163347

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Akhil,

Yes, I will keep you updated of the evolution of this ticket.

Thank you very much for your understanding!
Regards,
Carlos

July 11, 2019 at 10:57 am #4188879

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Akhil,

Can you please describe how to enable the mini cart feature in the latest version of the theme? Is the issue still there?

Also, could you provide contact information of the theme's authors?

Regards,
Carlos

July 11, 2019 at 12:19 pm #4189643

francisJ

Hi Carlos,
We have customised the theme to provide the mini cart feature on the header section.Updating the theme might cause the loss of custom theme.
I am attaching the custom code what we had done.

add_filter('woocommerce_add_to_cart_fragments','woocommerce_header_add_to_cart_fragment');
function woocommerce_header_add_to_cart_fragment($fragments) {
    global $woocommerce;

    ob_start();
    ?>
    <a class="cart-customlocation" href="<?php echo wc_get_cart_url(); ?>" title="<?php _e('View your shopping cart'); ?>"><img src="<?php bloginfo('template_url'); ?>/img/bag-ico.png" alt=""> <span><?php echo $woocommerce->cart->get_cart_contents_count(); ?> <span>(<?php echo $woocommerce->cart->get_cart_total(); ?>)</span></span></a>
    <?php
    $fragments['a.cart-customlocation'] = ob_get_clean();
    return $fragments;
}
July 11, 2019 at 1:03 pm #4189973

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Akhil,

Thank you for your message, I just updated our compatibility specialists.

Regards,
Carlos

July 11, 2019 at 8:04 pm #4193017

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi Akhil,

Our compatibility specialists don't see anything obvious and they can't debug custom code as it falls outside of our scope as a support service.

At this point I can recommend you to contact one of our certified partners in this link: https://wpml.org/contractors/

Thank you very much for your understanding!
Regards,
Carlos