Поддержка Проблемы и решения Как убрать цену?

  • Помогите пожалуйста убрать цену в плагине e-commerce. Я нашел похожую тему: E-commerce — убрать цену Но самого файла «product_display_functions.php» , в котором создатель той темы удалил строчки и цена исчезла у меня просто нет. Как можно убрать цену в этом плагине? Хотя бы просто чтобы ее не было видно, я как-то уменьшил шрифт до 0.1 и все получилось, но это было давно и теперь не могу вспомнить где это делал.

Просмотр 4 ответов — с 1 по 4 (всего 4)
  • Неужели никто не знает как мне помочь в этой ситуации?

    Нашел нужную тему на зарубежном форуме: Hi Guy,

    Simple enough, there are a few places that price gets inserted, so go through the theme files that you are using…

    I am using the ‘default’ theme, so I looked in that theme’s folder under ‘plugins/wp-e-commerce/themes/default, and on line 145 in single_product.php, you will find the line:

    <span id=»product_price_<?php echo wpsc_the_product_id(); ?>» class=»pricedisplay»><?php echo wpsc_the_product_price(); ?></span><?php echo TXT_WPSC_PRICE; ?>:

    that is the line that displays «Price:» and the price.

    if you don’t want to remove the whole line, and merely want to just hide the text that would be echoed, edit out like so:

    <span id=»product_price_<?php echo wpsc_the_product_id(); ?>» class=»pricedisplay»><?php //echo wpsc_the_product_price(); ?></span><?php //echo TXT_WPSC_PRICE; ?>

    remembering to remove the ‘:’ that was before the directly above.

    Now, on single product pages, you should find no prices.

    The same goes for any other prices that you want to remove, look for the above function call — wpsc_the_product_price(); and remove it.

    Hope that helps for anyone in the future, sorry my reply came so late, but I’ve only just stumbled on this thread!

    James

    Выполняю все действия, но с ценой ничего не происходит, стоит на своем месте как и прежде… Неужели это такая серьезная проблема, убрать отображение цены?

    Нашел еще одну тему на зарубежном сайте, все доходчиво и подробно расписано, но у меня не работает этот способ… http://website-experts.ca/tag/plugin/

    Неужели не знает как скрыть цену?

Просмотр 4 ответов — с 1 по 4 (всего 4)
  • Тема «Как убрать цену?» закрыта для новых ответов.