Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Supplier Email Template Rate Topic   - - - - -

 
  • Confusion
  • Advanced Member
  • Members
  • Join Date: 19-Feb 13
  • 71 posts

Posted 19 October 2018 - 04:30 AM #1

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") }},<br /><br />
 
{{ (" Purchase Order") }} #{{ order_info.order_id }} <br />
{% if status_inventory == 'D' %}
{{ __("supplier_email_header") }}<br /><br />
{% endif %}
 
<b>{{ __("invoice") }}:</b><br>
{{ include_doc("supplier_order.invoice", order_info.order_id, supplier) }}
 
 
<br />
{{ __("contact_information") }}:<br />
<span style="margin-left:20px;">&nbsp;</span>{{ supplier.data.name }}<br />
<span style="margin-left:20px;">&nbsp;</span>{% 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 }}<br />
<span style="margin-left:20px;">&nbsp;</span>{% if supplier.data.phone %}{{ __("phone") }}:&nbsp;{{ supplier.data.phone }}{%if supplier.data.fax %}, {% endif %}{% endif %}{% if supplier.data.fax %}{{ __("fax") }}:&nbsp;{{ supplier.data.fax }}{% endif %}.<br />
<span style="margin-left:20px;">&nbsp;</span>{{ __("email") }}:&nbsp;{{ supplier.data.email }}
 
{{ snippet("footer") }}

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

 

Attached Thumbnails

  • image0011 copy.png


 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3200 posts

Posted 19 October 2018 - 05:43 AM #2

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") }},<br /><br />
 
{{ (" Purchase Order") }} #{{ order_info.order_id }} <br />
{% if status_inventory == 'D' %}
{{ __("supplier_email_header") }}<br /><br />
{% endif %}
 
<b>{{ __("invoice") }}:</b><br>
{{ include_doc("supplier_order.invoice", order_info.order_id, supplier) }}
 
 
<br />
{{ __("contact_information") }}:<br />
<span style="margin-left:20px;">&nbsp;</span>{{ supplier.data.name }}<br />
<span style="margin-left:20px;">&nbsp;</span>{% 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 }}<br />
<span style="margin-left:20px;">&nbsp;</span>{% if supplier.data.phone %}{{ __("phone") }}:&nbsp;{{ supplier.data.phone }}{%if supplier.data.fax %}, {% endif %}{% endif %}{% if supplier.data.fax %}{{ __("fax") }}:&nbsp;{{ supplier.data.fax }}{% endif %}.<br />
<span style="margin-left:20px;">&nbsp;</span>{{ __("email") }}:&nbsp;{{ 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 }}


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Mega SEO Package - All you need for your SEO


 
  • Confusion
  • Advanced Member
  • Members
  • Join Date: 19-Feb 13
  • 71 posts

Posted 22 October 2018 - 12:01 AM #3

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



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18673 posts

Posted 22 October 2018 - 05:35 AM #4

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Confusion
  • Advanced Member
  • Members
  • Join Date: 19-Feb 13
  • 71 posts

Posted 01 November 2018 - 12:33 AM #5

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?