K
K
Karen Mnatsakanyan2018-06-04 15:54:05
opencart
Karen Mnatsakanyan, 2018-06-04 15:54:05

How to display upc on opencart 2 cart?

Hi all !
how can i display upc on opencart 2.3 cart?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
etheus, 2019-02-15
@etheus

you need to add a couple of lines:
to /catalog/controller/checkout/cartp.php
in the array where the $data['products'] attributes are listed, then add Further to /system/library/cart.php also in the array where the product attributes are $product_data [] (this is a line approximately 240-270) add after add And now in the cart template in the place you need (but after ):
<?php echo $product['upc']; ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question