I installed it and I love it, good job. I do however have a question. How do I get the Reqest quote to only show up when buy button is disabled? I want the plugin to automatically show the request form when buy button is disabled.
Also is it possible to run it off of the product boxes, where it says Call for Price it could have the Request Quote there?
I installed it and I love it, good job. I do however have a question. How do I get the Reqest quote to only show up when buy button is disabled? I want the plugin to automatically show the request form when buy button is disabled.
Also is it possible to run it off of the product boxes, where it says Call for Price it could have the Request Quote there?
Thanks thrifty! You can accomplish the desired functionality by modifying the file "_ProductVariantAddToCart.cshtml". Below is how I would modify the file, but keep in mind you will probably need to do some custom work to make this change work well with your theme.
Sweet, I suprisingly thought I did that but it didn't work with my code but now works.
One more question
Is it possible instead of showing "Call for Price" in product grid to have it say "request quote" and link to the page? And on product page it would have to be absent otherwise it would say it twice.
Sweet, I suprisingly thought I did that but it didn't work with my code but now works.
One more question
Is it possible instead of showing "Call for Price" in product grid to have it say "request quote" and link to the page? And on product page it would have to be absent otherwise it would say it twice.
Sure, that would be possible, but I would lean toward creating a new option and leaving "call for price" as it is. But if you really want to change it here is the basics:
Part 1: In the file "_ProductVariantPrice.cshtml" change the following code as required:
Part 2: 1. Change the string resource value of "Products.CallForPrice" (Displays to the public). 2. Change the string resource value of "Admin.Catalog.Products.Variants.Fields.CallForPrice" (Displays in admin).
I believe that is all you would need to do so you can re-purpose the "CallForPrice" functionality. Also don't forget that you need to restart the website so the cache is cleared.
So if I change Product box I can get it to show, but is there a way for it to direct to the product and than direct to the request form? ...
Let me just make sure I understand. You would like "Request quote" to link back to the product view when a customer is viewing the "Product Box View", but when the customer is viewing the product you want the link to take the customer to the request form?
OK I understand. This would be a little more difficult because we need the product variant, not just the product. What I would do is setup a new action in the request quote controller. This action takes productId, queries for the product, and redirects to the request quote route with the newly acquired product variant id .
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.