magento-lts icon indicating copy to clipboard operation
magento-lts copied to clipboard

onepage/billing.phtml required still displayed after removed.

Open f1-outsourcing opened this issue 4 months ago • 3 comments

rwd/default/template/persistent/checkout/onepage/billing.phtml

I think something weird is happening at this line, still prints 'required' stars, after removing "*" and the required class

this code

     96                 <li class="fields">
     97                     <div class="field">
     98                         <label for="billing:postcode">+++<?php echo $this->__('Zip/Postal Code'); ?>---</label>
     99                         <div class="input-box">

generates this output on the website. checkout

<label for="billing:postcode" class="required">+++Zip/Postal Code--- <span class="required">*</span></label>

I already restarted apache and php-fpm, does not look like a caching issue. If I add/remove '+++' and '---', the changes are directly visible.

v20.5.0.

f1-outsourcing avatar Mar 25 '24 23:03 f1-outsourcing

Looks like this onepage checkout is a bit buggy anyway. After setting is_required to 0, you still get popups "Please enter the telephone number."

https://stackoverflow.com/questions/5456794/magento-make-the-field-company-required

php -d disable_functions=none -d apc.enable_cli=1 ../n98-magerun.phar mysql-client

UPDATE eav_attribute SET is_required = 0 WHERE attribute_code = 'telephone';

f1-outsourcing avatar Mar 26 '24 00:03 f1-outsourcing

This issue is not following the report format. Please provide all steps to reproduce it.

ADDISON74 avatar Mar 26 '24 07:03 ADDISON74

if I change the label to billing:postcode2, the required is gone, so something is injecting it. Maybe this file was being updated from where the * where hardcoded to where functions would do this on the basis of some configuration somewhere, and they started 'testing' this with postalcode?

f1-outsourcing avatar Mar 26 '24 13:03 f1-outsourcing