VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Sean069 on April 05, 2015, 02:09:00 AM

Title: Hide SKU
Post by: Sean069 on April 05, 2015, 02:09:00 AM
Hi there,

i am using VM 2.6.6. I want to hide the sku in the confirmation mails and the "view orders online" page. Does anyone know where are the files located?

best regards

sean
Title: Re: Hide SKU
Post by: Frans D on April 05, 2015, 13:09:50 PM
I am using VM 3 and they are overthere in the ***_items.php files.

So I would guess that in VM 2, they would be in:

\components\com_virtuemart\views\invoice\tmpl\invoice_items.php

and

\components\com_virtuemart\views\orders\tmpl\details_items.php

If you alter them, I would suggest to do that through a template override.

Besides that; use an editor like Dreamweaver, so you can see what you are doing and which also alters automatically the colspans if needed.
Further more you have to adjust the percentage of other cells, so you'll have a total of 100% width again.
The SKU field uses 5% of the total width (of 100%), if you don't adapt that also, your layout will be messy.


Title: Re: Hide SKU
Post by: jenkinhill on April 05, 2015, 14:22:59 PM
In VM2.x the files to override are:
components/com_virtuemart/views/invoice/tmpl/invoice_items.php
components/com_virtuemart/views/invoice/tmpl/mail_raw_pricelist.php
components/com_virtuemart/views/orders/tmpl/details_items.php

BTW for security reasons you should be using at least VM2.6.10 - current latest is VM2.6.17    http://virtuemart.net/news/latest-news/462-security-release-of-vm2-6-10-and-vm2-9-9b
Title: Re: Hide SKU
Post by: Sean069 on April 06, 2015, 00:52:13 AM
hey,

thank you for your help.

i was ablemtp hide the sku from the emails. but its still on view order online. i think i am missing another file since i adjusted the files above.any idea what i am missing?

best regards
Title: Re: Hide SKU
Post by: jenkinhill on April 06, 2015, 10:29:41 AM
Does your template already use overrides?
Title: Re: Hide SKU
Post by: Frans D on April 06, 2015, 10:34:22 AM
The only other file that comes up, if I search with the program "Agent Ransack" for the string "COM_VIRTUEMART_ORDER_PRINT_SKU" within Virtuemart 2 files is;
\administrator\components\com_virtuemart\views\orders\tmpl\order.php (line 149)
Otherwise it can also be cache, it took some time before all my adaptions started working.