Product code display only in shopping cart

  • Posts: 81
  • Thank you received: 0
11 years 2 months ago #152242

Hi,

is it possible to have the product code only display in the shopping cart?

best regards...

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #152269

Hi,

Yes you have to set the options for the product code to "no" and edit the view "product / cart" to remove the if condition around the display of the php code.

hikashop.com/support/support/documentati...ize-the-display.html

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

  • Posts: 81
  • Thank you received: 0
11 years 1 month ago #153094

Do you mean that I should remove line 278?

<?php if ($this->config->get ('show_code')) { ?>
<span class="hikashop_product_code_cart""><?php echo $row->product_code; ?></span>
<?php } ?>

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #153102

The solution will be to change that lines :

  <?php if ($this->config->get('show_code')) { ?>
                    <span class="hikashop_product_code_cart"><?php echo $row->product_code; ?></span>
                  <?php } ?>
By :
<span class="hikashop_product_code_cart"><?php echo $row->product_code; ?></span>

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

  • Posts: 81
  • Thank you received: 0
11 years 1 month ago #153230

Hi,

I have the line as you described changed. It was still the product code does not appear in your cart as well as on the invoice and purchase order.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #153258

1. Can you check that you edited the "cart" file of the "product" view of the GOOD front-end template that you are currently using through "Hikashop->Display->Views" ?
2. Also, can you check that you don't have any CSS code which is hiding your product code ?

Thanks.

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

  • Posts: 81
  • Thank you received: 0
11 years 1 month ago #153514

Hi,

yes I have the php file changed from frontend template what I use. The CSS code is not set to default but to old. But there was nothing changed and since then has been the template of this page over extensions is uploaded.

Best regards

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #153517

Hi,

The code given should display the product code in the cart module.
To have the product code too in the invoice you have to edit the views "order / show" (frontend template), "order / invoice" (backend template), etc.

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

  • Posts: 81
  • Thank you received: 0
11 years 1 month ago #153674

Hi,

I have the display of the product code in the configuration reactivated. So that is the product code shown on the invoice.

My question is, how do I get the product code does not appear in the Product category.
In the picture marked in red.

Best regards

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #153807

Hi,

You have to edit the view "product / listing_img_title" and remove the product code part.

<!-- PRODUCT CODE -->
	<span class='hikashop_product_code_list'>
		<?php if ($this->config->get('show_code')) { ?>
			<?php if($this->params->get('link_to_product_page',1)){ ?>
				<a href="<?php echo $link;?>">
			<?php }
			echo $this->row->product_code;
			if($this->params->get('link_to_product_page',1)){ ?>
				</a>
			<?php } ?>
		<?php } ?>
	</span>
<!-- EO PRODUCT CODE -->

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

  • Posts: 81
  • Thank you received: 0
11 years 1 month ago #154576

Thank you very much! The way I want it.
B)

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

Time to create page: 0.135 seconds
Powered by Kunena Forum