Sale icon is not apearing in products with variatons

This topic has 20 replies, 3 voices, and was last updated 7 years, 6 months ago ago by Max Mullins

  • Avatar: filiphdan
    filiphdan
    Participant
    May 19, 2017 at 23:42

    Hi,

    My sale icon is not apearing in products with variations, what can i do to show it?

    Thanks

    19 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 20, 2017 at 11:20

    Hello,

    If product is variable it has On Sale label. If product is simple it has percentage discount. We did not add percentage discount for the variable products because it requires a lot of requests to DB (price for the every variation you have and calculation of the best one) and slows down the site speed.
    https://www.8theme.com/topic/precentage-sale-bubble/

    Regards

    Avatar: filiphdan
    filiphdan
    Participant
    May 20, 2017 at 16:17

    Ok so then thers no other way but to add the sale option, wich i did not want i prefered the % discount option…
    Is there anyway i can at least change the word SALE to something in my Language, like PROMO!

    Thanks

    Daniel

    P.S. – i think i wrote this is another post from last year, sory about that…

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 23, 2017 at 10:46

    Hello,

    Yes, you can change that word using translation files https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/

    Regards

    Avatar: filiphdan
    filiphdan
    Participant
    May 29, 2017 at 10:50

    Hello,

    I installed loco translate, then i have gone to themes and choose the xstore child (wich is the one im using) but it always redirects me to a 404 page error…

    Can you please tell me what im doing wrong?

    Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 29, 2017 at 13:10

    Hello,

    1) I need admin panel and FTP access to check the problem with translation.
    2) You need to translate parent theme first. If you did not use files with child theme text domain in the child theme then you don’t need to translate child theme.

    Regards

    Avatar: filiphdan
    filiphdan
    Participant
    May 29, 2017 at 14:42

    Hello,

    I dont know exaclty what you are asking with the parent and child, i just used the child as it was recommended wen i was doing the instalation, did not do anything to the parent…

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 29, 2017 at 16:03

    Hello,

    Even if you use child theme you should translate XStore theme (parent theme) translation files!
    I have checked and see that 404 error appears even if to enabled default WP theme and disable all the third-party plugins. It means that something is wrong with your WP installation. But it’s not related to our theme, so you may ask for help on WP or Loco Translate support forum.

    Meanwhile, try to translate XStore theme files using PoEdit and place them into wp-content/languages/themes folder.

    Regards

    Avatar: filiphdan
    filiphdan
    Participant
    May 30, 2017 at 17:24

    Hello,

    Is it possible just to translate the SALE! to PROMO!, i mean changing the word in the theme, i dont know were it is, but just change that would solve the problem, as the site is almost ready and the translations are ok, no need to further translate anything else.

    Please let me know,

    Thanks!

    Please, contact administrator
    for this information.
    Avatar: maxmullins
    Max Mullins
    Participant
    May 31, 2017 at 11:42

    The translation you require can be done in ../xstore/woocommerce/loop/sale-flash.php on line 31. Please use Child theme for any customization in php files to prevent theme from overwriting during next them update. You may copy woocommerce folder into the child theme and rename this wording there.

    Avatar: filiphdan
    filiphdan
    Participant
    May 31, 2017 at 14:14

    Im sory im doing these things for the first time, how can i get to the sale-flash.php file to change it?
    And Wich folder do i need to copy and were it is?

    Thanks!

    Avatar: maxmullins
    Max Mullins
    Participant
    May 31, 2017 at 14:51

    Hello @filiphdan.

    It is accessable via ftp in your site root directory/wp-content/xstore/woocommerce/loop/sale-flash.php. You may use text editor such as notepad++ or similar or provide us with ftp credentials to your site.

    Regards
    Max Mullins

    Avatar: filiphdan
    filiphdan
    Participant
    May 31, 2017 at 15:07

    Thanks ive sucefully did it in xstore theme, but didnt understood the part of copying the folder?

    One other thing is that PROMO! do not fit the circle as SALE! is shorter…

    Dont know if i can do anything about this, maybe putting the Promo! in lowers case like i writen it, it always apears in upper case.

    Thanks

    Avatar: maxmullins
    Max Mullins
    Participant
    May 31, 2017 at 15:52

    1. You should make all the changes in child theme only, because you’ll lose them after theme update (all the changes will be overwritten)
    2. You can either make the circle bigger using custom CSS

    .content-product .sale-wrapper span {font-size:0.5rem!important;padding-top:0.7rem}
    .content-product .onsale {width: 50px!important;
        height: 50px;important}

    }
    or make it rectangular instead of circle

    .content-product .sale-wrapper span {font-size:0.5rem!important;padding-top:0.7rem}
    .content-product .onsale {width: 50px!important;border-radius:0;
        height: 50px;important} 

    Regards,
    Max Mullins

    Avatar: filiphdan
    filiphdan
    Participant
    May 31, 2017 at 16:52

    Ok ,thank you that did it, so what should i copy to the child theme?the loop folder?and were do i place it?

    Thanks

    Avatar: maxmullins
    Max Mullins
    Participant
    May 31, 2017 at 17:16

    Find /wp-content/themes/xstore/woocommerce/loop/sale-flash.php file and copy this file into /wp-content/themes/xstore-child/woocommerce/loop/ folder. Child theme archive you can find here https://www.8theme.com/download-plugins/
    Detailed information about child theme and how it woks you can find here https://codex.wordpress.org/Child_Themes

    Regards,
    Max Mullins

    Avatar: filiphdan
    filiphdan
    Participant
    May 31, 2017 at 17:24

    I already did as you told me in here :

    1.You may create woocommerce folder within your child theme width following path folder wp-content/child_theme/woocommerce/
    2.Create second folder /woocommerce/loop
    3.Copy sale-flash.php from theme directory to the wp-content/child_theme/woocommerce/loop/

    Do i need to rename the folders?

    Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 1, 2017 at 15:28

    Hello,

    Folders should be named according to your child theme name.

    Child theme archive you can find here https://www.8theme.com/download-plugins/
    Detailed information about child theme and how it works you can find here https://codex.wordpress.org/Child_Themes

    Regards

    Avatar: filiphdan
    filiphdan
    Participant
    June 1, 2017 at 15:35

    Hello,

    I just wanted to check if i did named the folder right because first you told me to do like this:
    1.You may create woocommerce folder within your child theme width following path folder wp-content/child_theme/woocommerce/
    2.Create second folder /woocommerce/loop
    3.Copy sale-flash.php from theme directory to the wp-content/child_theme/woocommerce/loop/

    Wich i did.

    And after you posted again telling to do like this:

    Find /wp-content/themes/xstore/woocommerce/loop/sale-flash.php file and copy this file into /wp-content/themes/xstore-child/woocommerce/loop/ folder.

    So do i need to rename the folders from wp-content/child_theme/woocommerce/loop/ to
    /wp-content/themes/xstore-child/woocommerce/loop/ ?

    Thanks

    Avatar: maxmullins
    Max Mullins
    Participant
    June 1, 2017 at 16:34

    Hello @filiphdan

    No. Child-theme folder should not be renamed and modifications that were done to the parent theme can be removed as they are already presented in child theme.

    Regards,
    Max Mullins

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

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

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