Is there a global variable that denotes that a quote is ready to be accepted by the customer? We want to hide the "add to basket" button until the admins have had a chance to review and price the quote.
Announcement
Collapse
No announcement yet.
Variable for 'quote ready'
Collapse
X
-
Variable for 'quote ready'
Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.comTags: None
-
Bruce - PhosphorMedia There is no Ready status for quotes. When a quote is submitted it has a status of New. Then when a quote is sent it has a status of Sent. When the customer submits the Request form on the quote information page the status is Response Needed. Finally there is a status of Purchased when the quote has been purchased.
You could create a quote custom field and when the quote is ready have the customer service representative update the custom field. Then you can have template code check for the quote custom field and show or hide the button.
Nicholas Adkins
Technical Training Specialist / Miva, Inc.
[email protected]
https://www.miva.com/mivalearn
-
Hi, I'm looking at setting this up as well, but I can't figure out how to read the custom field data. When I put
&mvt:quote_info:info_fields_custom[3]:code;
on the page, I get the name of the custom field, but that is the same whether or not the box is checked. How do I read if it's checked?
Thanks
Comment
-
heatherwebdev Where are you trying to read the custom field? When the form is submitted the custom field is saved to the quote and passed as a global variable.
If you are trying to read the custom field after the form has been submitted you just need to output the global variable. For example if the name attribute on the input within the form is "quoteNotes" then you can read the value after the form has been submitted by rendering : &mvt:global:quoteNotes;
If you are trying to read the quote custom field on a different page like the quote information page the custom fields are available within the Quote Information item template. You will need to add the custom fields to the template first then the values will be available on the page within the "quote_info:quote:custom_fields" array. You can loop through the array to find the specific custom field by doing something like this:
Code:<mvt:foreach iterator="custom_field" array="quote_info:quote:custom_fields"> <mvt:if expr="l.settings:custom_field:code EQ 'QUOTE_CUSTOM_FIELD_CODE' "> &mvt:quote_customfield; </mvt:if> </mvt:foreach>
Nicholas Adkins
Technical Training Specialist / Miva, Inc.
[email protected]
https://www.miva.com/mivalearn
Comment
-
I'm trying to add this to QUOT, so I can hide the add to cart button if the custom field isnt checked.
I have the custom field selected on the page template under Quote information, and tried the code you sent with my custom field code entered there, but its not getting any results. the quote that im checking does have the custom field box checked on it.
I also tried putting the
&mvt:quote_customfield;
code right after the foreach tag, hoping it would output all of my custom quote fields, but nothing was output
Comment
-
heatherwebdev The quote custom field loop is on the default Quote Information template on the QUOT page:
quote_info_custom_field.JPG
As long as the custom fields are added to the template like in the image above they should show by default. Can you revert to the default template and see if that loop is outputting values?
If you are still having issues, I would recommend email dev support and we can help get it resolved.Nicholas Adkins
Technical Training Specialist / Miva, Inc.
[email protected]
https://www.miva.com/mivalearn
Comment
Comment