| Author |
Message |
ericcarl
Joined: 05 May 2009
Posts: 6
|
Posted: May 05, 2009 06:05pm Post subject: {CHECKOUT-FIELD-TITLE} and "Shipping Address"? |
|
|
| When using the "{CHECKOUT-FIELD-TITLE}" quick code tag, the result on the live page always has the title proceeded by the words "(Shipping Address)". So for example, if my custom field is "How did you hear about us?" the result is: "How did you hear about us? (Shipping Address)" which of course makes no sense. Is there a way to remove the words "(Shipping Address)" from being displayed? Thanks! |
|
Mail Bag

Answering Your Questions Since... 9:30am
Joined: 28 Aug 2005
Posts: 198
|
Posted: May 06, 2009 09:32am Post subject: |
|
|
| Quote: | | Is there a way to remove the words "(Shipping Address)" from being displayed? |
It would be possible to change the text that is displayed on the page by replacing the {CHECKOUT-FIELD-TITLE} QuickCode Tag in the store's template with the desired text.
For example, the entry in the QuickCode Tag glossary for the {CHECKOUT-FIELD-TITLE} tag at http://www.modularmerchant.com/quickcode_details.php?qcid=227 tells us that the tag is translated into the following source code:
| Code: | <?php
echo(mm_unmangle($cstm_checkout_fields['title'][$ccfx]));
if(count($_SESSION['cmr_arr']['ship_addr_arr'])>0) {
echo(' ('.$_SESSION['cmr_arr']['ship_addr_arr'][$a].' Shipping Address)');
}
?> |
We could replace the instance of the {CHECKOUT-FIELD-TITLE} QuickCode tag with this code.
However, simply replacing the QuickCode Tag with its exact same source code would still display the "(Shipping Address)" text. So, in order to remove the "(Shipping Address)" text, the source code in our template will now need to be edited to remove this text.
The final version of the edited code would be:
| Code: | <?php
echo(mm_unmangle($cstm_checkout_fields['title'][$ccfx]));
?> |
##########################################################################
Review
So, to obtain the desired results, make the following change to the HTML code in the appropriate store template(s)....
Change this: | Code: | | {CHECKOUT-FIELD-TITLE} |
To this: | Code: | <?php
echo(mm_unmangle($cstm_checkout_fields['title'][$ccfx]));
?> |
_________________ Modular Merchant Mail Bag
Answering your questions, queries and puzzlers.
Modular Merchant shopping cart software, website hosting, and custom programming. |
|
ericcarl
Joined: 05 May 2009
Posts: 6
|
Posted: May 06, 2009 10:33am Post subject: |
|
|
Thanks! That works great.
Now I have a new question- I have several custom checkout fields, and I need to re-arrange the order in which they appear. By default they appear in the order in which I entered them into the system when creating them, but I'm not finding any options for altering the display order after they've been created. Thanks for any help! |
|
dev71997

Joined: 09 Oct 2008
Posts: 4
|
Posted: May 07, 2009 11:12am Post subject: |
|
|
| Quote: | | Now I have a new question- I have several custom checkout fields, and I need to re-arrange the order in which they appear. By default they appear in the order in which I entered them into the system when creating them, but I'm not finding any options for altering the display order after they've been created. Thanks for any help! |
Currently the order in which the custom checkout fields are listed in the [Navigation Menu > Groups & Zones > Checkout Fields], is the order in which they will be displayed in the storefront. Due to technical reasons this cannot be changed in the current version of the software.
It is possible that in the future, the ability to change the display order of Custom Checkout Fields will become available.
If you have any further questions, please let us know. Thank you. |
|
|