Viewing 15 replies - 1 through 15 (of 23 total)
  • Hi Thomas,

    Are you referring to the “Price” within the “sort by” dropdown menu of the front-end? If so, the translation is in the “Labelling” section, under sidebar, as “Price (Ascending) Label” and “Price (Descending) Label”.

    Thread Starter Thomymaster

    (@thomymaster)

    No i already found this option. What i mean is the translation in the article detail view. The value is always “price” followed by the value of the price.

    Thread Starter Thomymaster

    (@thomymaster)

    Please fix this, i think it shouldn’t be a very hard fix. Just add a box for the text under “Labelling” and use this as the value for “price”

    Hi Thomy,

    We thank you for the clarification. We will put the change for our following update release.

    Best regards,

    Etoile Web Design

    Plugin Author Rustaurius

    (@rustaurius)

    Hi Thomy,

    What “Article detail” view are you talking about? Can you post a screenshot or a link?

    Thread Starter Thomymaster

    (@thomymaster)

    I mean if you click on an article from either the details,list or thumbnail view.

    Then you will be redirected to the article in:
    -Tabbed View (translation of price is missing, price is in the upper right corner just with the value)
    -Custom View (there is only the price value, not the “price” label. I inserted a text box but i think a input in “Labelling” would be much better).

    The best solution would be if you then add the price label under “Labelling” before the actual price in the thumbnail, list and details view (if nothing is defined under “Labelling” then the label will be blank/doesn’t show up).

    Best,
    Thomas

    Plugin Author Rustaurius

    (@rustaurius)

    Hi Thomy,

    Quite a few users include things other than just a price value in the price field (“Ask for Quote”, “Contact us for price”, etc.).

    You can change the content of the price area by adding a custom filter. The filter hook for the price on the product pages is:

    upcp_product_page_price

    Thread Starter Thomymaster

    (@thomymaster)

    Thanks a lot for the hint but i think in any way it would be good to add a translation option under “labelling”.

    Best,

    Thomas

    Thread Starter Thomymaster

    (@thomymaster)

    And is there a hook available for modifying the price label on the thumbnail view (as well as on the list and details view)? ??

    Best,

    Thomas

    Thread Starter Thomymaster

    (@thomymaster)

    Hi

    I looket through the documentation of the wordpress filters, but i am unsure how to use it.

    Can you please give me an example and just replace “Price” with “Ask seller”, please ??

    The problem that i am having is that i don’t know the variable name that i have to modify in my custom function which is registered as a filter.

    Best,

    Thomas

    Plugin Author Rustaurius

    (@rustaurius)

    Hi Thomas,

    The filter for the price on the main catalogue pages would be “upcp_price_div”.

    Depending on what you’re looking to do, it would depend a bit. It would look something like:

    add_filter('upcp_product_page_price', 'Price_Filter', 10, 1);
    function Price_Filter($val) {
      return "Ask seller";
    }

    If could be more complicated, if you wanted to add some HTML around the text.

    Thread Starter Thomymaster

    (@thomymaster)

    Hi

    I have this here:

    add_filter('upcp_product_page_price', 'Price_Filter', 10, 1);
    function Price_Filter($val) {
      return "Price €:" . $val;
    }

    But i have some issues on the thumbnails view:
    -I want the “Price €” to be just before the value, instead now i see the value after a newline
    -the “Price €” is not (left-)aligned in the same way as the product description is. I want it to be in the same <div> as the price value (prod-cat-price and upcp-thumb-price css classes)

    How can i fix those 2 issues?

    Thread Starter Thomymaster

    (@thomymaster)

    And another issue for the tabbed product view:

    I also have
    add_filter('upcp_price_div', 'Price_Filter', 10, 1);

    But on the article page i have now:

    Limit €: (left-aligned)
    <blank line>
    <value> (right-aligned))

    I want the label and the value to be in the same line/in the same CSS class/same alignment.

    Plugin Author Rustaurius

    (@rustaurius)

    Hi Thomy,

    It might make more sense to also add more params to your filters and just re-write the HTML. Try this:

    add_filter('upcp_price_div', 'Price_Filter', 10, 2);
    
    function Price_Filter($val, $params) {
      return "<div class='whatever'>Price €: " . $params['Item_Price'] . "</div>";
    }
    Thread Starter Thomymaster

    (@thomymaster)

    This helped and now its working.

    But i am having another issue. When i insert the code, the tabs “details” and “contact us” are not shown anymore ??

    Best,

    Thomas

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘translation of price missing’ is closed to new replies.