Custom on sale icon for products - by Stefan

This topic has 2 replies, 2 voices, and was last updated 7 years, 2 months ago ago by Rose Tyler

  • Avatar: StefanStanchev
    Stefan
    Participant
    September 7, 2017 at 07:20

    Hello again, how are you doing?

    So here is the new problem i have to fix. It is a bit more complex because the situation is going beyond my capabilities for now. I remember told you before time that i have to make a custom on sale icon and make the website i administrate to automatically apply when a product is out of stock.

    Here is the topic – https://www.8theme.com/topic/adding-some-extra-features/

    As it is said in your reply i have to contact wpkraken for that thing. So i did as you said i contact them and they gave me a reply that it will cost me about 200$. But i don’t have that money to buy that thing. So as it goes i have to do it for my self.

    First I’m using a Child theme – Blanco Child. And all my custom settings are in there, as you said time ago to do this things on child theme, not to loose customisation when updates are comming.

    So as it goes :

    First i guess i have to work on my Child theme.
    Secound i opened the editor in the : Appereance -> Themes -> Editor
    The files in there are as they go:

    Шаблони

    Шаблон за грешка 404
    (404.php)

    Архив
    (archive.php)

    Шаблон за качени файлове [Pattern]
    (attachment.php)

    Шаблон за публикации на автор [Pattern]
    (author.php)

    Шаблон за категории [Pattern]
    (category.php)

    checkout.php

    admin.php

    (code/admin.php)
    admin_functions.php

    (code/admin_functions.php)
    demo_data.php

    (code/demo_data.php)

    functions.php
    (code/functions.php)

    init.php
    (code/init.php)

    options.php
    (code/options.php)

    plugins.php
    (code/plugins.php)

    portfolio.php
    (code/portfolio.php)

    product.php
    (code/product.php)

    products.php
    (code/products.php)

    shortcodes.php
    (code/shortcodes.php)

    sidebars.php
    (code/sidebars.php)

    theme-settings.php
    (code/theme-settings.php)
    twitter.php
    (code/twitter.php)
    widgets.php
    (code/widgets.php)
    woo.php
    (code/woo.php)
    wpsc.php
    (code/wpsc.php)
    Коментари
    (comments.php)
    content-portfolio.php
    et-links.php
    Шаблон за страница Custom Registration Page
    (et-registration.php)
    et-styles.php
    Футър на темата
    (footer.php)
    Шаблон за страница Frontpage
    (frontpage.php)
    Функции в темата
    (functions.php)
    Хедър на темата
    (header.php)
    Основен шаблон
    (index.php)
    loop-attachment.php
    loop-page.php
    loop-single.php
    loop.php
    Шаблон за страница One column, no sidebar
    (onecolumn-page.php)
    Единична страница
    (page.php)
    portfolio-slide.php
    Шаблон за страница Portfolio
    (portfolio.php)
    products.php
    products_tag.php
    Резултати от търсенето
    (search.php)
    Формуляр за търсене
    (searchform.php)
    sidebar-footer.php
    Странична лента
    (sidebar.php)
    single-etheme_portfolio.php
    Публикация
    (single.php)
    Шаблон за етикет
    (tag.php)
    archive-product.php
    (woocommerce/archive-product.php)
    content-product.php
    (woocommerce/content-product.php)
    content-product_cat.php
    (woocommerce/content-product_cat.php)
    content-single-product.php
    (woocommerce/content-single-product.php)
    single-product-reviews.php
    (woocommerce/single-product-reviews.php)
    single-product.php
    (woocommerce/single-product.php)
    archive-product.php
    (woocommerce_old/archive-product.php)
    content-product.php
    (woocommerce_old/content-product.php)
    content-product_cat.php
    (woocommerce_old/content-product_cat.php)
    content-single-product.php
    (woocommerce_old/content-single-product.php)
    single-product-reviews.php
    (woocommerce_old/single-product-reviews.php)
    single-product.php
    (woocommerce_old/single-product.php)
    wpsc-cart_widget.php
    wpsc-category-list.php
    wpsc-category_widget.php
    wpsc-featured_product.php
    wpsc-grid_view.php
    wpsc-list_view.php
    wpsc-products_page.php
    wpsc-shopping_cart_page.php
    wpsc-single_product.php
    wpsc-transaction_results.php
    wpsc-user-log.php

    Стилове

    Стил
    (style.css)

    compatibility.css

    custom.css

    default.custom.css

    Стил на визуалния редактор (отдясно на ляво)
    (editor-style-rtl.css)

    Стилове за визуалния редактор
    (editor-style.css)

    reset.css
    RTL Стилове

    (rtl.css)
    wpsc-default.css

    For that first i made a backup of the files before editing them

    Secound I’v got a php editor – Got a special type of tool – Crymson editor. Well it is not special for php but it have good functions

    Now i guess i have to start with

    Plugins.php – because it is connected with the wooCommerce plugin

    Options.php

    Functions.php

    and also for sure i have to do something with the custom.css and default.custom.css

    Give me some advices pls how to proceed.

    I’m reading the code of the files

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 7, 2017 at 12:16

    Hello,

    You need to edit woocommerce/content-product.php and woocommerce/content-single-product.php files.
    Regard more https://codex.wordpress.org/Child_Themes

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.