You have no items in your shopping cart.

Friday, March 29, 2024 12:45:00 AM

General Discussion

Posted: 9 years ago

#197 Quote

Support

Posted: 9 years ago

#197 Quote
Here you can discuss plug-in operation.

Posted: 6 years ago

#6859 Quote

filippo.monti

Posted: 6 years ago

#6859 Quote
How I can know if a product has a button "Request a quote"?.
I would need to hide the button "Add to Cart"  (and other informations).
On the product I would have "CallForPrice" property.
I would need a "method" to read the [FNS_RFQProduct] table but it's impossible because it's in a plugin but I can't refer the dll
Thank's

Filippo

Posted: 6 years ago

#6860 Quote

Support

Posted: 6 years ago

#6860 Quote
You can add button 'Request a Quote' dynamically in cshtml file.
Example.

@If (Model.CallForPrice)
{
            <input type="button" value="ButtonCaption" class="fns-rfq-button button-2
                onclick="setLocation('@Url.RouteUrl("RequestFormPage", new { id=1, productId = Model.Id })')" />
}


@Url.RouteUrl("RequestFormPage", new { id=typebuttonID, productId = Model.Id })

typebuttonID - Id or request type button.

If you have any ideas how to implement buttons write me and I'll try to help you.

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved