Jump to content

Edit History

ClassyDevs

ClassyDevs

Hello, After investigate many things. i found that if we hook it in  hookDisplayProductPriceBlock then it show multiple times. we need to add some kind of condition to limit it. It show after before price one time.

 

if ( $hookName == 'displayProductPriceBlock' && $params['type'] != 'before_price') {
            return false;
            }

I suggest you to use this in new hook  displayProductListReviews then you are able to use this nicely, It used same way how review show. Normally the possition it using css. I have put the css with template for you. Bellow is screen shot how it will show after we do this.

 

https://pscreenshot.com/i/APaS18

 

<style type="text/css">
.product-list-wishlist {
    border: 1px solid red;
    position: absolute;
    top: -26px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 0;
}
</style>
<div class="product-list-wishlist">
<form action='../modules/wishlist/addtowishlist.php' method='POST'>

<input type='text' value='' style='display:none'>

<button type='submit'>&#128420;</button>

</form>
</div>

 

Hope your issue will sovled.

 

Thank you

Classy Devs Team

ClassyDevs

ClassyDevs

Hello, After investigate many things. i found that if we hook it in  hookDisplayProductPriceBlock then it show multiple times. we need to add some kind of condition to limit it. It show after before price one time.

 

if ( $hookName == 'displayProductPriceBlock' && $params['type'] != 'before_price') {
            return false;
            }

I suggest you to use this in new hook  displayProductPriceBlock then you are able to use this nicely, It used same way how review show. Normally the possition it using css. I have put the css with template for you. Bellow is screen shot how it will show after we do this.

 

https://pscreenshot.com/i/APaS18

 

<style type="text/css">
.product-list-wishlist {
    border: 1px solid red;
    position: absolute;
    top: -26px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 0;
}
</style>
<div class="product-list-wishlist">
<form action='../modules/wishlist/addtowishlist.php' method='POST'>

<input type='text' value='' style='display:none'>

<button type='submit'>&#128420;</button>

</form>
</div>

 

Hope your issue will sovled.

 

Thank you

Classy Devs Team

×
×
  • Create New...