order_invoice.twig dosyasındaki kod ile telefon ve e-maili faturaya yansıtabiliyorum.
{{ order.payment_address }}
Tel: {{ order.telephone }}
Email: {{ order.email }}
{{ order.shipping_address }}
Bu faturaya tel ve e-maili alıyorum. Bunda sorun yok ama 2 tane özel alan var..
Özel Alan için veri tabanı tablosu şu şekilde
1
2
TRUNCATE TABLE `ocjp_custom_field_description`;
INSERT INTO `ocjp_custom_field_description` (`custom_field_id`, `language_id`, `name`) VALUES ('1', '1', 'T.C./Vergi No'); INSERT INTO `ocjp_custom_field_description` (`custom_field_id`, `language_id`, `name`) VALUES ('2', '1', 'Vergi Dairesi');
Benim sıkıntım şu faturaya Tel ve e-maili alırken değişkenleri kullanıyorum ama TC kimlik nosunu alamıyorum. İD'leri var..
Bu fatura çok önemli değil ama gerçek fatura keserken çıktı alıyorum aşağıdaki gibi
https://prnt.sc/1hvkez8
İstediğim tek şey TC numarasını seçmesi.
Veri tabanında tablo referansları
INSERT INTO `ocjp_order` (`order_id`, `invoice_no`, `invoice_prefix`, `store_id`, `store_name`, `store_url`, `customer_id`, `customer_group_id`, `firstname`, `lastname`, `email`, `telephone`, `fax`, `custom_field`, `payment_firstname`, `payment_lastname`, `payment_company`, `payment_address_1`, `payment_address_2`, `payment_city`, `payment_postcode`, `payment_country`, `payment_country_id`, `payment_zone`, `payment_zone_id`, `payment_address_format`, `payment_custom_field`, `payment_method`, `payment_code`, `shipping_firstname`, `shipping_lastname`, `shipping_company`, `shipping_address_1`, `shipping_address_2`, `shipping_city`, `shipping_postcode`, `shipping_country`, `shipping_country_id`, `shipping_zone`, `shipping_zone_id`, `shipping_address_format`, `shipping_custom_field`, `shipping_method`, `shipping_code`, `comment`, `total`, `order_status_id`, `affiliate_id`, `commission`, `marketing_id`, `tracking`, `language_id`, `currency_id`, `currency_code`, `currency_value`, `ip`, `forwarded_ip`, `user_agent`, `accept_language`, `date_added`, `date_modified`) VALUES
Bana lazım olan tablo adı payment_custom_field