Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TEXT_OPTION_DIVIDER to checkout page #213

Closed
simon1066 opened this issue Sep 17, 2019 · 1 comment
Closed

Add TEXT_OPTION_DIVIDER to checkout page #213

simon1066 opened this issue Sep 17, 2019 · 1 comment

Comments

@simon1066
Copy link

index.php?main_page=checkout_one

On the above page (in the Shopping Cart Contents block) the separator between the attribute name and attribute value is defined as a colon in templates/tpl_modules_opc_shopping_cart.php line #46

<li><?php echo $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])); ?></li>

As this separator is defined elsewhere throughout the ZC code by TEXT_OPTION_DIVIDER I suggest that, to maintain consistency, line #46 is amended to

<li><?php echo $order->products[$i]['attributes'][$j]['option'] . TEXT_OPTION_DIVIDER . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])); ?></li>

and that define('TEXT_OPTION_DIVIDER', '&nbsp;-&nbsp;'); (the hyphen is the default across ZC code) is added to an appropriate language file (although I'm unable to identify which one is preferable).

@lat9 lat9 added the change label Sep 17, 2019
@lat9
Copy link
Owner

lat9 commented Sep 17, 2019

Noting that, since that constant is used in multiple places (shopping cart and account-history-info), I'm assuming that the constant will eventually be defined in the base Zen Cart's root-language file (e.g. english.php).

As such, I'll provide an in-code definition if that's not currently defined.

FWIW, I've submitted a Zen Cart PR requesting that consolidation.

@lat9 lat9 added this to the v2.1.5 milestone Sep 19, 2019
@lat9 lat9 closed this as completed Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants