• WordPress version: 4.0.1
    WP eCommerce version: 3.9
    Gold Cart version: –
    Theme: default

    I’d rather not post the URL of the store, since it’s not public yet. But my question is simple: how can I change the language of the word ‘Price’ that appears next to products on the product page (“Price: XXX €”) and in the shopping cart (“Total price: XXX €”, under the list of products in the cart).

    I found a couple of threads with instructions on modifying the appropriate PHP files, but I think they referred to older versions of the plugin. I couldn’t find the lines of code mentioned.

    I also checked the translation file (Finnish translation), and all the references to “Price” seemed to have been translated already. That’s why I suspect that I need to alter the code. I just can’t find the right file to edit.

    Thanks in advance.

    https://wordpress.org/plugins/wp-e-commerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • /wp-content/plugins/wp-e-commerce/wpsc-components/theme-engine-v1/helpers/template-tags.php

    1633-1638

    $defaults = array(
    ‘id’ => $id,
    ‘old_price_text’ => __( ‘Цена в каталоге: %s’, ‘wpsc’ ),
    ‘price_text’ => __( ‘Price %s’, ‘wpsc’ ),
    /* translators : %1$s is the saved amount text, %2$s is the saved percentage text, %% is the percentage sign */
    ‘you_save_text’ => __( ‘Ваша экономия: %s’, ‘wpsc’ ),

    I was change this code, and translate in to Russian word “Price”. And save file in UTF-8!!

    Thread Starter empirebeige

    (@empirebeige)

    Thank you, that worked! No wonder I couldn’t find the right file.

    Is there a way to change the other text, meaning the “Total price: XXX” in the shopping cart widget? I didn’t see it in this PHP file.

    wp-content/plugins/wp-e-commerce/wpsc-languages/wpsc.pot – open in text editor and find all files

    #: wpsc-components/theme-engine-v1/templates/wpsc-shopping_cart_page.php:266
    #: wpsc-theme/wpsc-shopping_cart_page.php:273
    msgid “Total Price:”

    finally i found this solution thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translating the word "Price" in the frontend’ is closed to new replies.