Supplier Email Template

Hi Folks I want to make just a quick mod to the Supplier email and i thought this would be simple but it is not.

I was wondering why the "code" that is in the table is blank. I would have assumed that it would put the combination code in there since the item itself doesn't have a code. Each combination has its own code though

{{ snippet("header") }}

{{ (“Dear Supplier”) }},

{{ (" Purchase Order") }} #{{ order_info.order_id }}

{% if status_inventory == ‘D’ %}
{{ __(“supplier_email_header”) }}


{% endif %}

{{ __(“invoice”) }}:

{{ include_doc(“supplier_order.invoice”, order_info.order_id, supplier) }}


{{ __("contact_information") }}:
 {{ supplier.data.name }}
 {% if supplier.data.address %}{{ supplier.data.address }}, {% endif %} {% if supplier.data.zipcode %}{{ supplier.data.zipcode }}, {% endif %} {% if supplier.data.city %}{{ supplier.data.city }}, {% endif %} {% if supplier.data.state and supplier.data.country %}{{ supplier.data.state_descr }}, {% endif %} {{ supplier.data.country_descr }}
 {% if supplier.data.phone %}{{ __("phone") }}: {{ supplier.data.phone }}{%if supplier.data.fax %}, {% endif %}{% endif %}{% if supplier.data.fax %}{{ __("fax") }}: {{ supplier.data.fax }}{% endif %}.
 {{ __("email") }}: {{ supplier.data.email }}

{{ snippet(“footer”) }}

Lastly, I want something that shows the item cost. I was thinking I could use common/price.tpl

image0011 copy.png

Hi Folks I want to make just a quick mod to the Supplier email and i thought this would be simple but it is not.

I was wondering why the "code" that is in the table is blank. I would have assumed that it would put the combination code in there since the item itself doesn't have a code. Each combination has its own code though

{{ snippet("header") }}

{{ (“Dear Supplier”) }},

{{ (" Purchase Order") }} #{{ order_info.order_id }}

{% if status_inventory == ‘D’ %}
{{ __(“supplier_email_header”) }}


{% endif %}

{{ __(“invoice”) }}:

{{ include_doc(“supplier_order.invoice”, order_info.order_id, supplier) }}


{{ __("contact_information") }}:
 {{ supplier.data.name }}
 {% if supplier.data.address %}{{ supplier.data.address }}, {% endif %} {% if supplier.data.zipcode %}{{ supplier.data.zipcode }}, {% endif %} {% if supplier.data.city %}{{ supplier.data.city }}, {% endif %} {% if supplier.data.state and supplier.data.country %}{{ supplier.data.state_descr }}, {% endif %} {{ supplier.data.country_descr }}
 {% if supplier.data.phone %}{{ __("phone") }}: {{ supplier.data.phone }}{%if supplier.data.fax %}, {% endif %}{% endif %}{% if supplier.data.fax %}{{ __("fax") }}: {{ supplier.data.fax }}{% endif %}.
 {{ __("email") }}: {{ supplier.data.email }}

{{ snippet(“footer”) }}

Lastly, I want something that shows the item cost. I was thinking I could use common/price.tpl

Hello!

You need to check Design->Documents->Suppliers: invoice document. Product code is displayed by {{ p.product_code }} and I am not sure if it is taken from option combination. Do you see option combination code in the order confirmation e-mail?

Regarding price, try to add column in Products table snippet with {{ p.price }} or {{ p.subtotal }}

Thanks for that, we were able to add another column and list the price.

The problem we are facing though is that there is the option {{p.prouct.code}} which use the main code for the product itself and not the code specified on the option combination.

If we add {{p.options}} It will show the name and selection of the option eg Red or Blue. But it won't show the code that has been specified for that option. I would have assumed it would be something like {{p.options.code}} but that doesn't exist in the variable list

The problem we are facing though is that there is the option {{p.prouct.code}} which use the main code for the product itself and not the code specified on the option combination.

It looks like a bug. Try to contact CS-Cart team with this issue

I raised it and they said it is not available which seems absolutely ridiculous. What is the point of having codes for the option combinations if you can't even provide that info to your suppliers?