Checkout editieren

  • Posts: 2
  • Thank you received: 0
4 years 10 months ago #307865

-- HikaShop version -- : 4.1.0
-- PHP version -- : 3.9.8

Hallo,

ich habe in meinem Bestellformular zwei Extra Fields mit Eingaben für den Kunden eingesetzt.

Jetzt möchte ich nach den Eingaben in der Bestellung, dass im Checkout zum einen diesen beiden Extra Felder noch einmal editiert werden können und zum anderen, dass hinter den Extra Fields automatisch zwei unterschiedliche Bezeichnungen ausgegeben werden.

Jemand eine Idee, wie ich das am besten umsetzten kann?

Besten Dank im voraus.

Viele Grüße
Micha

Attachments:
Last edit: 4 years 10 months ago by panepalero.

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
4 years 10 months ago #307867

Hi,

Allowing for the edition of the custom item fields during the checkout is not possible.
It would require complex coding to allow for that.

Adding text after the custom fields can be done with a bit of coding in the file show_block_cart via the menu Display>Views.
It's much easier than your first request. The fields are displayed there with that code:

foreach($this->extraFields['product'] as $field) {
			$namekey = $field->field_namekey;
?>			<td data-title="<?php echo $this->fieldClass->trans($field->field_realname); ?>" class="hikashop_cart_product_field_<?php echo $namekey; ?>">
<?php
			if(!empty($product->$namekey)) {
				echo '<p class="hikashop_checkout_cart_product_'.$namekey.'">' . $this->fieldClass->show($field, $product->$namekey) . '</p>';
			}
?>
			</td>
<?php
		}
So you'll have to add your custom code in there.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum