{docurl}
I'm designing checkout with OPT, and am wondering if there's any way to get the %prompt_foo% tokens to render different text? I don't want to simply replace them with HTML as I'd still like the form validation to work correctly (unfilled required fields appearing in red).
(2004/04/23)Are you asking if it's possible for those fields to display some label other than the standard field label? They can't. To change the text you would need to replace the token with the html. However, you can still get the form validation by adding the conditionals in as well. Each field has a variable indicating if it is "invalid" which is based on the field name. It is simply the field name with '_invalid' appended to it. For example, the name for the "shipping last name" is 'ShipLastName' and the variable which will have a value of 1 if it is invalid is 'g.ShipLastName_invalid'.
So, for example, if you wanted to take out the %prompt_shipfax% field and replace it with "Address Line 2" you would remove the %prompt_shipfax% token and replace it with:
%begin_if|g.ShipFax_invalid|%
<font color="red">
Address Line 2:
</font>
%else%
Address Line 2:
%end_if%
Last update: 2009-05-11 16:24
Author: Support
Revision: 1.1
You cannot comment on this entry
Records in this category
- The total on my checkout pages are not correct. Why?
- How do I display the "thank you" message on the invoice page?
- On the basket pages I would like to display the total w/ the shipping included but NOT with the tax included. Is this possible?
- Is there a way to "Limit" the number of characters that can be entered into the "address" or any other field of the ACNT and OINF pages?
- What are the tokens for displaying the basket attributes?
- Hello, I am using the Affiliate Login module and the other page templates module. How do I get the affilate LOGN_header to show up for the login included in the other page templates module?
- How do I modify the Custer Login screen so that the customer is redirected to the Account screen rather than the storefront?
- The footer of my basket page has %OUI% in it and various OpenUI tokens. However, when I display it on the Other Page Templates generated basket page with the %bask_ftr% token, the %OUI% and other OpenUI tokens show in the page. How do I fix this?
- I'm using the %baskettotalallF% token on the OSEL screen but it is not displaying the correct total. Why?
- How do I consolidate the checkout screens so that the "shipping and billing selection" lists are on the "Customer Information" page?
- I'm designing checkout with OPT, and am wondering if there's any way to get the %prompt_foo% tokens to render different text? I don't want to simply replace them with HTML as I'd still like the form validation to work correctly (unfilled required fields appearing in red).
- I'm running into problems in that some of my tokens are not being processed correctly. For example, I'm trying to do this:%begin_if|%module|modcode:position%|%...%end_if%but it just generates errors or the %module simply shows up on the page. What could be wrong?
- Can I display the "related products" of the products in the basket in a single listing?
- Is it possible to display a "checkout" link on the basket page?
- Is it possible to display a "continue shopping" link on the basket page?
- How do I make the "Account Login" screen compatible with other modules such as the Order Status Manager and Affiliate Manager?
- The %logn_hdr% does not display the correct header when the customer is logging out.
- The "Missing Attributes" screen is acting like the Product Listing screen! Help!?
- How do I display the attributes in the basket?
- How can I display a "checkout" link on the basket page which points to the correct screen depending on whether or not the customer is logged in?
- I'm using the Affiliate Manager (http://vikingcoders.com/go.mv?ID=BROK_PAGETEMPLATES) and I would like to display the "Login Header", "Login Footer", "Account Header", and "Account Footer" on the customer login and account pages for affiliates signing up to be affiliates. How do I do this?
- How do I make the checkout screens compatible with the Gift Certificate Manager (http://vikingcoders.com/go.mv?ID=BROK_CERTIFICATES)?
- How do I make the Customer Account screen compatible with List Manager?
- How do I make the Login screen compatible with the Order Status Manager (http://vikingcoders.com/go.mv?ID=BROK_ORDERSTATUS) and Order Status - Login (http://vikingcoders.com/go.mv?ID=BROK_ORDERLOGIN)?
- How do I make the module compatible with the List Manager (http://vikingcoders.com/go.mv?ID=BROK_WISHLIST) module?
- How do I make the Login screen compatible with the Affiliate Manager (http://vikingcoders.com/go.mv?ID=BROK_AFFILIATES) and Affiliate Manager- Login (http://vikingcoders.com/go.mv?ID=BROK_AFFILATELOGIN)?
- How do I set the time zone so that the %time% and %date% tokens reflect the time zone of my store and not my server?
- Displaying the product price + attribute price in the basket














