Okay
  Public Ticket #2813793
Woo Product Listing - On sale products
Closed

Comments

  • Michael Baillot started the conversation

    Hi,

    among the products listed thanks to the widget, some are on sale but badges aren't displayed and I don't find an option for that. Can you help please?

    Best regards,

    Michael

    Attached files:  Content source.png

  •  239
    Deekshit replied

    Hi Michael,

    Thank you for contacting POSIMYTH support.

    Can you please provide some more info as to exactly what you are looking for it looks like you have selected the Archive Page Product Listing Type so on the Content source you won't have the option to select Category or include/exclude products

    Thanks,

    Warm Regards,
    Deekshit Nair

    I'm located in India. My timezone is IST.

  • Michael Baillot replied

    Hi Deekshit,

    thanks for your answer. I've selected the Normal Page Listing type. However, On Sale badges aren't displayed. What I'd like is to show the badge with the on sale pourcentage and/or the previous price. Please find an exemple here:

    https://www.pepecassius.ch/shop/vestiaire/t-shirts-polos/tee-boats-white (this product is on sale; on the product details, badge and previous price are shown but not on the home page where the widget is used).

    Attached files:  Badge and previous price.jpg

  •  239
    Deekshit replied

    Hi Michael 

    Thanks for writing back, I have checked on my test site and it is showing fine https://prnt.sc/17ffjqd as the only difference is with the default WooCommerce Shop page and Woo Product Listing Widget shop page is the tag design.

    Also, Since your site is in Maintenance mode I could not see the page that you have shared in this email thread.

    Thanks,

    Warm Regards,
    Deekshit Nair

    I'm located in India. My timezone is IST.

  •   Michael Baillot replied privately
  •  239
    Deekshit replied

    Hi Michael,

    Please see here https://www.pepecassius.ch/posimyth-test as the percentage of the On-sale products are showing.

    Furthermore, if you check the default WooCommerce shop page there's the only percentage and no on-sale tag perhaps you can share a demo of what you are looking for so that we can guide you.

    Thanks,

    Warm Regards,
    Deekshit Nair

    I'm located in India. My timezone is IST.

  • Michael Baillot replied

    Hi Deekshit,

    I've selected the same settings as yours but nothing change: Contente source > Display products > All.
    For example, the product "Tee storm white" is on sale (badge and previous price are displayed): you can see it on the shop page: https://www.pepecassius.ch/shop

    However, the same product doesn't show anything on the hope page: https://www.pepecassius.ch/

    On order to help in your investigation, please find below to piece of code that you asked me to add to solde certain bugs:

    Custom CSS
    /*
    .product-list.list-isotope-metro .product-bg-image-metro {
        background-size: unset !important;
        background-size: unset !important;
        background-position: top !important;
    }
    */

    PHP
    > please see the attached file

    I think there is something wrong with the widget. Feel free to access to WordPress admin panel if it helps.

    Waiting for your return,
    Best regards,
    Michael

    Attached files:  code_769.png

  •  239
    Deekshit replied

    Hi Michael,

    Thanks for holding on, unfortunately, at the moment we don't have a badge in Metro Layout we'll add in a feature in the next major update.

    For now, you can manage with modifying the below file, You can add where you want in the metro layout


    plugins\theplus_elementor_addon\includes\product\product-style-1.php
    plugins\theplus_elementor_addon\includes\product\product-style-2.php
    plugins\theplus_elementor_addon\includes\product\product-style-3.php

    $out_of_stock_val='';
    if(!empty($out_of_stock)){
    $out_of_stock_val=$out_of_stock;
    }
    if(!empty($b_dis_badge_switch) && $b_dis_badge_switch=='yes'){
    do_action('theplus_product_badge',$out_of_stock_val);

    }

    In case, if you need any help you can share the FTP server access we will customize the code for you.

    Thanks,

    Attached files:  metro.png

    Warm Regards,
    Deekshit Nair

    I'm located in India. My timezone is IST.

  • Michael Baillot replied

    Hi Deekshit,

    thanks you very much. Just one question: if the plugin is updated, are the changes below deleted?

    Best regards,

    M.

  •  239
    Deekshit replied

    Hi Michael

    Thanks for writing back. Yes as the  custom changes are only for your  site  so if you  try to update the  plugin then the changes that are made will be overwritten with the original plugin codes.

    So I recommend that you please keep the backup before making updates.

    Thanks,

    Warm Regards,
    Deekshit Nair

    I'm located in India. My timezone is IST.

  •   Michael Baillot replied privately
  •  239
    Deekshit replied

    Hi Michael 

    Thanks for sharing the details but looks like you have shared staging site FTP so we also need to have the staging site wp-admin login details so that we can check if the code that we have added works or not

    Thanks,

    Warm Regards,
    Deekshit Nair

    I'm located in India. My timezone is IST.

  •   Michael Baillot replied privately
  •  364
    Disha replied

    Hello Michael,

    We can add code for you but I must need to mention you that, When you update plugin, Code will be updated. That means, You need to add code again. 

    If you are not in hurry, I suggest you to wait for our next update, In which we will include this code in our plugin itself. 

    Warm Regards,
    Disha Patel
    POSIMYTH Team

    I'm located in India. My timezone is IST.

  • Michael Baillot replied

    Hi Disha,

    thanks for your answer and proposal. Waiting for the plugin update, I would be thankful if you could add the code.

    Best regards,

    Michael

  •  364
    Disha replied

    Hello Michael,

    I can see, you already added code in file. 

    8372130011.png

    It is working fine on page as well. https://www.pepecassius.ch/posimyth-test 

    Warm Regards,
    Disha Patel
    POSIMYTH Team

    I'm located in India. My timezone is IST.

  • Michael Baillot replied

    Hi Disha,

    thanks for your reply. What I see is that it's working fine with simple product (the cap in your test page) but not for variable product.

    Best regards,

    Michael

  •  364
    Disha replied

    Hi Michael,

    Thanks for the update, we have checked the URL page https://www.pepecassius.ch/shop/vestiaire/pantalons-shorts/green-hemp-short that you have shared and we can see that the badge is showing fine. Can you please confirm the same from your end?

    It could be caching of your site or from your browser, please see here https://prnt.sc/1qflrau and let us know if we can be of further assistance.

    Please check the site on a different browser and let us know if that worked out for you. And Let us know, If we have misunderstood you anyway in the process.


    Warm Regards,
    Disha Patel
    POSIMYTH Team

    I'm located in India. My timezone is IST.

  • Michael Baillot replied

    Hi Disha,

    the shared page is just an example of an On Sale product which is also displayed on the home page BUT without the On Sale badge.

    Please find a screenshot where the same product is displayed on the Home page (on the left) and in the product page (on the right). As you can see, the On Sale badge is not displayed in the Home page.

    Best regards,

    Michael


    Attached files:  Capture d’écran 2021-08-23 à 16.33.37.png

  •  364
    Disha replied

    Hi Michael, 

    We are sorry for delay in response as We were working on custom code for that. 

    We have updated code and you need to replace below file : 

    wp-content\plugins\theplus_elementor_addon\includes\product\product-price.php

    Download : https://fromsmash.com/product-price

    You wp-admin access is not working, Either we have implemented there directly. 

    6164343543.png

    Can you share your wp-admin again with us? 


    Warm Regards,
    Disha Patel
    POSIMYTH Team

    I'm located in India. My timezone is IST.

  • Michael Baillot replied

    Hi Disha,

    everything is fine now. We can consider closing this ticket,

    thanks for all,

    best regards,

    Michaël